|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.datatools.sqltools.core.services.ExecutionService
A SQL execution service specific to a database definition.
Field Summary | |
static java.lang.String |
KEY_PROMPT_VAR
|
static java.lang.String |
KEY_VAR_DECLARATION
|
Constructor Summary | |
ExecutionService()
|
Method Summary | |
java.lang.Runnable |
createAdHocScriptRunnable(java.sql.Connection con,
java.lang.String sql,
boolean closeCon,
IConnectionTracker tracker,
IProgressMonitor parentMonitor,
DatabaseIdentifier databaseIdentifier,
ILaunchConfiguration configuration,
java.util.HashMap addInfo)
Returns a Runnable object capable of running ad hoc sql
statements. |
java.lang.Runnable |
createCallableSQLResultRunnable(java.sql.Connection con,
ILaunchConfiguration configuration,
boolean closeCon,
IConnectionTracker tracker,
DatabaseIdentifier databaseIdentifier)
Deprecated. for backward compatibility. Use createAdHocScriptRunnable instead |
java.lang.Runnable |
createExecuteParallelRunnable(java.lang.String sql,
DatabaseIdentifier databaseIdentifier)
The returned thread will be started together with the SQL execution logic. |
java.lang.Runnable |
createFunctionRunnable(java.sql.Connection con,
java.lang.String sql,
boolean closeCon,
IConnectionTracker tracker,
IProgressMonitor parentMonitor,
DatabaseIdentifier databaseIdentifier,
ILaunchConfiguration configuration,
java.util.HashMap addInfo)
Returns a Runnable object capable of running a UDF. |
java.lang.Runnable |
createSimpleSQLResultRunnable(java.sql.Connection con,
java.lang.String sql,
boolean closeCon,
IConnectionTracker tracker,
IProgressMonitor parentMonitor,
DatabaseIdentifier databaseIdentifier,
ILaunchConfiguration configuration,
java.util.HashMap addInfo)
Deprecated. for backward compatibility. Use createAdHocScriptRunnable instead |
java.lang.Runnable |
createStoredProcedureRunnable(java.sql.Connection con,
ILaunchConfiguration configuration,
boolean closeCon,
IConnectionTracker tracker,
DatabaseIdentifier databaseIdentifier)
Returns a Runnable object capable of running a stored procedure. |
java.lang.String |
getCallableStatementPrefix(int type)
Returns a String prefix for invoking Routine/Event with the specified type in a CalllableStatement. |
java.lang.String |
getDirectInvocationPrefix(int type)
Returns the prefix used to construct a sql statement to directly invoke a procedural object. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String KEY_PROMPT_VAR
public static final java.lang.String KEY_VAR_DECLARATION
Constructor Detail |
public ExecutionService()
Method Detail |
public java.lang.Runnable createStoredProcedureRunnable(java.sql.Connection con, ILaunchConfiguration configuration, boolean closeCon, IConnectionTracker tracker, DatabaseIdentifier databaseIdentifier)
Runnable
object capable of running a stored procedure. Might be null.
con
- the connectionconfiguration
- the lauch configurationcloseCon
- whether should close connectiontracker
- if closeCon is true and tracker is not null, will notify it when close the connectiondatabaseIdentifier
- CallableSQLResultRunnable
public java.lang.Runnable createFunctionRunnable(java.sql.Connection con, java.lang.String sql, boolean closeCon, IConnectionTracker tracker, IProgressMonitor parentMonitor, DatabaseIdentifier databaseIdentifier, ILaunchConfiguration configuration, java.util.HashMap addInfo)
Runnable
object capable of running a UDF.
Might be null.
con
- the connectionsql
- the statement to be executedcloseCon
- whether should close connectiontracker
- if closeCon is true and tracker is not null, will notify it
when close the connectionparentMonitor
- databaseIdentifier
- configuration
- the lauch configurationaddInfo
- vendor specific optionsResultSupportRunnable
public java.lang.Runnable createAdHocScriptRunnable(java.sql.Connection con, java.lang.String sql, boolean closeCon, IConnectionTracker tracker, IProgressMonitor parentMonitor, DatabaseIdentifier databaseIdentifier, ILaunchConfiguration configuration, java.util.HashMap addInfo)
Runnable
object capable of running ad hoc sql
statements. Might be null.
con
- the connectionsql
- the statement to be executedcloseCon
- whether should close connectiontracker
- if closeCon is true and tracker is not null, will notify it
when close the connectionparentMonitor
- databaseIdentifier
- configuration
- the lauch configurationaddInfo
- vendor specific optionsResultSupportRunnable
public java.lang.Runnable createSimpleSQLResultRunnable(java.sql.Connection con, java.lang.String sql, boolean closeCon, IConnectionTracker tracker, IProgressMonitor parentMonitor, DatabaseIdentifier databaseIdentifier, ILaunchConfiguration configuration, java.util.HashMap addInfo)
Runnable
object capable of running sql
statements. Might be null.
con
- the connectionsql
- the statement to be executedcloseCon
- whether should close connectiontracker
- if closeCon is true and tracker is not null, will notify it
when close the connectionparentMonitor
- databaseIdentifier
- configuration
- the lauch configurationaddInfo
- vendor specific optionsResultSupportRunnable
public java.lang.Runnable createCallableSQLResultRunnable(java.sql.Connection con, ILaunchConfiguration configuration, boolean closeCon, IConnectionTracker tracker, DatabaseIdentifier databaseIdentifier)
Runnable
object capable of running CallableStatement. Might be null.
con
- the connectionconfiguration
- the lauch configurationcloseCon
- whether should close connectiontracker
- if closeCon is true and tracker is not null, will notify it when close the connectiondatabaseIdentifier
- public java.lang.Runnable createExecuteParallelRunnable(java.lang.String sql, DatabaseIdentifier databaseIdentifier)
public java.lang.String getCallableStatementPrefix(int type)
public java.lang.String getDirectInvocationPrefix(int type)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |