Package org.jdbi.v3.core.statement
Class Call.OutParamArgument
java.lang.Object
org.jdbi.v3.core.statement.Call.OutParamArgument
- All Implemented Interfaces:
Argument
- Enclosing class:
- Call
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(int outPosition, PreparedStatement statement, StatementContext ctx) Apply the argument to the given prepared statement.map(CallableStatement stmt)
-
Field Details
-
sqlType
private final int sqlType -
mapper
-
name
-
position
private int position
-
-
Constructor Details
-
OutParamArgument
OutParamArgument(int sqlType, CallableStatementMapper mapper, String name)
-
-
Method Details
-
apply
public void apply(int outPosition, PreparedStatement statement, StatementContext ctx) throws SQLException Description copied from interface:ArgumentApply the argument to the given prepared statement.- Specified by:
applyin interfaceArgument- Parameters:
outPosition- the position to which the argument should be bound, using the stupid JDBC "start at 1" bitstatement- the prepared statement the argument is to be bound toctx- the statement context- Throws:
SQLException- if anything goes wrong
-
map
-