| Constructor and Description |
|---|
ObjectArgument(Object value,
Integer sqlType)
Bind a vendor-supported object with the given SQL type
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(int position,
PreparedStatement statement,
StatementContext ctx)
Apply the argument to the given prepared statement.
|
String |
toString() |
public ObjectArgument(Object value, Integer sqlType)
value - the value to call @link PreparedStatement.setObject(int, Object) withsqlType - the type to bindTypespublic 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 wrongCopyright © 2017. All rights reserved.