org.springframework.jdbc.core
Class ResultSetSupportingSqlParameter
java.lang.Object
org.springframework.jdbc.core.SqlParameter
org.springframework.jdbc.core.ResultSetSupportingSqlParameter
- Direct Known Subclasses:
- SqlOutParameter, SqlReturnResultSet
- public class ResultSetSupportingSqlParameter
- extends SqlParameter
Common base class for ResultSet-supporting SqlParameters like
SqlOutParameter and SqlReturnResultSet.
- Since:
- 26.05.2004
- Author:
- Juergen Hoeller
- See Also:
SqlOutParameter
,
SqlReturnResultSet
Constructor Summary |
ResultSetSupportingSqlParameter(String name,
int type)
Create a new ResultSetSupportingSqlParameter, supplying name and SQL type. |
ResultSetSupportingSqlParameter(String name,
int type,
ResultSetExtractor resultSetExtractor)
|
ResultSetSupportingSqlParameter(String name,
int type,
RowCallbackHandler rch)
|
ResultSetSupportingSqlParameter(String name,
int type,
RowMapper rm)
|
ResultSetSupportingSqlParameter(String name,
int type,
RowMapper rm,
int rowsExpected)
|
ResultSetSupportingSqlParameter(String name,
int type,
String typeName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResultSetSupportingSqlParameter
public ResultSetSupportingSqlParameter(String name,
int type)
- Create a new ResultSetSupportingSqlParameter, supplying name and SQL type.
- Parameters:
name
- name of the parameter, as used in input and output mapstype
- SQL type of the parameter according to java.sql.Types
ResultSetSupportingSqlParameter
public ResultSetSupportingSqlParameter(String name,
int type,
String typeName)
ResultSetSupportingSqlParameter
public ResultSetSupportingSqlParameter(String name,
int type,
ResultSetExtractor resultSetExtractor)
ResultSetSupportingSqlParameter
public ResultSetSupportingSqlParameter(String name,
int type,
RowCallbackHandler rch)
ResultSetSupportingSqlParameter
public ResultSetSupportingSqlParameter(String name,
int type,
RowMapper rm)
ResultSetSupportingSqlParameter
public ResultSetSupportingSqlParameter(String name,
int type,
RowMapper rm,
int rowsExpected)
isResultSetSupported
public boolean isResultSetSupported()
isRowCallbackHandlerSupported
protected boolean isRowCallbackHandlerSupported()
getResultSetExtractor
protected ResultSetExtractor getResultSetExtractor()
getRowCallbackHandler
protected RowCallbackHandler getRowCallbackHandler()
- Return a new instance of the implementation of a RowCallbackHandler,
usable for returned ResultSets. This implementation invokes a given
RowMapper via the RowMapperResultReader adapter, respectively returns
a given RowCallbackHandler directly.
- See Also:
RowMapperResultReader
Copyright (C) 2003-2004 The Spring Framework Project.