spring-framework / org.springframework.jdbc.core / SqlOutParameter

SqlOutParameter

open class SqlOutParameter : ResultSetSupportingSqlParameter

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

Author
Thomas Risberg

Author
Juergen Hoeller

See Also
SqlReturnResultSetSqlInOutParameter

Constructors

<init>

SqlOutParameter(name: String, sqlType: Int)
SqlOutParameter(name: String, sqlType: Int, scale: Int)
SqlOutParameter(name: String, sqlType: Int, typeName: String)
SqlOutParameter(name: String, sqlType: Int, typeName: String, sqlReturnType: SqlReturnType)
SqlOutParameter(name: String, sqlType: Int, rse: ResultSetExtractor<*>)
SqlOutParameter(name: String, sqlType: Int, rch: RowCallbackHandler)
SqlOutParameter(name: String, sqlType: Int, rm: RowMapper<*>)

Create a new SqlOutParameter.

Functions

getSqlReturnType

open fun getSqlReturnType(): SqlReturnType

Return the custom return type, if any.

isReturnTypeSupported

open fun isReturnTypeSupported(): Boolean

Return whether this parameter holds a custom return type.

Inherited Functions

getResultSetExtractor

open fun getResultSetExtractor(): ResultSetExtractor<*>

Return the ResultSetExtractor held by this parameter, if any.

getRowCallbackHandler

open fun getRowCallbackHandler(): RowCallbackHandler

Return the RowCallbackHandler held by this parameter, if any.

getRowMapper

open fun getRowMapper(): RowMapper<*>

Return the RowMapper held by this parameter, if any.

isInputValueProvided

open fun isInputValueProvided(): Boolean

This implementation always returns false.

isResultSetSupported

open fun isResultSetSupported(): Boolean

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

Inheritors

SqlInOutParameter

open class SqlInOutParameter : SqlOutParameter

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.