java.lang.Object
org.seasar.doma.jdbc.command.JdbcOutParameterRegistrar
- All Implemented Interfaces:
JdbcMappingFunction
A function that registers output parameters for a callable statement.
This class is used to register output parameters for stored procedures and functions. It
implements JdbcMappingFunction to handle different JDBC types.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CallableStatementThe callable statement to register output parameters for.protected final intThe parameter index in the callable statement. -
Constructor Summary
ConstructorsConstructorDescriptionJdbcOutParameterRegistrar(CallableStatement callableStatement, int index) Creates a new instance. -
Method Summary
-
Field Details
-
callableStatement
The callable statement to register output parameters for. -
index
protected final int indexThe parameter index in the callable statement.
-
-
Constructor Details
-
JdbcOutParameterRegistrar
Creates a new instance.- Parameters:
callableStatement- the callable statement to register output parameters forindex- the parameter index in the callable statement- Throws:
NullPointerException- if the callable statement is nullIllegalArgumentException- if the index is less than or equal to 0
-
-
Method Details
-
apply
Applies this function to register an output parameter.- Specified by:
applyin interfaceJdbcMappingFunction- Type Parameters:
R- the result typeV- the value type- Parameters:
wrapper- the wrapper for the valuejdbcType- the JDBC type- Returns:
- always null
- Throws:
SQLException- if a database access error occursDomaNullPointerException- if the jdbcType is null
-