|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.jdbc.core.SqlParameter org.springframework.jdbc.core.ResultSetSupportingSqlParameter
public class ResultSetSupportingSqlParameter
Common base class for ResultSet-supporting SqlParameters like SqlOutParameter and SqlReturnResultSet.
SqlOutParameter
,
SqlReturnResultSet
Constructor Summary | |
---|---|
ResultSetSupportingSqlParameter(String name,
int sqlType)
Create a new ResultSetSupportingSqlParameter. |
|
ResultSetSupportingSqlParameter(String name,
int sqlType,
ResultSetExtractor rse)
Create a new ResultSetSupportingSqlParameter. |
|
ResultSetSupportingSqlParameter(String name,
int sqlType,
RowCallbackHandler rch)
Create a new ResultSetSupportingSqlParameter. |
|
ResultSetSupportingSqlParameter(String name,
int sqlType,
RowMapper rm)
Create a new ResultSetSupportingSqlParameter. |
|
ResultSetSupportingSqlParameter(String name,
int sqlType,
RowMapper rm,
int rowsExpected)
Create a new ResultSetSupportingSqlParameter. |
|
ResultSetSupportingSqlParameter(String name,
int sqlType,
String typeName)
Create a new ResultSetSupportingSqlParameter. |
Method Summary | |
---|---|
ResultSetExtractor |
getResultSetExtractor()
Return the ResultSetExtractor held by this parameter, if any. |
RowCallbackHandler |
getRowCallbackHandler()
Return a new instance of the implementation of a RowCallbackHandler, usable for returned ResultSets. |
boolean |
isResultSetSupported()
Does this parameter support a ResultSet, i.e. does it hold a ResultSetExtractor, RowCallbackHandler or RowMapper? |
boolean |
isRowCallbackHandlerSupported()
Does this parameter support a RowCallbackHandler, i.e. does it hold a RowCallbackHandler or RowMapper? |
Methods inherited from class org.springframework.jdbc.core.SqlParameter |
---|
getName, getSqlType, getTypeName, sqlTypesToAnonymousParameterList |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResultSetSupportingSqlParameter(String name, int sqlType)
name
- name of the parameter, as used in input and output mapssqlType
- SQL type of the parameter according to java.sql.Typespublic ResultSetSupportingSqlParameter(String name, int sqlType, String typeName)
name
- name of the parameter, as used in input and output mapssqlType
- SQL type of the parameter according to java.sql.TypestypeName
- the type name of the parameter (optional)public ResultSetSupportingSqlParameter(String name, int sqlType, ResultSetExtractor rse)
name
- name of the parameter, as used in input and output mapssqlType
- SQL type of the parameter according to java.sql.Typesrse
- ResultSetExtractor to use for parsing the ResultSetpublic ResultSetSupportingSqlParameter(String name, int sqlType, RowCallbackHandler rch)
name
- name of the parameter, as used in input and output mapssqlType
- SQL type of the parameter according to java.sql.Typesrch
- RowCallbackHandler to use for parsing the ResultSetpublic ResultSetSupportingSqlParameter(String name, int sqlType, RowMapper rm)
name
- name of the parameter, as used in input and output mapssqlType
- SQL type of the parameter according to java.sql.Typesrm
- RowMapper to use for parsing the ResultSetpublic ResultSetSupportingSqlParameter(String name, int sqlType, RowMapper rm, int rowsExpected)
name
- name of the parameter, as used in input and output mapssqlType
- SQL type of the parameter according to java.sql.Typesrm
- RowMapper to use for parsing the ResultSetrowsExpected
- number of expected rowsMethod Detail |
---|
public boolean isResultSetSupported()
public boolean isRowCallbackHandlerSupported()
public ResultSetExtractor getResultSetExtractor()
public RowCallbackHandler getRowCallbackHandler()
RowMapperResultReader
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |