|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.engine.TWGDbQueryResult
This class contains a set of rows returned by a query and information about columns * of the result set.
Constructor Summary | |
---|---|
TWGDbQueryResult()
Constructor for TWGDbQueryResult |
|
TWGDbQueryResult(byte[] rowBuf,
byte[] columnBuf)
Constructor to create a TWGDbQueryResult from an intel byte buffer format byte array |
Method Summary | |
---|---|
protected void |
addColumnMetaData(int columnId,
TWGDbQueryColumn columnData)
* The instance method puts column information into the object. |
protected void |
addRow(int MOID,
TWGDbRow row)
This method inserts a row into the object. |
TWGDbRow[] |
getAllRowByMOID(int MOID)
Return list of TWGDbRows which match the given MOID(MANAGED_OBJ_ID). |
protected TWGDbQueryColumn |
getColumn(int columnId)
Get a query column for a specific column id. |
int |
getColumnCount()
The instance method gets the number of columns in the TWGDbQueryResult object. |
int[] |
getColumnIds()
Gets the column numbers of each column in its super query. |
int[] |
getColumnTypes()
Gets column types for all the columns in the query result. |
int |
getMetaDataBufferLen()
|
int[] |
getMOIDs()
Method to get all the values for the MOID field. |
int |
getNumOfRows()
The instance method gets the total number of the rows in the TWGDbQueryResult object. |
int |
getNumOfRowsByMOID(int MOID)
Method to get number of rows with the specified MOID. |
TWGDbRow |
getRow(int rowNumber)
The method gets a referenece to a TWGDbRow object. |
int |
getRowBufferLen()
|
protected int |
initMetaDataByBuffer(byte[] columnBuf)
|
protected int |
initParmsByBuf(byte[] rowBuf,
byte[] columnBuf)
Method to initialize the parameters for the command using data from buffer. |
void |
setBufferParms(byte[] rowBuf,
byte[] columnBuf)
|
protected void |
setBufferParms(Command cmd)
|
protected void |
setColumnIds(int[] column_ids)
Sets the column number of each selected field in its super query. |
protected void |
setIntelByteBufferParms(Command cmd)
|
int |
setMetaDataBuffer(byte[] columnBuf)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TWGDbQueryResult()
public TWGDbQueryResult(byte[] rowBuf, byte[] columnBuf) throws TWGDbException
rowBuf
- - byte array containing information about rows in the result set.columnBuf
- - byte array containing infdormation about metadata of the result set.
TWGDbException
Method Detail |
protected void addColumnMetaData(int columnId, TWGDbQueryColumn columnData)
columnId
- - a column number *columnData
- - a TWGDbQueryColumn object reference **
protected void addRow(int MOID, TWGDbRow row)
MOID
- - value for the first column of the query.TWGDbRow
protected void setColumnIds(int[] column_ids)
column_ids
- - int array containing the column ids starting from element 1.public int[] getColumnIds()
public int getColumnCount()
protected TWGDbQueryColumn getColumn(int columnId) throws TWGDbException
TWGDbException
TWGDbQueryColumn
public int[] getColumnTypes() throws TWGDbException
TWGDbException
public TWGDbRow[] getAllRowByMOID(int MOID)
MOID
- - int indicating MANAGED_OBJ_ID.
TWGDbRow
public int getNumOfRows()
public int getNumOfRowsByMOID(int MOID)
MOID
- - Managed_Object Id
public int[] getMOIDs()
public TWGDbRow getRow(int rowNumber) throws TWGDbException
rowNumber
- indicating row number (use origin starting from 1)
TWGDbException
- if invalid index for the row.protected int initMetaDataByBuffer(byte[] columnBuf) throws TWGDbException
TWGDbException
public int setMetaDataBuffer(byte[] columnBuf) throws TWGDbException
TWGDbException
protected int initParmsByBuf(byte[] rowBuf, byte[] columnBuf) throws TWGDbException
rowBuf
- - byte array containing info about the rows and column ids
in the query result.columnBuf
- - byte array containing info about the columns.
TWGDbException
public void setBufferParms(byte[] rowBuf, byte[] columnBuf) throws TWGDbException
TWGDbException
protected void setBufferParms(Command cmd) throws TWGDbException
TWGDbException
protected void setIntelByteBufferParms(Command cmd) throws TWGDbException
TWGDbException
public int getRowBufferLen()
public int getMetaDataBufferLen() throws TWGDbException
TWGDbException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |