|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vrspace.server.db.Result
storage class that holds result of a select query
Field Summary | |
java.lang.String[] |
columnNames
names of columns |
int[] |
columnTypes
SQL types of columns |
int |
currentRow
current row in the values matrix |
int |
noCols
number of columns in the values matrix |
int |
noRows
number of rows in the values matrix |
java.lang.Object[][] |
values
values returned by DBUtil.select |
Constructor Summary | |
Result(int noRows,
int noCols)
constructor initialises result object |
Method Summary | |
byte |
getByte(int col)
returns value from current row as byte |
byte |
getByte(java.lang.String colName)
returns value from current row as byte |
java.lang.Byte |
getByteObject(int col)
returns value from current row as Byte |
java.lang.Byte |
getByteObject(java.lang.String colName)
returns value from current row as Byte |
java.lang.String |
getColumnName(int col)
returns the name of a specified column index |
int |
getColumnType(int col)
returns the SQL type of a specified column index |
double |
getDouble(int col)
returns value from current row as double |
double |
getDouble(java.lang.String colName)
returns value from current row as Double |
java.lang.Double |
getDoubleObject(int col)
returns value from current row as Double |
java.lang.Double |
getDoubleObject(java.lang.String colName)
returns value from current row as Double |
float |
getFloat(int col)
returns value from current row as float |
float |
getFloat(java.lang.String colName)
returns value from current row as float |
java.lang.Float |
getFloatObject(int col)
returns value from current row as Float |
java.lang.Float |
getFloatObject(java.lang.String colName)
returns value from current row as Float |
int |
getInt(int col)
returns value from current row as int |
int |
getInt(java.lang.String colName)
returns value from current row as int |
java.lang.Integer |
getIntObject(int col)
returns value from current row as Integer |
java.lang.Integer |
getIntObject(java.lang.String colName)
returns value from current row as Integer |
long |
getLong(int col)
returns value from current row as long |
long |
getLong(java.lang.String colName)
returns value from current row as long |
java.lang.Long |
getLongObject(int col)
returns value from current row as Long |
java.lang.Long |
getLongObject(java.lang.String colName)
returns value from current row as Long |
short |
getShort(int col)
returns value from current row as short |
short |
getShort(java.lang.String colName)
returns value from current row as short |
java.lang.Short |
getShortObject(int col)
returns value from current row as Short |
java.lang.Short |
getShortObject(java.lang.String colName)
returns value from current row as Short |
java.lang.String |
getString(int col)
returns value from current row as string |
java.lang.String |
getString(java.lang.String colName)
returns value from current row as string |
boolean |
next()
increases current row index by 1 |
void |
reset()
resets the current row index |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public int noRows
public int noCols
public java.lang.Object[][] values
public java.lang.String[] columnNames
public int[] columnTypes
public int currentRow
Constructor Detail |
public Result(int noRows, int noCols)
Method Detail |
public java.lang.String getString(int col)
public java.lang.String getString(java.lang.String colName)
public byte getByte(int col)
public java.lang.Byte getByteObject(int col)
public byte getByte(java.lang.String colName)
public java.lang.Byte getByteObject(java.lang.String colName)
public short getShort(int col)
public java.lang.Short getShortObject(int col)
public short getShort(java.lang.String colName)
public java.lang.Short getShortObject(java.lang.String colName)
public int getInt(int col)
public java.lang.Integer getIntObject(int col)
public int getInt(java.lang.String colName)
public java.lang.Integer getIntObject(java.lang.String colName)
public long getLong(int col)
public java.lang.Long getLongObject(int col)
public long getLong(java.lang.String colName)
public java.lang.Long getLongObject(java.lang.String colName)
public float getFloat(int col)
public java.lang.Float getFloatObject(int col)
public float getFloat(java.lang.String colName)
public java.lang.Float getFloatObject(java.lang.String colName)
public double getDouble(int col)
public java.lang.Double getDoubleObject(int col)
public double getDouble(java.lang.String colName)
public java.lang.Double getDoubleObject(java.lang.String colName)
public java.lang.String getColumnName(int col)
public int getColumnType(int col)
public boolean next()
public void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |