Package tilda.generation.postgres9
Enum PostgresType
- java.lang.Object
-
- java.lang.Enum<PostgresType>
-
- tilda.generation.postgres9.PostgresType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PostgresType>
public enum PostgresType extends java.lang.Enum<PostgresType>
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
_SQLArrayType
java.lang.String
_SQLType
ColumnType
_T
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PostgresType
get(ColumnType T)
static PostgresType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PostgresType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STRING
public static final PostgresType STRING
-
JSON
public static final PostgresType JSON
-
VECTOR
public static final PostgresType VECTOR
-
CHAR
public static final PostgresType CHAR
-
SHORT
public static final PostgresType SHORT
-
INTEGER
public static final PostgresType INTEGER
-
LONG
public static final PostgresType LONG
-
FLOAT
public static final PostgresType FLOAT
-
DOUBLE
public static final PostgresType DOUBLE
-
NUMERIC
public static final PostgresType NUMERIC
-
BOOLEAN
public static final PostgresType BOOLEAN
-
DATE
public static final PostgresType DATE
-
DATETIME
public static final PostgresType DATETIME
-
DATETIME_PLAIN
public static final PostgresType DATETIME_PLAIN
-
BINARY
public static final PostgresType BINARY
-
BITFIELD
public static final PostgresType BITFIELD
-
UUID
public static final PostgresType UUID
-
-
Field Detail
-
_SQLType
public java.lang.String _SQLType
-
_SQLArrayType
public java.lang.String _SQLArrayType
-
_T
public ColumnType _T
-
-
Method Detail
-
values
public static PostgresType[] 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 (PostgresType c : PostgresType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PostgresType 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
-
get
public static PostgresType get(ColumnType T)
-
-