@Override public UpdateExecution createUpdateExecution(Command command, ExecutionContext executionContext, RuntimeMetadata metadata, C connection) throws TranslatorException { return (UpdateExecution) delegate.createExecution(command, executionContext, metadata, connection); } @Override
@Override public ResultSetExecution createResultSetExecution(QueryExpression command, ExecutionContext executionContext, RuntimeMetadata metadata, C connection) throws TranslatorException { return (ResultSetExecution) delegate.createExecution(command, executionContext, metadata, connection); } @Override
@Override public ProcedureExecution createProcedureExecution(Call command, ExecutionContext executionContext, RuntimeMetadata metadata, C connection) throws TranslatorException { return (ProcedureExecution) delegate.createExecution(command, executionContext, metadata, connection); } @Override
private List executeCommand(Command command, RuntimeMetadata runtimeMetadata, boolean close) throws TranslatorException { Execution exec = connector.createExecution(command, this.executionContext, runtimeMetadata, this.connectionFactory); exec.execute(); List results = readResultsFromExecution(exec); if (close) { exec.close(); } return results; }
((ReusableExecution)exec).reset(translatedCommand, this.securityContext, connection); } else { exec = connector.createExecution(translatedCommand, this.securityContext, queryMetadata, (unwrapped == null) ? this.connection:unwrapped);
((ReusableExecution)exec).reset(translatedCommand, this.securityContext, connection); } else { exec = connector.createExecution(translatedCommand, this.securityContext, queryMetadata, (unwrapped == null) ? this.connection:unwrapped);
((ReusableExecution)exec).reset(translatedCommand, this.securityContext, connection); } else { exec = connector.createExecution(translatedCommand, this.securityContext, queryMetadata, (unwrapped == null) ? this.connection:unwrapped);