Enum Class TableColumnType
- All Implemented Interfaces:
Serializable,Comparable<TableColumnType>,Constable
PostgreSQL column data types for
CreateTableColumn, noting which accept a length and a scale.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionReturns the type as written in SQL: the lowercase name with spaces for underscores (e.g.booleanIndicates if a length or precision may follow this type in a column definition.booleanIndicates if a scale may follow the length or precision of this type in a column definition.static TableColumnTypeReturns the enum constant of this class with the specified name.static TableColumnType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BIGINT
-
BIGSERIAL
-
BIT
-
BIT_VARYING
-
VARBIT
-
BOOLEAN
-
BOOL
-
BOX
-
BYTEA
-
CHAR
-
CHARACTER
-
CHARACTER_VARYING
-
VARCHAR
-
CIDR
-
CIRCLE
-
DATE
-
DOUBLE_PRECISION
-
FLOAT4
-
FLOAT8
-
INET
-
INT
-
INT4
-
INT2
-
INT8
-
INTEGER
-
JSON
-
JSONB
-
LINE
-
LSEG
-
MACADDR
-
MACADDR8
-
MONEY
-
NUMERIC
-
DECIMAL
-
PATH
-
PG_LSN
-
PG_SNAPSHOT
-
POINT
-
POLYGON
-
REAL
-
SMALLINT
-
SMALLSERIAL
-
SERIAL
-
SERIAL2
-
SERIAL4
-
SERIAL8
-
TEXT
-
TIME
-
TIME_WITHOUT_TIME_ZONE
-
TIME_WITH_TIME_ZONE
-
TIMETZ
-
TIMESTAMP
-
TIMESTAMP_WITHOUT_TIME_ZONE
-
TIMESTAMP_WITH_TIME_ZONE
-
TIMESTAMPTZ
-
TSQUERY
-
TSVECTOR
-
TXID_SNAPSHOT
-
UUID
-
XML
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isLengthSupported
public boolean isLengthSupported()Indicates if a length or precision may follow this type in a column definition. -
isScaleSupported
public boolean isScaleSupported()Indicates if a scale may follow the length or precision of this type in a column definition. -
getSqlFragment
Returns the type as written in SQL: the lowercase name with spaces for underscores (e.g.double precision).
-