| Modifier and Type | Method and Description |
|---|---|
void |
apply(int position,
PreparedStatement statement,
StatementContext ctx)
Apply the argument to the given prepared statement.
|
static Argument |
of(Object value)
Bind a vendor-supported object with the given SQL type.
|
static Argument |
of(Object value,
Integer sqlType)
Bind a vendor-supported object with the given SQL type.
|
String |
toString() |
public void apply(int position,
PreparedStatement statement,
StatementContext ctx)
throws SQLException
Argumentapply in interface Argumentposition - 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 contextSQLException - if anything goes wrongpublic static Argument of(Object value)
value - the value to call @link PreparedStatement.setObject(int, Object) withpublic static Argument of(Object value, Integer sqlType)
value - the value to call @link PreparedStatement.setObject(int, Object, int) withsqlType - the type to bindTypesCopyright © 2019. All rights reserved.