Package org.jdbi.v3.core.argument
Class ObjectArgument
java.lang.Object
org.jdbi.v3.core.argument.ObjectArgument
- All Implemented Interfaces:
- Argument
An Argument which uses 
setObject to support
 vendor specific types.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidapply(int position, PreparedStatement statement, StatementContext ctx) Apply the argument to the given prepared statement.static ArgumentBind a vendor-supported object with the given SQL type.static ArgumentBind a vendor-supported object with the given SQL type.toString()
- 
Constructor Details- 
ObjectArgumentDeprecated.useof(Object, Integer)factory method for more consistentnullhandlingBind a vendor-supported object with the given SQL type.- Parameters:
- value- the value to call @link- PreparedStatement.setObject(int, Object)with
- sqlType- the type to bind
- See Also:
 
 
- 
- 
Method Details- 
ofBind a vendor-supported object with the given SQL type.- Parameters:
- value- the value to call @link- PreparedStatement.setObject(int, Object)with
- Returns:
- the Argument
 
- 
ofBind a vendor-supported object with the given SQL type.- Parameters:
- value- the value to call @link- PreparedStatement.setObject(int, Object, int)with
- sqlType- the type to bind
- Returns:
- the Argument
- See Also:
 
- 
applypublic void apply(int position, PreparedStatement statement, StatementContext ctx) throws SQLException Description copied from interface:ArgumentApply the argument to the given prepared statement.- Specified by:
- applyin interface- Argument
- Parameters:
- position- the position to which the argument should be bound, using the stupid JDBC "start at 1" bit
- statement- the prepared statement the argument is to be bound to
- ctx- the statement context
- Throws:
- SQLException- if anything goes wrong
 
- 
toString
 
- 
of(Object, Integer)factory method for more consistentnullhandling