Package org.jdbi.v3.postgres
Class TypedEnumArgumentFactory
java.lang.Object
org.jdbi.v3.core.argument.AbstractArgumentFactory<Enum>
org.jdbi.v3.postgres.TypedEnumArgumentFactory
- All Implemented Interfaces:
ArgumentFactory
,ArgumentFactory.Preparable
Default
jdbi
behavior is to bind Enum
subclasses as
a string, which Postgres won't implicitly convert to an enum type.
If instead you bind it as java.sql.Types.OTHER
, Postgres will
autodetect the enum correctly.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jdbi.v3.core.argument.ArgumentFactory
ArgumentFactory.Preparable
-
Constructor Summary
-
Method Summary
Methods inherited from class org.jdbi.v3.core.argument.AbstractArgumentFactory
build, prepare, prePreparedTypes
-
Constructor Details
-
TypedEnumArgumentFactory
public TypedEnumArgumentFactory()
-