|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.engine.TWGDbCopyQueryCmd
TWGDbCopyQueryCmd encapsulates the parameters for copying an existing saved query. The persistent object id for the query is used to identify the query to be copied. The query display name, query graphic and query format are the parameters that may be changed in the copy query command. The new query created by copying another query is always a User query even if the source query was a Default query.
The TWGDbCopyQueryCmd object is passed as a parameter on an IPC command to the database query service node (TWGDatabaseConstants.QUERY_SERVICE_NODE_NAME).
Return codes (all found in TWGDatabaseConstants):
Query id for the new query will be returned as parameter 0 (Java Long) if the return code is 0.
TWGDatabaseConstants
,
Serialized FormField Summary | |
---|---|
static int |
TWG_DB_COPY_QUERY_CMD
Command code for the copy query command |
static int |
TWG_DB_COPY_QUERY_CMD_INTEL
Command code for the copy query command with intelByteBuffer parameters |
Constructor Summary | |
---|---|
TWGDbCopyQueryCmd(byte[] buf)
This constructor is to be used only in the Director engine. |
|
TWGDbCopyQueryCmd(long qId)
Constructor for the building the command. |
|
TWGDbCopyQueryCmd(java.lang.Long qId)
Constructor for the building the command. |
Method Summary | |
---|---|
int |
getFormat()
Get query format for the new query. |
java.lang.String |
getQueryDisplayName()
Get query display name for the new query. |
java.lang.String |
getQueryGraphic()
Get the name of the graphic icon for the query |
java.lang.Long |
getQueryId()
Get the query persistent object id |
void |
setFormat(int format)
Set query format for the new query. |
void |
setIntelByteBufferParms(Command cmd)
This method is public as an implementation side effect. |
void |
setQueryDisplayName(java.lang.String queryName)
Set query display name for the new query. |
void |
setQueryGraphic(java.lang.String queryGraphic)
Set the name of the graphic icon for the query |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int TWG_DB_COPY_QUERY_CMD
public static final int TWG_DB_COPY_QUERY_CMD_INTEL
Constructor Detail |
public TWGDbCopyQueryCmd(long qId)
qId
- - the persistent object id of the query to be copied.public TWGDbCopyQueryCmd(java.lang.Long qId)
qId
- - the persistent object id of the query to be copied.public TWGDbCopyQueryCmd(byte[] buf) throws TWGDbException
Constructor to build the command from an intel byte buffer format of the command.
buf
- - the query persistent object id in intel byte buffer formatMethod Detail |
public java.lang.Long getQueryId()
public void setQueryDisplayName(java.lang.String queryName)
queryName
- - query display namepublic java.lang.String getQueryDisplayName()
public void setFormat(int format)
format
- - query format. Valid values are found in
TWGDatabaseQueryTWGDatabaseQuery
public int getFormat()
TWGDatabaseQuery
public void setQueryGraphic(java.lang.String queryGraphic)
queryGraphic
- - the icon namepublic java.lang.String getQueryGraphic()
public void setIntelByteBufferParms(Command cmd)
Build IntelByteBuffer parms version of this command and add them to the IPC command
cmd
- - the IPC command whose input parameters will be set by this method
-
- TWGDbException thrown for parameter or version errors
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |