Package org.jdbi.v3.core.argument
Class NullArgument
java.lang.Object
org.jdbi.v3.core.argument.NullArgument
- All Implemented Interfaces:
Argument
A typed SQL null argument.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
apply(int position, PreparedStatement statement, StatementContext ctx)
Apply the argument to the given prepared statement.toString()
-
Constructor Details
-
Method Details
-
apply
public void apply(int position, PreparedStatement statement, StatementContext ctx) throws SQLExceptionDescription copied from interface:Argument
Apply the argument to the given prepared statement.- Specified by:
apply
in interfaceArgument
- 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:
SQLException
- if anything goes wrong
-
getSqlType
- Returns:
- the SQL type of the null
- See Also:
Types
-
toString
-