|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.datatools.sqltools.result.OperationCommand
The OperationCommand
is used to uniquely identify an execution result in SQL Results View, it is the
starting point to use SQL Results View.
The consumer needs to initiate an instance of OperationCommand
first, and then uses
ResultsViewAPI
to append message or result set, or set parameters to SQL Results View. When using the
ResultsViewAPI
to append result item to SQL Results View, this instance should always be given.
ResultsViewAPI
,
Serialized FormField Summary | |
static int |
ACTION_AFTER_RUN
|
static int |
ACTION_BEFORE_RUN
|
static int |
ACTION_CREATE
|
static int |
ACTION_DEBUG
|
static int |
ACTION_DEPLOY
|
static int |
ACTION_DROP
|
static int |
ACTION_EDIT
|
static int |
ACTION_EXECUTE
|
static int |
ACTION_EXPORT
|
static int |
ACTION_EXTRACT
|
static int |
ACTION_IMPORT
|
static int |
ACTION_LOAD
|
static int |
ACTION_RUN
|
static int |
ACTION_VALIDATE
|
static int |
ACTION_VIEW
|
static int |
STATUS_CRITICAL_ERROR
|
static int |
STATUS_FAILED
|
static int |
STATUS_RUNNING
|
static int |
STATUS_STARTED
|
static int |
STATUS_SUCCEEDED
|
static int |
STATUS_TERMINATED
|
static int |
STATUS_WARNING
|
Constructor Summary | |
OperationCommand(int type,
java.lang.String displayStr,
java.lang.String consumerName,
java.lang.String profileName,
java.lang.String databaseName)
Constructs an instance of OperationCommand. |
|
OperationCommand(int type,
java.lang.String displayStr,
java.lang.String consumerName,
java.lang.String profileName,
java.lang.String databaseName,
java.io.Serializable data)
Construstor |
Method Summary | |
static java.lang.String |
getActionString(int actionId)
Converts the action id to action string. |
int |
getActionType()
Returns the action type |
java.lang.String |
getConsumerName()
Returns the consumer's name |
java.io.Serializable |
getData()
Returns the data |
java.lang.String |
getDatabaseName()
Returns the database name |
java.lang.String |
getDisplayString()
Returns the display string of this operation |
java.lang.String |
getProfileName()
Returns the connection profile name |
static Image |
getStatusImage(int statusId)
Returns the image of given status |
static java.lang.String |
getStatusString(int statusId)
Converts the status id to status string |
void |
setData(java.io.Serializable _data)
Sets the data |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int STATUS_CRITICAL_ERROR
public static final int STATUS_FAILED
public static final int STATUS_TERMINATED
public static final int STATUS_WARNING
public static final int STATUS_SUCCEEDED
public static final int STATUS_RUNNING
public static final int STATUS_STARTED
public static final int ACTION_EXECUTE
public static final int ACTION_CREATE
public static final int ACTION_DEBUG
public static final int ACTION_DEPLOY
public static final int ACTION_DROP
public static final int ACTION_EDIT
public static final int ACTION_EXPORT
public static final int ACTION_EXTRACT
public static final int ACTION_IMPORT
public static final int ACTION_LOAD
public static final int ACTION_BEFORE_RUN
public static final int ACTION_AFTER_RUN
public static final int ACTION_RUN
public static final int ACTION_VALIDATE
public static final int ACTION_VIEW
Constructor Detail |
public OperationCommand(int type, java.lang.String displayStr, java.lang.String consumerName, java.lang.String profileName, java.lang.String databaseName)
type
- the action type, should be one of the action types defined in this classdisplayStr
- string used to display, for example SQL statement, should not be nullconsumerName
- name of the callerprofileName
- connection profile name, should not be nulldatabaseName
- database name, should not be nullpublic OperationCommand(int type, java.lang.String displayStr, java.lang.String consumerName, java.lang.String profileName, java.lang.String databaseName, java.io.Serializable data)
data
- consumer can use this field to store anythingMethod Detail |
public java.lang.String getDisplayString()
public int getActionType()
public java.lang.String getConsumerName()
public java.lang.String getProfileName()
public java.lang.String getDatabaseName()
public static java.lang.String getActionString(int actionId)
actionId
- the action type
public static Image getStatusImage(int statusId)
statusId
- the status id
public static java.lang.String getStatusString(int statusId)
statusId
- the id of the status
public java.io.Serializable getData()
public void setData(java.io.Serializable _data)
_data
- the data
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |