Class PostgresTypes

java.lang.Object
org.jdbi.v3.postgres.PostgresTypes
All Implemented Interfaces:
org.jdbi.v3.core.config.JdbiConfig<PostgresTypes>

public class PostgresTypes extends Object implements org.jdbi.v3.core.config.JdbiConfig<PostgresTypes>
Handler for PostgreSQL custom types.
  • Constructor Details

    • PostgresTypes

      public PostgresTypes()
  • Method Details

    • setRegistry

      public void setRegistry(org.jdbi.v3.core.config.ConfigRegistry registry)
      Specified by:
      setRegistry in interface org.jdbi.v3.core.config.JdbiConfig<PostgresTypes>
    • registerCustomType

      public PostgresTypes registerCustomType(Class<? extends org.postgresql.util.PGobject> clazz, String typeName)
      Register a Postgres custom type.
      Parameters:
      clazz - the class implementing the Java representation of the custom type; must extend PGobject.
      typeName - the Postgres custom type name
    • getLobApi

      public PgLobApi getLobApi()
      Provide access to Large Object streaming via Postgres specific API.
      Returns:
      the postgres large object api
    • createCopy

      public PostgresTypes createCopy()
      Specified by:
      createCopy in interface org.jdbi.v3.core.config.JdbiConfig<PostgresTypes>