R
- the type of read operation result@Internal
public abstract class ColumnReader<R>
extends java.lang.Object
ResultSet
.Modifier | Constructor and Description |
---|---|
protected |
ColumnReader(java.lang.String columnName)
Creates a new
ColumnReader for the specified column. |
Modifier and Type | Method and Description |
---|---|
abstract R |
readValue(java.sql.ResultSet resultSet)
Reads the value of the designated column in the current row of the
ResultSet . |
protected ColumnReader(java.lang.String columnName)
ColumnReader
for the specified column.columnName
- the name of the column to readpublic abstract R readValue(java.sql.ResultSet resultSet) throws java.sql.SQLException
ResultSet
.resultSet
- the result set to read the column value fromjava.sql.SQLException
- if an error occurs during the read operation, e.g. the column doesn't exist or the
ResultSet
is closed