Package org.evomaster.client.java.sql
Enum SqlDataType
- All Implemented Interfaces:
Serializable,Comparable<SqlDataType>,java.lang.constant.Constable
Enumeration representing various SQL data types.
This class provides utilities to handle SQL data types, including conversions
and checks for grouping types (e.g., string types, numeric types, date/time types).
-
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 TypeMethodDescriptionstatic SqlDataTypefromString(String input) static booleanisBooleanType(SqlDataType dataType) static booleanisByteType(SqlDataType dataType) static booleanisDateTimeType(SqlDataType dataType) static booleanisDoubleType(SqlDataType dataType) static booleanisIntegerType(SqlDataType dataType) static booleanisLongType(SqlDataType dataType) static booleanisShortType(SqlDataType dataType) static booleanisStringType(SqlDataType dataType) static SqlDataTypeReturns the enum constant of this type with the specified name.static SqlDataType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BOOL
-
BOOLEAN
-
INT
-
INTEGER
-
INT2
-
INT4
-
SMALLINT
-
TINYINT
-
INT8
-
BIGINT
-
BIGSERIAL
-
DOUBLE
-
DOUBLE_PRECISION
-
FLOAT
-
REAL
-
FLOAT4
-
FLOAT8
-
DEC
-
DECIMAL
-
TIMESTAMP
-
TIMESTAMPZ
-
TIMETZ
-
DATE
-
DATETIME
-
TIME
-
CHAR
-
CHARACTER
-
CHARACTER_LARGE_OBJECT
-
TINYTEXT
-
TEXT
-
LONGTEXT
-
VARCHAR
-
CLOB
-
CHARACTER_VARYING
-
VARCHAR_IGNORECASE
-
MEDIUMTEXT
-
LONGBLOB
-
MEDIUMBLOB
-
TINYBLOB
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
fromString
-
isStringType
-
isDateTimeType
-
isDoubleType
-
isLongType
-
isByteType
-
isShortType
-
isIntegerType
-
isBooleanType
-