/** * Returns the SQL execution service associated with this database definition * */ public ExecutionService getExecutionService() { return new ExecutionService(); }
/** * Returns a <code>Runnable</code> object capable of running a stored procedure. Might be null. * @param con the connection * @param configuration the lauch configuration * @param closeCon whether should close connection * @param tracker if closeCon is true and tracker is not null, will notify it when close the connection * @param databaseIdentifier * @see org.eclipse.datatools.sqltools.routineeditor.result.CallableSQLResultRunnable */ public Runnable createStoredProcedureRunnable(Connection con, ILaunchConfiguration configuration, boolean closeCon, IConnectionTracker tracker, DatabaseIdentifier databaseIdentifier) { return createCallableSQLResultRunnable(con, configuration, closeCon, tracker, databaseIdentifier); }
DatabaseIdentifier databaseIdentifier, ILaunchConfiguration configuration, HashMap addInfo) { return createSimpleSQLResultRunnable(con, sql, closeCon, tracker, parentMonitor,
.createAdHocScriptRunnable(debuggeeCon, LaunchHelper.constructDirectInvocationSQLString(configuration), true, target, null, databaseIdentifier, case ProcIdentifier.TYPE_SP: postrun = f.getExecutionService() .createStoredProcedureRunnable(debuggeeCon, configuration, true, target, databaseIdentifier); case ProcIdentifier.TYPE_UDF: postrun = f.getExecutionService() .createFunctionRunnable(debuggeeCon, LaunchHelper.constructDirectInvocationSQLString(configuration), true, target, null, databaseIdentifier, default: postrun = f.getExecutionService() .createAdHocScriptRunnable(debuggeeCon, LaunchHelper.constructDirectInvocationSQLString(configuration), true, target, null, databaseIdentifier,
.createAdHocScriptRunnable(getConnection(), _groups[i], false, _tracker, monitor, getDatabaseIdentifier(), null, addInfo); if (_currentJob == null) {
int type = proc == null ? ProcIdentifier.TYPE_SP : proc.getType(); SQLDevToolsConfiguration config = SQLToolsFacade.getConfigurationByProfileName(proc.getDatabaseIdentifier().getProfileName()); buffer.append(config.getExecutionService().getCallableStatementPrefix(proc.getType())); String procName = null;
int type = proc == null ? ProcIdentifier.TYPE_SP : proc.getType(); SQLDevToolsConfiguration config = SQLToolsFacade.getConfigurationByProfileName(proc.getDatabaseIdentifier().getProfileName()); buffer.append(config.getExecutionService().getDirectInvocationPrefix(proc.getType()));
Runnable parallelRunnable = f.getExecutionService().createExecuteParallelRunnable(getSQLStatements(), databaseIdentifier); if(parallelRunnable != null)
int type = proc == null ? ProcIdentifier.TYPE_SP : proc.getType(); SQLDevToolsConfiguration config = SQLToolsFacade.getConfigurationByProfileName(proc.getDatabaseIdentifier().getProfileName()); buffer.append(config.getExecutionService().getCallableStatementPrefix(proc.getType())); String LINESEPARATOR = System.getProperty("line.separator");
DatabaseIdentifier databaseIdentifier, ILaunchConfiguration configuration, HashMap addInfo) { return createSimpleSQLResultRunnable(con, sql, closeCon, tracker, parentMonitor,