public class PostgresTypes extends Object implements JdbiConfig<PostgresTypes>
| Constructor and Description |
|---|
PostgresTypes() |
| Modifier and Type | Method and Description |
|---|---|
PostgresTypes |
createCopy() |
PostgresTypes |
registerCustomType(Class<? extends org.postgresql.util.PGobject> clazz,
String typeName)
Register a Postgres custom type.
|
void |
setRegistry(ConfigRegistry registry) |
public void setRegistry(ConfigRegistry registry)
setRegistry in interface JdbiConfig<PostgresTypes>public PostgresTypes registerCustomType(Class<? extends org.postgresql.util.PGobject> clazz, String typeName)
clazz - the class implementing the Java representation of the custom type;
must extend PGobject.typeName - the Postgres custom type namepublic PostgresTypes createCopy()
createCopy in interface JdbiConfig<PostgresTypes>Copyright © 2019. All rights reserved.