|
|||||||||||
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_EXECUTE
|
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_WARNING
public static final int STATUS_TERMINATED
public static final int STATUS_FAILED
public static final int STATUS_SUCCEEDED
public static final int STATUS_RUNNING
public static final int STATUS_STARTED
public static final int ACTION_EXECUTE
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 types defined in this class(for now, we have only 1 type)displayStr
- 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 nullACTION_EXECUTE
public 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()
ACTION_EXECUTE
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 |