public abstract static class JDBCResultSetReader.AbstractResultSetReader extends Object implements JDBCResultSetReader
JDBCResultSetReader.AbstractPrimitiveReader, JDBCResultSetReader.AbstractResultSetReader
ARRAY_READER, BIGDECIMAL_READER, BINARY_READER, BLOB_READER, BOOLEAN_READER, BYTE_ARRAY_READER, BYTE_READER, CHARACTER_READER, CLOB_READER, DOUBLE_READER, FLOAT_READER, INT_READER, JAVA_OBJECT_READER, JAVA_SQL_DATE_READER, JAVA_SQL_TIME_READER, JAVA_SQL_TIMESTAMP_READER, JAVA_UTIL_DATE_READER, LONG_READER, LONGVARBINARY_READER, LONGVARCHAR_READER, OBJECT_READER, OTHER_READER, REF_READER, SHORT_READER, STRING_READER, STRUCT_READER, VARBINARY_READER
Constructor and Description |
---|
JDBCResultSetReader.AbstractResultSetReader() |
Modifier and Type | Method and Description |
---|---|
protected Object |
coerceToJavaType(Object value,
Class<?> destination) |
Object |
get(ResultSet rs,
int index,
Class<?> destination,
org.jboss.logging.Logger log)
Reads one column from the java.sql.ResultSet.
|
protected abstract Object |
readResult(ResultSet rs,
int index,
Class<?> destination) |
public JDBCResultSetReader.AbstractResultSetReader()
public Object get(ResultSet rs, int index, Class<?> destination, org.jboss.logging.Logger log) throws SQLException
JDBCResultSetReader
get
in interface JDBCResultSetReader
rs
- the java.sql.ResultSet to read fromindex
- the index of the columndestination
- the expected Java class of resultlog
- the loggerSQLException
protected abstract Object readResult(ResultSet rs, int index, Class<?> destination) throws SQLException
SQLException
protected Object coerceToJavaType(Object value, Class<?> destination) throws SQLException
SQLException
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.