public class PostgresType extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PostgresType.Builder |
| Modifier and Type | Field and Description |
|---|---|
private PostgresType |
elementType |
private List<String> |
enumValues |
private int |
jdbcId |
private int |
modifiers |
private String |
name |
private int |
oid |
private PostgresType |
parentType |
private org.postgresql.core.TypeInfo |
typeInfo |
static PostgresType |
UNKNOWN |
| Modifier | Constructor and Description |
|---|---|
private |
PostgresType(String name,
int oid,
int jdbcId,
int modifiers,
org.postgresql.core.TypeInfo typeInfo,
List<String> enumValues,
PostgresType parentType,
PostgresType elementType) |
private |
PostgresType(String name,
int oid,
int jdbcId,
org.postgresql.core.TypeInfo typeInfo,
List<String> enumValues,
PostgresType parentType,
PostgresType elementType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getDefaultLength() |
int |
getDefaultScale() |
PostgresType |
getElementType() |
List<String> |
getEnumValues() |
int |
getJdbcId() |
String |
getName() |
int |
getOid() |
PostgresType |
getParentType() |
PostgresType |
getRootType() |
org.postgresql.core.TypeInfo |
getTypeInfo()
Get the underlying postgres type information object
|
int |
hashCode() |
boolean |
isArrayType() |
boolean |
isEnumType() |
boolean |
isRootType()
The type system allows for the creation of user defined types (UDTs) which can be based
on any existing type.
|
int |
length(int modifier) |
int |
scale(int modifier) |
String |
toString() |
public static final PostgresType UNKNOWN
private final String name
private final int oid
private final int jdbcId
private final PostgresType parentType
private final PostgresType elementType
private final org.postgresql.core.TypeInfo typeInfo
private final int modifiers
private PostgresType(String name, int oid, int jdbcId, org.postgresql.core.TypeInfo typeInfo, List<String> enumValues, PostgresType parentType, PostgresType elementType)
private PostgresType(String name, int oid, int jdbcId, int modifiers, org.postgresql.core.TypeInfo typeInfo, List<String> enumValues, PostgresType parentType, PostgresType elementType)
public boolean isArrayType()
public boolean isRootType()
public boolean isEnumType()
public String getName()
public int getOid()
public int getJdbcId()
public PostgresType getElementType()
public PostgresType getParentType()
public PostgresType getRootType()
public int getDefaultLength()
public int getDefaultScale()
public int length(int modifier)
modifier - - type modifier coming from decoderpublic org.postgresql.core.TypeInfo getTypeInfo()
public int scale(int modifier)
modifier - - type modifier coming from decoderCopyright © 2019 JBoss by Red Hat. All rights reserved.