Class TypedEnumArgumentFactory

java.lang.Object
org.jdbi.v3.core.argument.AbstractArgumentFactory<Enum>
org.jdbi.v3.postgres.TypedEnumArgumentFactory
All Implemented Interfaces:
org.jdbi.v3.core.argument.ArgumentFactory, org.jdbi.v3.core.argument.ArgumentFactory.Preparable

public class TypedEnumArgumentFactory extends org.jdbi.v3.core.argument.AbstractArgumentFactory<Enum>
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

    org.jdbi.v3.core.argument.ArgumentFactory.Preparable
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class org.jdbi.v3.core.argument.AbstractArgumentFactory

    build, prepare, prePreparedTypes

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TypedEnumArgumentFactory

      public TypedEnumArgumentFactory()