protected void performEntityOperation(CachedDbEntity cachedDbEntity, DbOperationType type) { DbEntityOperation dbOperation = new DbEntityOperation(); dbOperation.setEntity(cachedDbEntity.getEntity()); dbOperation.setFlushRelevantEntityReferences(cachedDbEntity.getFlushRelevantEntityReferences()); dbOperation.setOperationType(type); dbOperationManager.addOperation(dbOperation); }
protected void performEntityOperation(CachedDbEntity cachedDbEntity, DbOperationType type) { DbEntityOperation dbOperation = new DbEntityOperation(); dbOperation.setEntity(cachedDbEntity.getEntity()); dbOperation.setFlushRelevantEntityReferences(cachedDbEntity.getFlushRelevantEntityReferences()); dbOperation.setOperationType(type); dbOperationManager.addOperation(dbOperation); }
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); }
protected void performEntityOperation(CachedDbEntity cachedDbEntity, DbOperationType type) { DbEntityOperation dbOperation = new DbEntityOperation(); dbOperation.setEntity(cachedDbEntity.getEntity()); dbOperation.setFlushRelevantEntityReferences(cachedDbEntity.getFlushRelevantEntityReferences()); dbOperation.setOperationType(type); dbOperationManager.addOperation(dbOperation); }
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); }