|
DODS 7.2 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lutris.dods.builder.generator.query.RDBColumn
com.lutris.dods.builder.generator.query.RDBColumnValue
public class 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
Field Summary |
---|
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.author Jay Gunter
Method Detail |
---|
public java.lang.Object getValue()
author Jay Gunter
public void setValue(java.lang.Object o)
o
- the value as an Object
author Jay Gunterpublic java.lang.String getString() throws ColumnTypeException
ColumnTypeException
- If the column value is not a String
(if the column type is not CHAR, VARCHAR, VARCHAR2, etc.)author Jay Gunter
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.
ColumnTypeException
- If the column value is not an Integer
(if the column type is not INTEGER, LONG, etc.) or if NULL is not
an allowed value (nullOk==false.)
ColumnNullException
author Jay Gunter
public java.lang.Integer getInteger() throws ColumnTypeException
ColumnTypeException
- If the column value is not an Integer
(if the column type is not INTEGER, LONG, etc.)author Jay Gunter
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.
ColumnTypeException
- If the column value is not a Double
(if the column type is not FLOAT, DOUBLE, NUMERIC, DECIMAL, etc.)
or if NULL is not an allowed value (nullOk==false.)
ColumnNullException
author Jay Gunter
public java.lang.Double getDouble() throws ColumnTypeException
ColumnTypeException
- If the column value is not a Double
(if the column type is not FLOAT, DOUBLE, NUMERIC, DECIMAL, etc.)author Jay Gunter
public java.math.BigDecimal getBigDecimal() throws ColumnTypeException
ColumnTypeException
- If the column value is not a BigDecimal
(if the column type is not NUMERIC, or DECIMAL.)author Jay Gunter
|
DODS 7.2 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |