|
Enhydra 3.1 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.lutris.dods.builder.generator.query.RDBColumn | +--com.lutris.dods.builder.generator.query.RDBColumnValue
After a Vector of RDBColumn objects is used to construct an instance of QueryBuilder, the QueryBuilder.getNextRow() method is used to return an RDBRow object which contains RDBColumnValue objects representing the column values in the returned row. An instance of RDBColumnValue is returned by the RDBRow.get() method. The value contained in the RDBColumnValue object is extracted using RDBColumnValue.get methods.
QueryBuilder
Fields inherited from class com.lutris.dods.builder.generator.query.RDBColumn |
name,
notNull,
table |
Constructor Summary | |
RDBColumnValue(RDBColumn column,
java.lang.Object val)
The constructor for RDBColumnValue is used only by QueryBuilder, never by the application developer. |
Method Summary | |
java.math.BigDecimal |
getBigDecimal()
Retreive column value as a BigDecimal. |
java.lang.Double |
getDouble()
Retreive column value as an double. |
double |
getDouble(boolean nullOk)
Retreive column value as an double. |
java.lang.Integer |
getInteger()
Retreive column value as an int. |
int |
getInteger(boolean nullOk)
Retreive column value as an int. |
java.lang.String |
getString()
Retreive column value as a String. |
java.lang.Object |
getValue()
Return the column value as an Object. |
void |
setValue(java.lang.Object o)
Used only by the QueryBuilder. |
Methods inherited from class com.lutris.dods.builder.generator.query.RDBColumn |
equals,
getColumnName,
getFullColumnName,
getTableName,
notNull |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public RDBColumnValue(RDBColumn column, java.lang.Object val)
column
- the column specified by QueryBuilder during row access.val
- the value for the column in the currently accessed row.QueryBuilder
Method Detail |
public java.lang.Object getValue()
QueryBuilder
public void setValue(java.lang.Object o)
o
- the value as an Objectpublic java.lang.String getString() throws ColumnTypeException
QueryBuilder
public int getInteger(boolean nullOk) throws ColumnTypeException, ColumnNullException
nullOk
- if false and the column in the row contains
a database NULL value, a ColumnNullException is thrown.
If true and the column in the row contains a NULL, 0 is returned.QueryBuilder
public java.lang.Integer getInteger() throws ColumnTypeException
QueryBuilder
public double getDouble(boolean nullOk) throws ColumnTypeException, ColumnNullException
nullOk
- if false and the column in the row contains
a database NULL value, a ColumnNullException is thrown.
If true and the column in the row contains a NULL, 0 is returned.QueryBuilder
public java.lang.Double getDouble() throws ColumnTypeException
QueryBuilder
public java.math.BigDecimal getBigDecimal() throws ColumnTypeException
QueryBuilder
|
Enhydra 3.1 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |