Package org.jdbi.v3.postgres
Class PostgresTypes
java.lang.Object
org.jdbi.v3.postgres.PostgresTypes
- All Implemented Interfaces:
JdbiConfig<PostgresTypes>
Handler for PostgreSQL custom types.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionProvide access to Large Object streaming via Postgres specific API.registerCustomType(Class<? extends org.postgresql.util.PGobject> clazz, String typeName) Register a Postgres custom type.voidsetRegistry(ConfigRegistry registry)
-
Constructor Details
-
PostgresTypes
public PostgresTypes()
-
-
Method Details
-
setRegistry
- Specified by:
setRegistryin interfaceJdbiConfig<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 extendPGobject.typeName- the Postgres custom type name
-
getLobApi
Provide access to Large Object streaming via Postgres specific API.- Returns:
- the postgres large object api
-
createCopy
- Specified by:
createCopyin interfaceJdbiConfig<PostgresTypes>
-