public class SqlInOutParameter extends SqlOutParameter
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.
| Constructor and Description |
|---|
SqlInOutParameter(String name,
int sqlType)
Create a new SqlInOutParameter.
|
SqlInOutParameter(String name,
int sqlType,
int scale)
Create a new SqlInOutParameter.
|
SqlInOutParameter(String name,
int sqlType,
ResultSetExtractor<?> rse)
Create a new SqlInOutParameter.
|
SqlInOutParameter(String name,
int sqlType,
RowCallbackHandler rch)
Create a new SqlInOutParameter.
|
SqlInOutParameter(String name,
int sqlType,
RowMapper<?> rm)
Create a new SqlInOutParameter.
|
SqlInOutParameter(String name,
int sqlType,
String typeName)
Create a new SqlInOutParameter.
|
SqlInOutParameter(String name,
int sqlType,
String typeName,
SqlReturnType sqlReturnType)
Create a new SqlInOutParameter.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isInputValueProvided()
This implementation always returns
true. |
getSqlReturnType, isReturnTypeSupportedgetResultSetExtractor, getRowCallbackHandler, getRowMapper, isResultSetSupportedgetName, getScale, getSqlType, getTypeName, isResultsParameter, sqlTypesToAnonymousParameterListpublic SqlInOutParameter(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 SqlInOutParameter(String name, int sqlType, int scale)
name - name of the parameter, as used in input and output mapssqlType - SQL type of the parameter according to java.sql.Typesscale - the number of digits after the decimal point
(for DECIMAL and NUMERIC types)public SqlInOutParameter(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 SqlInOutParameter(String name, int sqlType, String typeName, SqlReturnType sqlReturnType)
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)sqlReturnType - custom value handler for complex type (optional)public SqlInOutParameter(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 SqlInOutParameter(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 SqlInOutParameter(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 boolean isInputValueProvided()
true.isInputValueProvided in class ResultSetSupportingSqlParameter