Package org.springframework.jdbc.core
Class ResultSetSupportingSqlParameter
java.lang.Object
org.springframework.jdbc.core.SqlParameter
org.springframework.jdbc.core.ResultSetSupportingSqlParameter
- Direct Known Subclasses:
SqlOutParameter,SqlReturnResultSet
Common base class for ResultSet-supporting SqlParameters like
SqlOutParameter and SqlReturnResultSet.- Since:
- 1.0.2
- Author:
- Juergen Hoeller
-
Constructor Summary
ConstructorsConstructorDescriptionResultSetSupportingSqlParameter(String name, int sqlType) Create a new ResultSetSupportingSqlParameter.ResultSetSupportingSqlParameter(String name, int sqlType, int scale) Create a new ResultSetSupportingSqlParameter.ResultSetSupportingSqlParameter(String name, int sqlType, String typeName) 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. -
Method Summary
Modifier and TypeMethodDescriptionReturn the ResultSetExtractor held by this parameter, if any.Return the RowCallbackHandler held by this parameter, if any.RowMapper<?>Return the RowMapper held by this parameter, if any.booleanThis implementation always returnsfalse.booleanDoes this parameter support a ResultSet, i.e.Methods inherited from class org.springframework.jdbc.core.SqlParameter
getName, getScale, getSqlType, getTypeName, isResultsParameter, sqlTypesToAnonymousParameterList
-
Constructor Details
-
ResultSetSupportingSqlParameter
Create a new ResultSetSupportingSqlParameter.- Parameters:
name- the name of the parameter, as used in input and output mapssqlType- the parameter SQL type according tojava.sql.Types
-
ResultSetSupportingSqlParameter
Create a new ResultSetSupportingSqlParameter.- Parameters:
name- the name of the parameter, as used in input and output mapssqlType- the parameter SQL type according tojava.sql.Typesscale- the number of digits after the decimal point (for DECIMAL and NUMERIC types)
-
ResultSetSupportingSqlParameter
Create a new ResultSetSupportingSqlParameter.- Parameters:
name- the name of the parameter, as used in input and output mapssqlType- the parameter SQL type according tojava.sql.TypestypeName- the type name of the parameter (optional)
-
ResultSetSupportingSqlParameter
Create a new ResultSetSupportingSqlParameter.- Parameters:
name- the name of the parameter, as used in input and output mapssqlType- the parameter SQL type according tojava.sql.Typesrse- theResultSetExtractorto use for parsing theResultSet
-
ResultSetSupportingSqlParameter
Create a new ResultSetSupportingSqlParameter.- Parameters:
name- the name of the parameter, as used in input and output mapssqlType- the parameter SQL type according tojava.sql.Typesrch- theRowCallbackHandlerto use for parsing theResultSet
-
ResultSetSupportingSqlParameter
Create a new ResultSetSupportingSqlParameter.
-
-
Method Details
-
isResultSetSupported
public boolean isResultSetSupported()Does this parameter support a ResultSet, i.e. does it hold a ResultSetExtractor, RowCallbackHandler or RowMapper? -
getResultSetExtractor
Return the ResultSetExtractor held by this parameter, if any. -
getRowCallbackHandler
Return the RowCallbackHandler held by this parameter, if any. -
getRowMapper
Return the RowMapper held by this parameter, if any. -
isInputValueProvided
public boolean isInputValueProvided()This implementation always returnsfalse.- Overrides:
isInputValueProvidedin classSqlParameter
-