|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgnu.jel.DVMap
uk.ac.starlink.ttools.jel.JELRowReader
uk.ac.starlink.ttools.jel.ResultSetJELRowReader
public class ResultSetJELRowReader
JELRowReader for accessing JDBC ResultSet
objects.
Column indices are 1-based, as for other JDBC methods.
Field Summary |
---|
Fields inherited from class uk.ac.starlink.ttools.jel.JELRowReader |
---|
COLUMN_ID_CHAR, NULL_QUERY_PREFIX |
Constructor Summary | |
---|---|
ResultSetJELRowReader(ResultSet rset)
Constructor. |
Method Summary | |
---|---|
protected boolean |
getBooleanColumnValue(int icol)
Returns a boolean value for a cell of the current row. |
protected byte |
getByteColumnValue(int icol)
Returns a byte value for a cell of the current row. |
protected char |
getCharColumnValue(int icol)
Returns a char value for a cell of the current row. |
protected Class |
getColumnClass(int icol)
Returns the class of values returned by a given column. |
protected int |
getColumnIndexByName(String name)
Returns the column index of a column in the row given its name. |
protected Constant |
getConstantByName(String name)
Returns a constant value for this reader given its name. |
protected double |
getDoubleColumnValue(int icol)
Returns a double value for a cell of the current row. |
protected float |
getFloatColumnValue(int icol)
Returns a float value for a cell of the current row. |
protected int |
getIntColumnValue(int icol)
Returns a int value for a cell of the current row. |
protected long |
getLongColumnValue(int icol)
Returns a long value for a cell of the current row. |
protected Object |
getObjectColumnValue(int icol)
Returns an Object value for a cell of the current row. |
protected short |
getShortColumnValue(int icol)
Returns a short value for a cell of the current row. |
protected Constant |
getSpecialByName(String name)
Returns the a special quantity which corresponds to a given name, or null if it isn't a special. |
protected boolean |
isBlank(int icol)
Indicates whether the value in a given column is null. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResultSetJELRowReader(ResultSet rset) throws SQLException
rset
- result set
SQLException
Method Detail |
---|
protected int getColumnIndexByName(String name)
JELRowReader
name
does not refer to any known column, return -1.
getColumnIndexByName
in class JELRowReader
name
- column name
protected Constant getConstantByName(String name)
JELRowReader
getConstantByName
in class JELRowReader
name
- constant name
protected boolean isBlank(int icol)
JELRowReader
isBlank
in class JELRowReader
icol
- column index
protected Class getColumnClass(int icol)
JELRowReader
getColumnClass
in class JELRowReader
icol
- column index
protected boolean getBooleanColumnValue(int icol)
JELRowReader
JELRowReader.foundNull()
(and return any value) if the result
is null.
getBooleanColumnValue
in class JELRowReader
icol
- column index
protected byte getByteColumnValue(int icol)
JELRowReader
JELRowReader.foundNull()
(and return any value) if the result
is null.
getByteColumnValue
in class JELRowReader
icol
- column index
protected char getCharColumnValue(int icol)
JELRowReader
JELRowReader.foundNull()
(and return any value) if the result
is null.
getCharColumnValue
in class JELRowReader
icol
- column index
protected short getShortColumnValue(int icol)
JELRowReader
JELRowReader.foundNull()
(and return any value) if the result
is null.
getShortColumnValue
in class JELRowReader
icol
- column index
protected int getIntColumnValue(int icol)
JELRowReader
JELRowReader.foundNull()
(and return any value) if the result
is null.
getIntColumnValue
in class JELRowReader
icol
- column index
protected long getLongColumnValue(int icol)
JELRowReader
JELRowReader.foundNull()
(and return any value) if the result
is null.
getLongColumnValue
in class JELRowReader
icol
- column index
protected float getFloatColumnValue(int icol)
JELRowReader
JELRowReader.foundNull()
(and return any value) if the result
is null.
getFloatColumnValue
in class JELRowReader
icol
- column index
protected double getDoubleColumnValue(int icol)
JELRowReader
JELRowReader.foundNull()
(and return any value) if the result
is null.
getDoubleColumnValue
in class JELRowReader
icol
- column index
protected Object getObjectColumnValue(int icol)
JELRowReader
getObjectColumnValue
in class JELRowReader
icol
- column index
protected Constant getSpecialByName(String name)
JELRowReader
The current specials are:
getSpecialByName
in class JELRowReader
name
- special name
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |