Top Description Fields Constructors Methods
org.springframework.jdbc.core

public Class ResultSetSupportingSqlParameter

extends SqlParameter
Class Inheritance
Known Direct Subclasses
org.springframework.jdbc.core.SqlOutParameter, org.springframework.jdbc.core.SqlReturnResultSet
Imports
java.sql.ResultSet, org.springframework.lang.Nullable

Common base class for ResultSet-supporting SqlParameters like SqlOutParameter and SqlReturnResultSet.
Author
Juergen Hoeller
Since
1.0.2

Field Summary

Modifier and TypeField and Description
private ResultSetExtractor<?>
private RowCallbackHandler
private RowMapper<?>

Constructor Summary

AccessConstructor and Description
public
ResultSetSupportingSqlParameter(String
the name of the parameter, as used in input and output maps
name
,
int
the parameter SQL type according to java.sql.Types
sqlType
)

Create a new ResultSetSupportingSqlParameter.

public
ResultSetSupportingSqlParameter(String
the name of the parameter, as used in input and output maps
name
,
int
the parameter SQL type according to java.sql.Types
sqlType
,
int
the number of digits after the decimal point (for DECIMAL and NUMERIC types)
scale
)

Create a new ResultSetSupportingSqlParameter.

public
ResultSetSupportingSqlParameter(String
the name of the parameter, as used in input and output maps
name
,
int
the parameter SQL type according to java.sql.Types
sqlType
,
String
the type name of the parameter (optional)
typeName
)

Create a new ResultSetSupportingSqlParameter.

public
ResultSetSupportingSqlParameter(String
the name of the parameter, as used in input and output maps
name
,
int
the parameter SQL type according to java.sql.Types
sqlType
,
ResultSetExtractor<?>
the ResultSetExtractor to use for parsing the ResultSet
rse
)

Create a new ResultSetSupportingSqlParameter.

public
ResultSetSupportingSqlParameter(String
the name of the parameter, as used in input and output maps
name
,
int
the parameter SQL type according to java.sql.Types
sqlType
,
RowCallbackHandler
the RowCallbackHandler to use for parsing the ResultSet
rch
)

Create a new ResultSetSupportingSqlParameter.

public
ResultSetSupportingSqlParameter(String
the name of the parameter, as used in input and output maps
name
,
int
the parameter SQL type according to java.sql.Types
sqlType
,
RowMapper<?>
the RowMapper to use for parsing the ResultSet
rm
)

Create a new ResultSetSupportingSqlParameter.

Method Summary

Modifier and TypeMethod and Description
public ResultSetExtractor<?>
getResultSetExtractor()

Return the ResultSetExtractor held by this parameter, if any.

public RowCallbackHandler
getRowCallbackHandler()

Return the RowCallbackHandler held by this parameter, if any.

public RowMapper<?>
getRowMapper()

Return the RowMapper held by this parameter, if any.

public boolean
isInputValueProvided()

Overrides org.springframework.jdbc.core.SqlParameter.isInputValueProvided.

This implementation always returns false.

public boolean
isResultSetSupported()

Does this parameter support a ResultSet, i.e. does it hold a ResultSetExtractor, RowCallbackHandler or RowMapper?

Inherited from org.springframework.jdbc.core.SqlParameter:
getNamegetScalegetSqlTypegetTypeNameisResultsParametersqlTypesToAnonymousParameterList

Field Detail

resultSetExtractorback to summary
private ResultSetExtractor<?> resultSetExtractor
Annotations
@Nullable
rowCallbackHandlerback to summary
private RowCallbackHandler rowCallbackHandler
Annotations
@Nullable
rowMapperback to summary
private RowMapper<?> rowMapper
Annotations
@Nullable

Constructor Detail

ResultSetSupportingSqlParameterback to summary
public ResultSetSupportingSqlParameter(String name, int sqlType)

Create a new ResultSetSupportingSqlParameter.

Parameters
name:String

the name of the parameter, as used in input and output maps

sqlType:int

the parameter SQL type according to java.sql.Types

ResultSetSupportingSqlParameterback to summary
public ResultSetSupportingSqlParameter(String name, int sqlType, int scale)

Create a new ResultSetSupportingSqlParameter.

Parameters
name:String

the name of the parameter, as used in input and output maps

sqlType:int

the parameter SQL type according to java.sql.Types

scale:int

the number of digits after the decimal point (for DECIMAL and NUMERIC types)

ResultSetSupportingSqlParameterback to summary
public ResultSetSupportingSqlParameter(String name, int sqlType, String typeName)

Create a new ResultSetSupportingSqlParameter.

Parameters
name:String

the name of the parameter, as used in input and output maps

sqlType:int

the parameter SQL type according to java.sql.Types

typeName:String

the type name of the parameter (optional)

ResultSetSupportingSqlParameterback to summary
public ResultSetSupportingSqlParameter(String name, int sqlType, ResultSetExtractor<?> rse)

Create a new ResultSetSupportingSqlParameter.

Parameters
name:String

the name of the parameter, as used in input and output maps

sqlType:int

the parameter SQL type according to java.sql.Types

rse:ResultSetExtractor<?>

the ResultSetExtractor to use for parsing the ResultSet

ResultSetSupportingSqlParameterback to summary
public ResultSetSupportingSqlParameter(String name, int sqlType, RowCallbackHandler rch)

Create a new ResultSetSupportingSqlParameter.

Parameters
name:String

the name of the parameter, as used in input and output maps

sqlType:int

the parameter SQL type according to java.sql.Types

rch:RowCallbackHandler

the RowCallbackHandler to use for parsing the ResultSet

ResultSetSupportingSqlParameterback to summary
public ResultSetSupportingSqlParameter(String name, int sqlType, RowMapper<?> rm)

Create a new ResultSetSupportingSqlParameter.

Parameters
name:String

the name of the parameter, as used in input and output maps

sqlType:int

the parameter SQL type according to java.sql.Types

rm:RowMapper<?>

the RowMapper to use for parsing the ResultSet

Method Detail

getResultSetExtractorback to summary
public ResultSetExtractor<?> getResultSetExtractor()

Return the ResultSetExtractor held by this parameter, if any.

Annotations
@Nullable
getRowCallbackHandlerback to summary
public RowCallbackHandler getRowCallbackHandler()

Return the RowCallbackHandler held by this parameter, if any.

Annotations
@Nullable
getRowMapperback to summary
public RowMapper<?> getRowMapper()

Return the RowMapper held by this parameter, if any.

Annotations
@Nullable
isInputValueProvidedback to summary
public boolean isInputValueProvided()

Overrides org.springframework.jdbc.core.SqlParameter.isInputValueProvided.

This implementation always returns false.

Annotations
@Override
isResultSetSupportedback to summary
public boolean isResultSetSupported()

Does this parameter support a ResultSet, i.e. does it hold a ResultSetExtractor, RowCallbackHandler or RowMapper?