Top Description Constructors Methods
org.springframework.jdbc.core

public Class SqlInOutParameter

extends SqlOutParameter
Class Inheritance
Imports
java.sql.ResultSet

Subclass of SqlOutParameter to represent an INOUT parameter. Will return true for SqlParameter's isInputValueProvided test, in contrast to a standard SqlOutParameter.

Output parameters - like all stored procedure parameters - must have names.

Authors
Thomas Risberg, Juergen Hoeller
Since
2.0

Constructor Summary

AccessConstructor and Description
public
SqlInOutParameter(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 SqlInOutParameter.

public
SqlInOutParameter(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 SqlInOutParameter.

public
SqlInOutParameter(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 SqlInOutParameter.

public
SqlInOutParameter(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
,
SqlReturnType
custom value handler for complex type (optional)
sqlReturnType
)

Create a new SqlInOutParameter.

public
SqlInOutParameter(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 SqlInOutParameter.

public
SqlInOutParameter(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 SqlInOutParameter.

public
SqlInOutParameter(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 SqlInOutParameter.

Method Summary

Modifier and TypeMethod and Description
public boolean
Inherited from org.springframework.jdbc.core.SqlOutParameter:
getSqlReturnTypeisReturnTypeSupported

Constructor Detail

SqlInOutParameterback to summary
public SqlInOutParameter(String name, int sqlType)

Create a new SqlInOutParameter.

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

SqlInOutParameterback to summary
public SqlInOutParameter(String name, int sqlType, int scale)

Create a new SqlInOutParameter.

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)

SqlInOutParameterback to summary
public SqlInOutParameter(String name, int sqlType, String typeName)

Create a new SqlInOutParameter.

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)

SqlInOutParameterback to summary
public SqlInOutParameter(String name, int sqlType, String typeName, SqlReturnType sqlReturnType)

Create a new SqlInOutParameter.

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)

sqlReturnType:SqlReturnType

custom value handler for complex type (optional)

SqlInOutParameterback to summary
public SqlInOutParameter(String name, int sqlType, ResultSetExtractor<?> rse)

Create a new SqlInOutParameter.

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

SqlInOutParameterback to summary
public SqlInOutParameter(String name, int sqlType, RowCallbackHandler rch)

Create a new SqlInOutParameter.

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

SqlInOutParameterback to summary
public SqlInOutParameter(String name, int sqlType, RowMapper<?> rm)

Create a new SqlInOutParameter.

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

isInputValueProvidedback to summary
public boolean isInputValueProvided()

Overrides org.springframework.jdbc.core.ResultSetSupportingSqlParameter.isInputValueProvided.

This implementation always returns true.

Annotations
@Override