Enum Class DataType
- All Implemented Interfaces:
Serializable,Comparable<DataType>,Constable
The Enum DataType.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe alphanum.The array.The bigint.The binary.The binary large object.The binary varying.The bit.The blob.The boolean.The byte.The char.The character.The character large object.The character varying.The clob.The date.The datetime.The decimal.The double.The double precision.The float.The int.The integer.The nchar.The nclob.The numeric.The nvarchar.The real.The seconddate.The shorttext.The smalldecimal.The smallint.The st geometry.The st point.The text.The time.The timestamp.The tinyint.The varbinary.The varchar. -
Method Summary
Modifier and TypeMethodDescriptiongetName()Gets the name.booleanChecks if is of type.toString()To string.static DataTypeReturns the enum constant of this class with the specified name.static final DataTypevalueOfByName(String name) Value of by name.static DataType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
VARCHAR
The varchar. -
TEXT
The text. -
CHAR
The char. -
DATE
The date. -
SECONDDATE
The seconddate. -
TIME
The time. -
DATETIME
The datetime. -
TIMESTAMP
The timestamp. -
INTEGER
The integer. -
INT
The int. -
TINYINT
The tinyint. -
BIGINT
The bigint. -
SMALLINT
The smallint. -
REAL
The real. -
DOUBLE
The double. -
DOUBLE_PRECISION
The double precision. -
BOOLEAN
The boolean. -
BLOB
The blob. -
DECIMAL
The decimal. -
BIT
The bit. -
NVARCHAR
The nvarchar. -
FLOAT
The float. -
BYTE
The byte. -
NCLOB
The nclob. -
ARRAY
The array. -
VARBINARY
The varbinary. -
BINARY_VARYING
The binary varying. -
SHORTTEXT
The shorttext. -
ALPHANUM
The alphanum. -
CLOB
The clob. -
SMALLDECIMAL
The smalldecimal. -
BINARY
The binary. -
ST_POINT
The st point. -
ST_GEOMETRY
The st geometry. -
CHARACTER_VARYING
The character varying. -
BINARY_LARGE_OBJECT
The binary large object. -
CHARACTER_LARGE_OBJECT
The character large object. -
CHARACTER
The character. -
NCHAR
The nchar. -
NUMERIC
The numeric.
-
-
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
-
getName
Gets the name.- Returns:
- the name
-
toString
To string. -
valueOfByName
Value of by name.- Parameters:
name- the name- Returns:
- the data type
-
isOfType
Checks if is of type.- Parameters:
dataType- the data type- Returns:
- true, if is of type
-