|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.engine.TWGDbRow
TWGDbRow encapsulates the column values for a table row or a query result row.
Constructor Summary | |
---|---|
|
TWGDbRow()
Constructor for the row values |
protected |
TWGDbRow(byte[] buf,
int offset,
int[] types)
This method is public as an implementation side effect. |
protected |
TWGDbRow(byte[] buf,
int offset,
int[] types,
com.tivoli.twg.engine.TWGDbRowCache cache)
This method is public as an implementation side effect. |
|
TWGDbRow(int size)
Constructor for the TWGDbRow. |
Method Summary | |
---|---|
void |
addColumnValue(double value)
Add a double column value |
void |
addColumnValue(float value)
Add a float column value |
void |
addColumnValue(int value)
Add an integer column value |
void |
addColumnValue(long value)
Add a long column value |
void |
addColumnValue(java.lang.Object value)
Add an Object column value |
void |
addColumnValue(short value)
Add a short column value |
void |
addColumnValue(java.lang.String value)
Add a String column value |
int |
getBufferLen()
This method is protected as an implementation side effect. |
int |
getNumValues()
Get tne number of values in the row |
java.lang.Object |
getValueAt(int column_index)
Get the value for particular column |
Vect |
getValues()
Get the all the column values |
protected int |
initParmsByBuf(byte[] buf,
int offset,
int[] types)
This method is public as an implementation side effect. |
protected int |
initParmsByBuf(byte[] buf,
int offset,
int[] types,
com.tivoli.twg.engine.TWGDbRowCache cache)
This method is public as an implementation side effect. |
protected int |
setBufferParms(byte[] buf,
int offset,
int[] types)
This method is protected as an implementation side effect. |
void |
setColumnValue(double value,
int index)
This method is public as an implementation side effect. |
void |
setColumnValue(float value,
int index)
This method is public as an implementation side effect. |
void |
setColumnValue(int value,
int index)
|
void |
setColumnValue(long value,
int index)
This method is public as an implementation side effect. |
void |
setColumnValue(java.lang.Object value,
int index)
|
void |
setColumnValue(short value,
int index)
|
void |
setColumnValue(java.lang.String value,
int index)
|
java.lang.String |
toString()
Convert row to String for debug |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TWGDbRow()
public TWGDbRow(int size)
size
- - initial capacity.protected TWGDbRow(byte[] buf, int offset, int[] types, com.tivoli.twg.engine.TWGDbRowCache cache) throws TWGDbException
buf
- - the bufferoffset
- - offset into the buffer to start of rowtypes
- - an array containing the data type for each value in the rowcache
- - data cache for allocate data objectsprotected TWGDbRow(byte[] buf, int offset, int[] types) throws TWGDbException
buf
- - the bufferoffset
- - offset into the buffer to start of rowtypes
- - an array containing the data type for each value in the rowMethod Detail |
public void addColumnValue(java.lang.Object value)
value
- - the valuepublic void setColumnValue(java.lang.Object value, int index)
public void addColumnValue(java.lang.String value)
value
- - the valuepublic void setColumnValue(java.lang.String value, int index)
public void addColumnValue(int value)
value
- - the valuepublic void setColumnValue(int value, int index)
public void addColumnValue(short value)
value
- - the valuepublic void setColumnValue(short value, int index)
public void addColumnValue(long value)
value
- - the valuepublic void setColumnValue(long value, int index)
Sets the value at the specified index of the this row to the specified value.
value
- - the valueindex
- - the specified index starting from 1.public void addColumnValue(float value)
value
- - the valuepublic void setColumnValue(float value, int index)
Sets the value at the specified index of the this row to the specified value.
value
- - the valueindex
- - the specified index starting from 1.public void addColumnValue(double value)
value
- - the valuepublic void setColumnValue(double value, int index)
Sets the value at the specified index of the this row to the specified value.
value
- - the valueindex
- - the specified index starting from 1.public int getNumValues()
public java.lang.Object getValueAt(int column_index)
public Vect getValues()
protected int initParmsByBuf(byte[] buf, int offset, int[] types) throws TWGDbException
buf
- - byte array containing info about the row.offset
- - the offset in the buffer that the row starts at.types
- - int array containing the data type of each value in the row.
TWGDbException
protected int initParmsByBuf(byte[] buf, int offset, int[] types, com.tivoli.twg.engine.TWGDbRowCache cache) throws TWGDbException
buf
- - byte array containing info about the row.offset
- - the offset in the buffer that the row starts at.types
- - int array containing the data type of each value in the row.cache
- - data cache for duplicate data values
TWGDbException
protected int setBufferParms(byte[] buf, int offset, int[] types) throws TWGDbException
buf
- - byte array containing info about the row.offset
- - the offset in the buffer that the row starts at.types
- - int array containing the data type of each value in the row.
TWGDbException
public int getBufferLen()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |