public Object execute(CommandContext commandContext) { commandContext.getDbSqlSession().dbSchemaDrop(); return null; } });
public Void execute(CommandContext commandContext) { commandContext.getDbSqlSession() .executeSchemaResource(schemaFileResourceName); return null; }
public Object execute(CommandContext commandContext) { commandContext.getDbSqlSession().dbSchemaDrop(); return null; } });
public Void execute(CommandContext commandContext) { commandContext.getDbSqlSession().dbSchemaDrop(); return null; } });
public Void execute(CommandContext commandContext) { commandContext.getDbSqlSession() .executeSchemaResource(schemaFileResourceName); return null; }
public Session openSession() { return Context.getCommandContext().getDbSqlSession(); }
public Session openSession() { return Context.getCommandContext().getDbSqlSession(); }
@SuppressWarnings("unchecked") protected List<IdentityInfoEntity> findIdentityInfoDetails(String identityInfoId) { return Context .getCommandContext() .getDbSqlSession() .getSqlSession() .selectList("selectIdentityInfoDetails", identityInfoId); }
@SuppressWarnings("unchecked") protected List<IdentityInfoEntity> findIdentityInfoDetails(String identityInfoId) { return Context .getCommandContext() .getDbSqlSession() .getSqlSession() .selectList("selectIdentityInfoDetails", identityInfoId); }
@Override public Object execute(CommandContext commandContext) { try { transactionIsolation[0] = commandContext.getDbSqlSession().getSqlSession().getConnection().getTransactionIsolation(); } catch (SQLException e) { } return null; } });
public void execute(DelegateExecution execution) throws Exception { String existingId = execution.getId(); // insert an execution referencing the current execution ExecutionEntity newExecution = new ExecutionEntity(); newExecution.setId("someId"); newExecution.setParentId(existingId); DbEntityOperation insertOperation = new DbEntityOperation(); insertOperation.setOperationType(DbOperationType.INSERT); insertOperation.setEntity(newExecution); Context.getCommandContext() .getDbSqlSession() .executeDbOperation(insertOperation); }
public Object execute(CommandContext commandContext) { commandContext.getDbSqlSession().dbSchemaDrop(); return null; } });
public Void execute(CommandContext commandContext) { commandContext.getDbSqlSession().dbSchemaCreate(); return null; } });
@SuppressWarnings("unchecked") public List<T> execute(CommandContext commandContext) { return (List<T>) commandContext.getDbSqlSession().selectList(statement, parameter); }
public Void execute(CommandContext commandContext) { commandContext.getDbSqlSession() .executeSchemaResource(schemaFileResourceName); return null; }
public Void execute(CommandContext commandContext) { commandContext.getDbSqlSession().dbSchemaDrop(); return null; } });
public Session openSession() { return Context.getCommandContext().getDbSqlSession(); }
@SuppressWarnings("unchecked") protected List<IdentityInfoEntity> findIdentityInfoDetails(String identityInfoId) { return Context .getCommandContext() .getDbSqlSession() .getSqlSession() .selectList("selectIdentityInfoDetails", identityInfoId); }
@Override public Object execute(CommandContext commandContext) { try { transactionIsolation[0] = commandContext.getDbSqlSession().getSqlSession().getConnection().getTransactionIsolation(); } catch (SQLException e) { } return null; } });
public void execute(DelegateExecution execution) throws Exception { String existingId = execution.getId(); // insert an execution referencing the current execution ExecutionEntity newExecution = new ExecutionEntity(); newExecution.setId("someId"); newExecution.setParentId(existingId); DbEntityOperation insertOperation = new DbEntityOperation(); insertOperation.setOperationType(DbOperationType.INSERT); insertOperation.setEntity(newExecution); Context.getCommandContext() .getDbSqlSession() .executeDbOperation(insertOperation); }