Class SqlOutParameter
java.lang.Object
org.springframework.jdbc.core.SqlParameter
org.springframework.jdbc.core.ResultSetSupportingSqlParameter
org.springframework.jdbc.core.SqlOutParameter
- Direct Known Subclasses:
- SqlInOutParameter
Subclass of 
SqlParameter to represent an output parameter.
 No additional properties: instanceof will be used to check for such types.
 Output parameters - like all stored procedure parameters - must have names.
- Author:
- Rod Johnson, Thomas Risberg, Juergen Hoeller
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionSqlOutParameter(String name, int sqlType) Create a new SqlOutParameter.SqlOutParameter(String name, int sqlType, int scale) Create a new SqlOutParameter.SqlOutParameter(String name, int sqlType, @Nullable String typeName) Create a new SqlOutParameter.SqlOutParameter(String name, int sqlType, @Nullable String typeName, @Nullable SqlReturnType sqlReturnType) Create a new SqlOutParameter.SqlOutParameter(String name, int sqlType, ResultSetExtractor<?> rse) Create a new SqlOutParameter.SqlOutParameter(String name, int sqlType, RowCallbackHandler rch) Create a new SqlOutParameter.SqlOutParameter(String name, int sqlType, RowMapper<?> rm) Create a new SqlOutParameter.
- 
Method SummaryModifier and TypeMethodDescriptionReturn the custom return type, if any.booleanReturn whether this parameter holds a custom return type.Methods inherited from class org.springframework.jdbc.core.ResultSetSupportingSqlParametergetResultSetExtractor, getRowCallbackHandler, getRowMapper, isInputValueProvided, isResultSetSupportedMethods inherited from class org.springframework.jdbc.core.SqlParametergetName, getScale, getSqlType, getTypeName, isResultsParameter, sqlTypesToAnonymousParameterList
- 
Constructor Details- 
SqlOutParameterCreate a new SqlOutParameter.- Parameters:
- name- the name of the parameter, as used in input and output maps
- sqlType- the parameter SQL type according to- java.sql.Types
 
- 
SqlOutParameterCreate a new SqlOutParameter.- Parameters:
- name- the name of the parameter, as used in input and output maps
- sqlType- the parameter SQL type according to- java.sql.Types
- scale- the number of digits after the decimal point (for DECIMAL and NUMERIC types)
 
- 
SqlOutParameter
- 
SqlOutParameterpublic SqlOutParameter(String name, int sqlType, @Nullable String typeName, @Nullable SqlReturnType sqlReturnType) Create a new SqlOutParameter.- Parameters:
- name- the name of the parameter, as used in input and output maps
- sqlType- the parameter SQL type according to- java.sql.Types
- typeName- the type name of the parameter (optional)
- sqlReturnType- custom value handler for complex type (optional)
 
- 
SqlOutParameterCreate a new SqlOutParameter.- Parameters:
- name- the name of the parameter, as used in input and output maps
- sqlType- the parameter SQL type according to- java.sql.Types
- rse- the- ResultSetExtractorto use for parsing the- ResultSet
 
- 
SqlOutParameterCreate a new SqlOutParameter.- Parameters:
- name- the name of the parameter, as used in input and output maps
- sqlType- the parameter SQL type according to- java.sql.Types
- rch- the- RowCallbackHandlerto use for parsing the- ResultSet
 
- 
SqlOutParameter
 
- 
- 
Method Details- 
getSqlReturnTypeReturn the custom return type, if any.
- 
isReturnTypeSupportedpublic boolean isReturnTypeSupported()Return whether this parameter holds a custom return type.
 
-