Package org.jdbi.v3.postgres.internal
Class BitStringEnumSetArgument<E extends java.lang.Enum<E>>
- java.lang.Object
-
- org.jdbi.v3.postgres.internal.BitStringEnumSetArgument<E>
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.EnumSet<E>elementsprivate E[]enumConstants
-
Constructor Summary
Constructors Constructor Description BitStringEnumSetArgument(java.lang.Class<E> enumType, java.util.EnumSet<E> elements)
-
Method Summary
All Methods Instance Methods Concrete 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
public void apply(int position, java.sql.PreparedStatement statement, StatementContext ctx) throws java.sql.SQLExceptionDescription copied from interface:ArgumentApply the argument to the given prepared statement.- Specified by:
applyin 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:
java.sql.SQLException- if anything goes wrong
-
-