Enum DataType
- All Implemented Interfaces:
Serializable,Comparable<DataType>,java.lang.constant.Constable
public enum DataType extends Enum<DataType>
The Enum DataType.
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description ALPHANUMThe alphanum.ARRAYThe array.BIGINTThe bigint.BINARYThe binary.BINARY_LARGE_OBJECTThe binary large object.BINARY_VARYINGThe binary varying.BITThe bit.BLOBThe blob.BOOLEANThe boolean.BYTEThe byte.CHARThe char.CHARACTERThe character.CHARACTER_LARGE_OBJECTThe character large object.CHARACTER_VARYINGThe character varying.CLOBThe clob.DATEThe date.DECIMALThe decimal.DOUBLEThe double.DOUBLE_PRECISIONThe double precision.FLOATThe float.INTEGERThe integer.NCHARThe nchar.NCLOBThe nclob.NUMERICThe numeric.NVARCHARThe nvarchar.REALThe real.SECONDDATEThe seconddate.SHORTTEXTThe shorttext.SMALLDECIMALThe smalldecimal.SMALLINTThe smallint.ST_GEOMETRYThe st geometry.ST_POINTThe st point.TIMEThe time.TIMESTAMPThe timestamp.TINYINTThe tinyint.VARBINARYThe varbinary.VARCHARThe varchar. -
Method Summary
Modifier and Type Method Description StringgetName()Gets the name.StringtoString()To string.static DataTypevalueOf(String name)Returns the enum constant of this type with the specified name.static DataTypevalueOfByName(String name)Value of by name.static DataType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
VARCHAR
The varchar. -
CHAR
The char. -
DATE
The date. -
SECONDDATE
The seconddate. -
TIME
The time. -
TIMESTAMP
The timestamp. -
INTEGER
The integer. -
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 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
-
getName
Gets the name.- Returns:
- the name
-
toString
To string. -
valueOfByName
Value of by name.- Parameters:
name- the name- Returns:
- the data type
-