Enum Class ColumnTypes
- All Implemented Interfaces:
Serializable
,Comparable<ColumnTypes>
,Constable
Represents the various column types supported in a database schema.
Each column type is associated with a string representation.
This enum includes common types like TEXT
, INT
, and UUID
,
as well as specialized types such as VECTOR
and UNSUPPORTED
.
Example usage:
ColumnTypes columnType = ColumnTypes.TEXT;
String columnValue = columnType.getValue();
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionASCII string type.64-bit signed integer.Binary large object (BLOB) type.Boolean type, representing true or false values.Date type, storing only the date part without a time zone.Arbitrary precision decimal number.Double-precision floating-point number.Time duration type.Single-precision floating-point number.IP address type.32-bit signed integer.List collection type.Map collection type, storing key-value pairs.Set collection type, storing unique elements.16-bit signed integer.Text or string type.Time type, storing only the time part.Timestamp type, representing a specific date and time.8-bit signed integer.Represents an undefined column type.Represents unsupported column types.Universally Unique Identifier (UUID) type.Arbitrary precision integer type.Vector data type, typically used for machine learning or specialized computations. -
Method Summary
Modifier and TypeMethodDescriptionstatic ColumnTypes
Returns the enum constant of this class with the specified name.static ColumnTypes[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ASCII
ASCII string type. -
BIGINT
64-bit signed integer. -
BLOB
Binary large object (BLOB) type. -
BOOLEAN
Boolean type, representing true or false values. -
DATE
Date type, storing only the date part without a time zone. -
DECIMAL
Arbitrary precision decimal number. -
DOUBLE
Double-precision floating-point number. -
DURATION
Time duration type. -
FLOAT
Single-precision floating-point number. -
INET
IP address type. -
INT
32-bit signed integer. -
LIST
List collection type. -
MAP
Map collection type, storing key-value pairs. -
SET
Set collection type, storing unique elements. -
SMALLINT
16-bit signed integer. -
TEXT
Text or string type. -
TIME
Time type, storing only the time part. -
TIMESTAMP
Timestamp type, representing a specific date and time. -
TINYINT
8-bit signed integer. -
VARINT
Arbitrary precision integer type. -
UUID
Universally Unique Identifier (UUID) type. -
UNSUPPORTED
Represents unsupported column types. -
UNDEFINED
Represents an undefined column type. -
VECTOR
Vector data type, typically used for machine learning or specialized computations.
-
-
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
-