|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectJob
org.eclipse.datatools.sqltools.sqleditor.result.ResultSupportRunnable
This is an utility class, that intended to be used by other parts of the system that want to utilize the result view to display their run information. Child class should override certain methods of this class. TODO add extension point for this class
Constructor Summary | |
ResultSupportRunnable(java.lang.String name,
IProgressMonitor parentMonitor,
DatabaseIdentifier databaseIdentifier)
|
Method Summary | |
int |
getActionType()
Gets the action type for OperationCommand . |
abstract ILaunchConfiguration |
getConfiguration()
|
java.lang.String |
getConsumerName()
Gets the consumer name for OperationCommand . |
DatabaseIdentifier |
getDatabaseIdentifier()
|
OperationCommand |
getOperationCommand()
Creates the OperationCommand object which will be
used for results view display. |
int |
getOperationStatus()
|
OperationCommand |
getParentOperationCommand()
Returns the parent operation command |
void |
loopThroughResults(java.sql.Statement cstmt,
boolean moreResult)
loop through the results (update count and result set), push the results into the result instance. |
void |
run()
|
void |
setActionType(int type)
Sets the action type for OperationCommand . |
void |
setConsumerName(java.lang.String name)
Sets the consumer name for OperationCommand . |
void |
setParentOperCommand(OperationCommand operCommand)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ResultSupportRunnable(java.lang.String name, IProgressMonitor parentMonitor, DatabaseIdentifier databaseIdentifier)
name
- Method Detail |
public void run()
run
in interface java.lang.Runnable
public OperationCommand getOperationCommand()
OperationCommand
object which will be
used for results view display.
public OperationCommand getParentOperationCommand()
public void loopThroughResults(java.sql.Statement cstmt, boolean moreResult) throws java.sql.SQLException
cstmt
- moreResult
-
java.sql.SQLException
public abstract ILaunchConfiguration getConfiguration()
public DatabaseIdentifier getDatabaseIdentifier()
public int getOperationStatus()
public void setParentOperCommand(OperationCommand operCommand)
public int getActionType()
OperationCommand
. The default
value is OperationCommand.ACTION_EXECUTE.
public void setActionType(int type)
OperationCommand
. The default
value is OperationCommand.ACTION_EXECUTE.
type
- OperationCommand
public java.lang.String getConsumerName()
OperationCommand
. The default
value is "SQL Editor".
public void setConsumerName(java.lang.String name)
OperationCommand
. The default
value is "SQL Editor".
OperationCommand
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |