net.hasor.jdbc.parameter
类 SqlResultSetParameter

java.lang.Object
  继承者 net.hasor.jdbc.parameter.SqlParameter
      继承者 net.hasor.jdbc.parameter.SqlResultSetParameter

public class SqlResultSetParameter
extends SqlParameter

支持结果集的SQL参数。

版本:
: 2013-10-15
作者:
赵永春(zyc@hasor.net)

构造方法摘要
SqlResultSetParameter(String name, ResultSetExtractor<?> rse)
          Create a new ResultSetSupportingSqlParameter.
SqlResultSetParameter(String name, RowCallbackHandler rch)
          Create a new ResultSetSupportingSqlParameter.
SqlResultSetParameter(String name, RowMapper<?> rm)
          Create a new ResultSetSupportingSqlParameter.
 
方法摘要
 ResultSetExtractor<?> getResultSetExtractor()
          Return the ResultSetExtractor held by this parameter, if any.
 RowCallbackHandler getRowCallbackHandler()
          Return the RowCallbackHandler held by this parameter, if any.
 RowMapper<?> getRowMapper()
          Return the RowMapper held by this parameter, if any.
 boolean isResultSetSupported()
          Does this parameter support a ResultSet, i.e. does it hold a ResultSetExtractor, RowCallbackHandler or RowMapper?
 
从类 net.hasor.jdbc.parameter.SqlParameter 继承的方法
getName, getScale, getSqlType, sqlTypesToAnonymousParameterList
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

SqlResultSetParameter

public SqlResultSetParameter(String name,
                             ResultSetExtractor<?> rse)
Create a new ResultSetSupportingSqlParameter.

参数:
name - name of the parameter, as used in input and output maps
sqlType - SQL type of the parameter according to java.sql.Types
rse - ResultSetExtractor to use for parsing the ResultSet

SqlResultSetParameter

public SqlResultSetParameter(String name,
                             RowCallbackHandler rch)
Create a new ResultSetSupportingSqlParameter.

参数:
name - name of the parameter, as used in input and output maps
sqlType - SQL type of the parameter according to java.sql.Types
rch - RowCallbackHandler to use for parsing the ResultSet

SqlResultSetParameter

public SqlResultSetParameter(String name,
                             RowMapper<?> rm)
Create a new ResultSetSupportingSqlParameter.

参数:
name - name of the parameter, as used in input and output maps
sqlType - SQL type of the parameter according to java.sql.Types
rm - RowMapper to use for parsing the ResultSet
方法详细信息

isResultSetSupported

public boolean isResultSetSupported()
Does this parameter support a ResultSet, i.e. does it hold a ResultSetExtractor, RowCallbackHandler or RowMapper?


getResultSetExtractor

public ResultSetExtractor<?> getResultSetExtractor()
Return the ResultSetExtractor held by this parameter, if any.


getRowCallbackHandler

public RowCallbackHandler getRowCallbackHandler()
Return the RowCallbackHandler held by this parameter, if any.


getRowMapper

public RowMapper<?> getRowMapper()
Return the RowMapper held by this parameter, if any.



Copyright © 2013-2014. All Rights Reserved.