public class ResultSetJELRowReader extends JELRowReader
ResultSet
objects.
Column indices are 1-based, as for other JDBC methods.COLUMN_ID_CHAR, NULL_QUERY_PREFIX, OBJECT_PREFIX
Constructor and Description |
---|
ResultSetJELRowReader(ResultSet rset)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
evaluate, evaluateBoolean, evaluateDouble, foundNull, getBooleanArrayProperty, getBooleanProperty, getBooleanProperty, getBooleanValue, getByteArrayProperty, getByteProperty, getByteValue, getCharArrayProperty, getCharProperty, getCharValue, getColumnIndex, getDateArrayProperty, getDoubleArrayProperty, getDoubleProperty, getDoubleValue, getFloatArrayProperty, getFloatProperty, getFloatValue, getIntArrayProperty, getIntProperty, getIntValue, getLongArrayProperty, getLongProperty, getLongValue, getNumberProperty, getObjectArrayProperty, getObjectProperty, getShortArrayProperty, getShortProperty, getShortValue, getStringArrayProperty, getStringProperty, getTranslatedColumns, getTranslatedConstants, getTypeName, setFailOnNull, stripPrefix, translate
public ResultSetJELRowReader(ResultSet rset) throws SQLException
rset
- result setSQLException
protected int getColumnIndexByName(String name)
JELRowReader
name
does not refer to any known column, return -1.getColumnIndexByName
in class JELRowReader
name
- column nameprotected Constant<?> getConstantByName(String name)
JELRowReader
getConstantByName
in class JELRowReader
name
- constant nameprotected boolean isBlank(int icol)
JELRowReader
isBlank
in class JELRowReader
icol
- column indexprotected Class<?> getColumnClass(int icol)
JELRowReader
getColumnClass
in class JELRowReader
icol
- non-negative column indexprotected boolean getBooleanColumnValue(int icol)
JELRowReader
JELRowReader.foundNull()
(and return any value) if the result
is null.getBooleanColumnValue
in class JELRowReader
icol
- column indexprotected byte getByteColumnValue(int icol)
JELRowReader
JELRowReader.foundNull()
(and return any value) if the result
is null.getByteColumnValue
in class JELRowReader
icol
- column indexprotected char getCharColumnValue(int icol)
JELRowReader
JELRowReader.foundNull()
(and return any value) if the result
is null.getCharColumnValue
in class JELRowReader
icol
- column indexprotected short getShortColumnValue(int icol)
JELRowReader
JELRowReader.foundNull()
(and return any value) if the result
is null.getShortColumnValue
in class JELRowReader
icol
- column indexprotected int getIntColumnValue(int icol)
JELRowReader
JELRowReader.foundNull()
(and return any value) if the result
is null.getIntColumnValue
in class JELRowReader
icol
- column indexprotected long getLongColumnValue(int icol)
JELRowReader
JELRowReader.foundNull()
(and return any value) if the result
is null.getLongColumnValue
in class JELRowReader
icol
- column indexprotected float getFloatColumnValue(int icol)
JELRowReader
JELRowReader.foundNull()
(and return any value) if the result
is null.getFloatColumnValue
in class JELRowReader
icol
- column indexprotected double getDoubleColumnValue(int icol)
JELRowReader
JELRowReader.foundNull()
(and return any value) if the result
is null.getDoubleColumnValue
in class JELRowReader
icol
- column indexprotected Object getObjectColumnValue(int icol)
JELRowReader
getObjectColumnValue
in class JELRowReader
icol
- column indexprotected Constant<?> getSpecialByName(String name)
JELRowReader
The current specials are:
null
value (this is not built in
to the JEL evaluator)
getSpecialByName
in class JELRowReader
name
- special nameCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.