public enum PostgresqlObjectId extends Enum<PostgresqlObjectId> implements Type, PostgresTypeIdentifier
Extension Object IDs that are provided by Postgres extensions such as PostGIS are not constants of this enumeration and must be looked up from pg_type.
Lightweight PostgresTypeIdentifier identifier returning Object.class when calling getJavaType().
Type.InferredType| Enum Constant and Description |
|---|
BIT
The bit object id.
|
BIT_ARRAY
The bit array object id.
|
BOOL
The bool object id.
|
BOOL_ARRAY
The bool array object id.
|
BOX
The box object id.
|
BOX_ARRAY
The box array object id.
|
BPCHAR
The bpchar object id.
|
BPCHAR_ARRAY
The bpchar array object id.
|
BYTEA
The bytea object id.
|
BYTEA_ARRAY
They bytea array object id.
|
CHAR
The char object id.
|
CHAR_ARRAY
The char array object id.
|
CIRCLE
The circle object id
|
CIRCLE_ARRAY
The circle array object id
|
DATE
The date object id.
|
DATE_ARRAY
The date array object id.
|
FLOAT4
The float4 object id.
|
FLOAT4_ARRAY
The float4 array object id.
|
FLOAT8
The float8 object id.
|
FLOAT8_ARRAY
The float8 array object id.
|
INET
The inet object id.
|
INET_ARRAY
The inet array object id.
|
INT2
The int2 object id.
|
INT2_ARRAY
The int2 array object id.
|
INT4
The int4 object id.
|
INT4_ARRAY
The int4 array object id.
|
INT8
The int8 object id.
|
INT8_ARRAY
The int8 array object id.
|
INTERVAL
The interval object id.
|
INTERVAL_ARRAY
The interval array object id.
|
JSON
The JSON object id.
|
JSON_ARRAY
The JSON array object id.
|
JSONB
The JSONB array object id.
|
JSONB_ARRAY
The JSONB array object id.
|
LINE
The line object id.
|
LINE_ARRAY
The line array object id.
|
LSEG
The line segment object id.
|
LSEG_ARRAY
The line segment array object id.
|
MONEY
The money object id.
|
MONEY_ARRAY
The money array object id.
|
NAME
The name object id.
|
NAME_ARRAY
The name array object id.
|
NUMERIC
The numberic object id.
|
NUMERIC_ARRAY
The numeric array object id.
|
OID
The oid object id.
|
OID_ARRAY
The oid array object id.
|
PATH
The path object id.
|
PATH_ARRAY
The path array object id.
|
POINT
The point object id.
|
POINT_ARRAY
The point array object id.
|
POLYGON
the polygon object id.
|
POLYGON_ARRAY
the polygon array object id.
|
REF_CURSOR
The ref cursor object id.
|
REF_CURSOR_ARRAY
The ref cursor array object id.
|
TEXT
The text object id.
|
TEXT_ARRAY
The text array object id.
|
TIME
The time object id.
|
TIME_ARRAY
The time array object id.
|
TIMESTAMP
The timestamp object id.
|
TIMESTAMP_ARRAY
The timestamp array object id.
|
TIMESTAMPTZ
The timestamptz object id.
|
TIMESTAMPTZ_ARRAY
The timestamptz array object id.
|
TIMETZ
The timetz object id.
|
TIMETZ_ARRAY
The timetz array object id.
|
UNKNOWN
UNKNOWN type
PostgreSQL will sometimes return this type
an example might be select 'hello' as foo
newer versions return TEXT but some older
versions will return UNKNOWN
|
UNSPECIFIED
The unspecified object id.
|
UUID
The UUID object id.
|
UUID_ARRAY
The UUID array object id.
|
VARBIT
The varbit object id.
|
VARBIT_ARRAY
The varbit array object id.
|
VARCHAR
The varchar object id.
|
VARCHAR_ARRAY
The varchar array object id.
|
VOID
The void object id.
|
XML
The XML object id.
|
XML_ARRAY
The XML Array object id.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
OID_CACHE_SIZE |
| Modifier and Type | Method and Description |
|---|---|
static PostgresqlObjectId |
from(PostgresTypeIdentifier dataType) |
Class<?> |
getJavaType() |
String |
getName() |
int |
getObjectId()
Returns the object id represented by each return value.
|
static boolean |
isValid(int objectId)
Returns if the
objectId is a known and valid objectId. |
static int |
toInt(long oid) |
static int |
toInt(Long oid) |
static long |
toLong(int oid) |
static PostgresqlObjectId |
valueOf(int objectId)
Returns the
PostgresqlObjectId matching a given object id. |
static PostgresqlObjectId |
valueOf(R2dbcType type)
Returns the
PostgresqlObjectId matching a given R2DBC type. |
static PostgresqlObjectId |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PostgresqlObjectId[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PostgresqlObjectId BIT
public static final PostgresqlObjectId BIT_ARRAY
public static final PostgresqlObjectId BOOL
public static final PostgresqlObjectId BOOL_ARRAY
public static final PostgresqlObjectId BOX
public static final PostgresqlObjectId BOX_ARRAY
public static final PostgresqlObjectId BPCHAR
public static final PostgresqlObjectId BPCHAR_ARRAY
public static final PostgresqlObjectId BYTEA
public static final PostgresqlObjectId BYTEA_ARRAY
public static final PostgresqlObjectId CHAR
public static final PostgresqlObjectId CHAR_ARRAY
public static final PostgresqlObjectId CIRCLE
public static final PostgresqlObjectId CIRCLE_ARRAY
public static final PostgresqlObjectId DATE
public static final PostgresqlObjectId DATE_ARRAY
public static final PostgresqlObjectId FLOAT4
public static final PostgresqlObjectId FLOAT4_ARRAY
public static final PostgresqlObjectId FLOAT8
public static final PostgresqlObjectId FLOAT8_ARRAY
public static final PostgresqlObjectId INET
public static final PostgresqlObjectId INET_ARRAY
public static final PostgresqlObjectId INT2
public static final PostgresqlObjectId INT2_ARRAY
public static final PostgresqlObjectId INT4
public static final PostgresqlObjectId INT4_ARRAY
public static final PostgresqlObjectId INT8
public static final PostgresqlObjectId INT8_ARRAY
public static final PostgresqlObjectId INTERVAL
public static final PostgresqlObjectId INTERVAL_ARRAY
public static final PostgresqlObjectId JSON
public static final PostgresqlObjectId JSON_ARRAY
public static final PostgresqlObjectId JSONB
public static final PostgresqlObjectId JSONB_ARRAY
public static final PostgresqlObjectId LINE
public static final PostgresqlObjectId LINE_ARRAY
public static final PostgresqlObjectId LSEG
public static final PostgresqlObjectId LSEG_ARRAY
public static final PostgresqlObjectId MONEY
public static final PostgresqlObjectId MONEY_ARRAY
public static final PostgresqlObjectId NAME
public static final PostgresqlObjectId NAME_ARRAY
public static final PostgresqlObjectId NUMERIC
public static final PostgresqlObjectId NUMERIC_ARRAY
public static final PostgresqlObjectId OID
public static final PostgresqlObjectId OID_ARRAY
public static final PostgresqlObjectId PATH
public static final PostgresqlObjectId PATH_ARRAY
public static final PostgresqlObjectId POINT
public static final PostgresqlObjectId POINT_ARRAY
public static final PostgresqlObjectId POLYGON
public static final PostgresqlObjectId POLYGON_ARRAY
public static final PostgresqlObjectId REF_CURSOR
public static final PostgresqlObjectId REF_CURSOR_ARRAY
public static final PostgresqlObjectId TEXT
public static final PostgresqlObjectId TEXT_ARRAY
public static final PostgresqlObjectId TIME
public static final PostgresqlObjectId TIME_ARRAY
public static final PostgresqlObjectId TIMESTAMP
public static final PostgresqlObjectId TIMESTAMP_ARRAY
public static final PostgresqlObjectId TIMESTAMPTZ
public static final PostgresqlObjectId TIMESTAMPTZ_ARRAY
public static final PostgresqlObjectId TIMETZ
public static final PostgresqlObjectId TIMETZ_ARRAY
public static final PostgresqlObjectId UNKNOWN
public static final PostgresqlObjectId UNSPECIFIED
public static final PostgresqlObjectId UUID
public static final PostgresqlObjectId UUID_ARRAY
public static final PostgresqlObjectId VARBIT
public static final PostgresqlObjectId VARBIT_ARRAY
public static final PostgresqlObjectId VARCHAR
public static final PostgresqlObjectId VARCHAR_ARRAY
public static final PostgresqlObjectId VOID
public static final PostgresqlObjectId XML
public static final PostgresqlObjectId XML_ARRAY
public static final int OID_CACHE_SIZE
public static PostgresqlObjectId[] values()
for (PostgresqlObjectId c : PostgresqlObjectId.values()) System.out.println(c);
public static PostgresqlObjectId valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static PostgresqlObjectId from(PostgresTypeIdentifier dataType)
public static boolean isValid(int objectId)
objectId is a known and valid objectId.objectId - the object id to matchtrue if the objectId is a valid and known (static) objectId;false otherwise.public static PostgresqlObjectId valueOf(int objectId)
PostgresqlObjectId matching a given object id.objectId - the object id to matchPostgresqlObjectId matching a given object idIllegalArgumentException - if objectId isn't a valid object idpublic static PostgresqlObjectId valueOf(R2dbcType type)
PostgresqlObjectId matching a given R2DBC type.type - the R2DBC typePostgresqlObjectIdIllegalArgumentException - if type is nullUnsupportedOperationException - if the given type is not supportedpublic Class<?> getJavaType()
getJavaType in interface Typepublic int getObjectId()
getObjectId in interface PostgresTypeIdentifierpublic static int toInt(long oid)
public static long toLong(int oid)
Copyright © 2023. All rights reserved.