Package com.impossibl.postgres.api.jdbc
Enum PGType
- java.lang.Object
-
- java.lang.Enum<PGType>
-
- com.impossibl.postgres.api.jdbc.PGType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACL_ITEMBITBOOLBOXBPCHARBYTESCHARCIDCIDRCIRCLECITEXTCSTRINGDATEFLOAT4FLOAT8HSTOREINETINT2INT4INT8INTERVALJSONJSONBLINELINE_SEGMENTMACADDRMACADDR8MONEYNAMENUMERICOIDPATHPOINTPOLYGONRECORDTEXTTIDTIMETIME_WITH_TIMEZONETIMESTAMPTIMESTAMP_WITH_TIMEZONEUUIDVARBITVARCHARXIDXML
-
Field Summary
-
Fields inherited from interface com.impossibl.postgres.api.jdbc.PGAnyType
VENDOR_NAME
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>getJavaType()java.sql.JDBCTypegetMappedType()java.lang.StringgetName()VersiongetRequiredVersion()java.lang.StringgetVendor()java.lang.IntegergetVendorTypeNumber()static PGTypevalueOf(int oid)Returns the enum constant of this type with the specified name.static PGTypevalueOf(Type type)Returns the enum constant of this type with the specified name.static PGTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static PGType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BOOL
public static final PGType BOOL
-
BYTES
public static final PGType BYTES
-
INT2
public static final PGType INT2
-
INT4
public static final PGType INT4
-
INT8
public static final PGType INT8
-
FLOAT4
public static final PGType FLOAT4
-
FLOAT8
public static final PGType FLOAT8
-
MONEY
public static final PGType MONEY
-
NUMERIC
public static final PGType NUMERIC
-
CHAR
public static final PGType CHAR
-
NAME
public static final PGType NAME
-
TEXT
public static final PGType TEXT
-
BPCHAR
public static final PGType BPCHAR
-
VARCHAR
public static final PGType VARCHAR
-
CSTRING
public static final PGType CSTRING
-
JSON
public static final PGType JSON
-
JSONB
public static final PGType JSONB
-
XML
public static final PGType XML
-
DATE
public static final PGType DATE
-
TIME
public static final PGType TIME
-
TIME_WITH_TIMEZONE
public static final PGType TIME_WITH_TIMEZONE
-
TIMESTAMP
public static final PGType TIMESTAMP
-
TIMESTAMP_WITH_TIMEZONE
public static final PGType TIMESTAMP_WITH_TIMEZONE
-
INTERVAL
public static final PGType INTERVAL
-
POINT
public static final PGType POINT
-
LINE_SEGMENT
public static final PGType LINE_SEGMENT
-
PATH
public static final PGType PATH
-
BOX
public static final PGType BOX
-
POLYGON
public static final PGType POLYGON
-
LINE
public static final PGType LINE
-
CIRCLE
public static final PGType CIRCLE
-
MACADDR
public static final PGType MACADDR
-
MACADDR8
public static final PGType MACADDR8
-
CIDR
public static final PGType CIDR
-
INET
public static final PGType INET
-
BIT
public static final PGType BIT
-
VARBIT
public static final PGType VARBIT
-
RECORD
public static final PGType RECORD
-
UUID
public static final PGType UUID
-
ACL_ITEM
public static final PGType ACL_ITEM
-
OID
public static final PGType OID
-
TID
public static final PGType TID
-
XID
public static final PGType XID
-
CID
public static final PGType CID
-
HSTORE
public static final PGType HSTORE
-
CITEXT
public static final PGType CITEXT
-
-
Method Detail
-
values
public static PGType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PGType c : PGType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PGType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getRequiredVersion
public Version getRequiredVersion()
- Specified by:
getRequiredVersionin interfacePGAnyType
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfacejava.sql.SQLType
-
getVendor
public java.lang.String getVendor()
- Specified by:
getVendorin interfacejava.sql.SQLType
-
getVendorTypeNumber
public java.lang.Integer getVendorTypeNumber()
- Specified by:
getVendorTypeNumberin interfacejava.sql.SQLType
-
getJavaType
public java.lang.Class<?> getJavaType()
- Specified by:
getJavaTypein interfacePGAnyType
-
getMappedType
public java.sql.JDBCType getMappedType()
-
valueOf
public static PGType valueOf(Type type)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
type- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
valueOf
public static PGType valueOf(int oid)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
oid- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-