当前页面:
在线文档首页 >
JBoss 4.0.1 sp1 server API Documentation 英文版文档
JDBCResultSetReader.AbstractResultSetReader (JBoss Server API) - JBoss 4.0.1 sp1 server API Documentation 英文版文档
org.jboss.ejb.plugins.cmp.jdbc
Class JDBCResultSetReader.AbstractResultSetReader
java.lang.Object
org.jboss.ejb.plugins.cmp.jdbc.JDBCResultSetReader.AbstractResultSetReader
- All Implemented Interfaces:
- JDBCResultSetReader
- Direct Known Subclasses:
- JDBCResultSetReader.AbstractPrimitiveReader
- Enclosing class:
- JDBCResultSetReader
- public abstract static class JDBCResultSetReader.AbstractResultSetReader
- extends Object
- implements JDBCResultSetReader
Fields inherited from interface org.jboss.ejb.plugins.cmp.jdbc.JDBCResultSetReader |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JDBCResultSetReader.AbstractResultSetReader
public JDBCResultSetReader.AbstractResultSetReader()
get
public Object get(ResultSet rs,
int index,
Class destination,
org.jboss.logging.Logger log)
throws SQLException
- Description copied from interface:
JDBCResultSetReader
- Reads one column from the java.sql.ResultSet.
- Specified by:
get
in interface JDBCResultSetReader
- Parameters:
rs
- the java.sql.ResultSet to read fromindex
- the index of the columndestination
- the expected Java class of resultlog
- the logger
- Returns:
- column value
- Throws:
SQLException
readResult
protected abstract Object readResult(ResultSet rs,
int index,
Class destination)
throws SQLException
- Throws:
SQLException
coerceToJavaType
protected Object coerceToJavaType(Object value,
Class destination)
throws SQLException
- Throws:
SQLException
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.