Package org.jdbi.v3.core.argument
Interface Argument
-
- All Known Implementing Classes:
BitStringEnumSetArgument,BlobInputStreamArgumentFactory.LobInputStreamArgument,Call.OutParamArgument,CharacterStreamArgument,DescribedArgument,InputStreamArgument,LoggableBinderArgument,NullArgument,ObjectArgument,SqlArrayArgument
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ArgumentRepresents an argument to a prepared statement. It will be called right before the statement is executed to bind the parameter. Make sure to overrideObject.toString()if you want to be able to log values with anSqlLogger.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidapply(int position, java.sql.PreparedStatement statement, StatementContext ctx)Apply the argument to the given prepared statement.
-
-
-
Method Detail
-
apply
void apply(int position, java.sql.PreparedStatement statement, StatementContext ctx) throws java.sql.SQLExceptionApply the argument to the given prepared statement.- Parameters:
position- 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
-
-