Package org.jdbi.v3.core.statement
Class Call.OutParamArgument
- java.lang.Object
-
- org.jdbi.v3.core.statement.Call.OutParamArgument
-
-
Field Summary
Fields Modifier and Type Field Description private CallableStatementMappermapperprivate java.lang.Stringnameprivate intpositionprivate intsqlType
-
Constructor Summary
Constructors Constructor Description OutParamArgument(int sqlType, CallableStatementMapper mapper, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(int outPosition, java.sql.PreparedStatement statement, StatementContext ctx)Apply the argument to the given prepared statement.java.lang.Objectmap(java.sql.CallableStatement stmt)
-
-
-
Field Detail
-
sqlType
private final int sqlType
-
mapper
private final CallableStatementMapper mapper
-
name
private final java.lang.String name
-
position
private int position
-
-
Constructor Detail
-
OutParamArgument
OutParamArgument(int sqlType, CallableStatementMapper mapper, java.lang.String name)
-
-
Method Detail
-
apply
public void apply(int outPosition, java.sql.PreparedStatement statement, StatementContext ctx) throws java.sql.SQLExceptionDescription 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:
java.sql.SQLException- if anything goes wrong
-
map
public java.lang.Object map(java.sql.CallableStatement stmt)
-
-