public class TypeRegistry extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TypeRegistry.Builder
Builder for instances of
TypeRegistry. |
| Modifier and Type | Field and Description |
|---|---|
private int |
citextArrayOid |
private int |
citextOid |
private int |
geographyArrayOid |
private int |
geographyOid |
private int |
geometryArrayOid |
private int |
geometryOid |
private int |
hstoreArrayOid |
private int |
hstoreOid |
private static org.slf4j.Logger |
LOGGER |
private static Map<String,String> |
LONG_TYPE_NAMES |
private Map<String,PostgresType> |
nameToType |
static int |
NO_TYPE_MODIFIER |
private Map<Integer,PostgresType> |
oidToType |
static String |
TYPE_NAME_CITEXT |
static String |
TYPE_NAME_CITEXT_ARRAY |
static String |
TYPE_NAME_GEOGRAPHY |
static String |
TYPE_NAME_GEOGRAPHY_ARRAY |
static String |
TYPE_NAME_GEOMETRY |
static String |
TYPE_NAME_GEOMETRY_ARRAY |
static String |
TYPE_NAME_HSTORE |
static String |
TYPE_NAME_HSTORE_ARRAY |
static int |
UNKNOWN_LENGTH |
| Modifier | Constructor and Description |
|---|---|
private |
TypeRegistry(Map<String,PostgresType> nameToType,
Map<Integer,PostgresType> oidToType,
int geometryOid,
int geographyOid,
int citextOid,
int geometryArrayOid,
int geographyArrayOid,
int citextArrayOid,
int hstoreOid,
int hstoreArrayOid) |
| Modifier and Type | Method and Description |
|---|---|
int |
citextArrayOid() |
int |
citextOid() |
static TypeRegistry.Builder |
create(org.postgresql.core.TypeInfo typeInfo) |
int |
geographyArrayOid() |
int |
geographyOid() |
int |
geometryArrayOid() |
int |
geometryOid() |
PostgresType |
get(int oid) |
PostgresType |
get(String name) |
private static Map<String,String> |
getLongTypeNames() |
int |
hstoreArrayOid() |
int |
hstoreOid() |
static String |
normalizeTypeName(String typeName)
Converts a type name in long (readable) format like
boolean to s standard
data type name like bool. |
private static final org.slf4j.Logger LOGGER
public static final String TYPE_NAME_GEOGRAPHY
public static final String TYPE_NAME_GEOMETRY
public static final String TYPE_NAME_CITEXT
public static final String TYPE_NAME_HSTORE
public static final String TYPE_NAME_HSTORE_ARRAY
public static final String TYPE_NAME_GEOGRAPHY_ARRAY
public static final String TYPE_NAME_GEOMETRY_ARRAY
public static final String TYPE_NAME_CITEXT_ARRAY
public static final int NO_TYPE_MODIFIER
public static final int UNKNOWN_LENGTH
private final Map<String,PostgresType> nameToType
private final Map<Integer,PostgresType> oidToType
private final int geometryOid
private final int geographyOid
private final int citextOid
private final int hstoreOid
private final int hstoreArrayOid
private final int geometryArrayOid
private final int geographyArrayOid
private final int citextArrayOid
private TypeRegistry(Map<String,PostgresType> nameToType, Map<Integer,PostgresType> oidToType, int geometryOid, int geographyOid, int citextOid, int geometryArrayOid, int geographyArrayOid, int citextArrayOid, int hstoreOid, int hstoreArrayOid)
public static TypeRegistry.Builder create(org.postgresql.core.TypeInfo typeInfo)
public PostgresType get(int oid)
oid - - PostgreSQL OIDpublic PostgresType get(String name)
name - - PostgreSQL type namepublic int geometryOid()
GEOMETRY type of this PostgreSQL instancepublic int geographyOid()
GEOGRAPHY type of this PostgreSQL instancepublic int citextOid()
CITEXT type of this PostgreSQL instancepublic int hstoreOid()
HSTORE type of this PostgreSQL instancepublic int hstoreArrayOid()
HSTORE type of this PostgreSQL instancepublic int geometryArrayOid()
GEOMETRY type of this PostgreSQL instancepublic int geographyArrayOid()
GEOGRAPHY type of this PostgreSQL instancepublic int citextArrayOid()
CITEXT type of this PostgreSQL instanceCopyright © 2019 JBoss by Red Hat. All rights reserved.