|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectnet.hasor.jdbc.core.SqlRowSetResultSetExtractor
public class SqlRowSetResultSetExtractor
接口 ResultSetExtractor 实现类,返回一个 SqlRowSet 数据集对象。
默认实现使用 JDBC 标准 CachedRowSet.需要保证在运行时
com.sun.rowset.CachedRowSetImpl 类是可用的。
newCachedRowSet(),
CachedRowSet| 构造方法摘要 | |
|---|---|
SqlRowSetResultSetExtractor()
|
|
| 方法摘要 | |
|---|---|
protected SqlRowSet |
createSqlRowSet(ResultSet rs)
Create a SqlRowSet that wraps the given ResultSet, representing its data in a disconnected fashion. |
SqlRowSet |
extractData(ResultSet rs)
将结果集内容转换。 |
protected CachedRowSet |
newCachedRowSet()
Create a new CachedRowSet instance, to be populated by the createSqlRowSet implementation. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public SqlRowSetResultSetExtractor()
| 方法详细信息 |
|---|
public SqlRowSet extractData(ResultSet rs)
throws SQLException
ResultSetExtractor 复制的描述
ResultSetExtractor<SqlRowSet> 中的 extractDataSQLException
protected SqlRowSet createSqlRowSet(ResultSet rs)
throws SQLException
This implementation creates a Spring ResultSetWrappingSqlRowSet instance that wraps a standard JDBC CachedRowSet instance. Can be overridden to use a different implementation.
rs - the original ResultSet (connected)
SQLException - if thrown by JDBC methodsnewCachedRowSet(),
org.noe.platform.modules.db.jdbcorm.jdbc.support.rowset.ResultSetWrappingSqlRowSet
protected CachedRowSet newCachedRowSet()
throws SQLException
createSqlRowSet implementation.
The default implementation creates a new instance of
Sun's com.sun.rowset.CachedRowSetImpl class.
SQLException - if thrown by JDBC methodscreateSqlRowSet(java.sql.ResultSet),
CachedRowSetImpl
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||