Class JavaTimeArgumentFactory

java.lang.Object
org.jdbi.v3.postgres.JavaTimeArgumentFactory
All Implemented Interfaces:
org.jdbi.v3.core.argument.ArgumentFactory, org.jdbi.v3.core.argument.ArgumentFactory.Preparable

public class JavaTimeArgumentFactory extends Object implements org.jdbi.v3.core.argument.ArgumentFactory.Preparable
Postgres specific argument factory for Java Time types.
Instant must be mapped to Types.TIMESTAMP, as the Postgres driver does not support them with PreparedStatement.setObject(int, Object, int).
  • 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

    Modifier and Type
    Method
    Description
    Optional<Function<Object, org.jdbi.v3.core.argument.Argument>>
    prepare(Type type, org.jdbi.v3.core.config.ConfigRegistry config)
     

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.jdbi.v3.core.argument.ArgumentFactory.Preparable

    build, prePreparedTypes
  • Constructor Details

    • JavaTimeArgumentFactory

      public JavaTimeArgumentFactory()
  • Method Details

    • prepare

      public Optional<Function<Object, org.jdbi.v3.core.argument.Argument>> prepare(Type type, org.jdbi.v3.core.config.ConfigRegistry config)
      Specified by:
      prepare in interface org.jdbi.v3.core.argument.ArgumentFactory.Preparable