Package cdc.rdb
Enum SqlDataType
- java.lang.Object
-
- java.lang.Enum<SqlDataType>
-
- cdc.rdb.SqlDataType
-
- All Implemented Interfaces:
Serializable,Comparable<SqlDataType>
public enum SqlDataType extends Enum<SqlDataType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARRAYBIGINTBINARYBITBLOBBOOLEANCHARCLOBDATALINKDATEDECIMALDISTINCTDOUBLEFLOATINTEGERJAVA_OBJECTLONGNVARCHARLONGVARBINARYLONGVARCHARNCHARNCLOBNULLNUMERICNVARCHAROTHERREALREFREF_CURSORROWIDSMALLINTSQLXMLSTRUCTTIMETIME_WITH_TIMEZONETIMESTAMPTIMESTAMP_WITH_TIMEZONETINYINTVARBINARYVARCHAR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SqlDataTypedecode(int code)intgetCode()static SqlDataTypevalueOf(String name)Returns 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 Detail
-
BIT
public static final SqlDataType BIT
-
TINYINT
public static final SqlDataType TINYINT
-
SMALLINT
public static final SqlDataType SMALLINT
-
INTEGER
public static final SqlDataType INTEGER
-
BIGINT
public static final SqlDataType BIGINT
-
FLOAT
public static final SqlDataType FLOAT
-
REAL
public static final SqlDataType REAL
-
DOUBLE
public static final SqlDataType DOUBLE
-
NUMERIC
public static final SqlDataType NUMERIC
-
DECIMAL
public static final SqlDataType DECIMAL
-
CHAR
public static final SqlDataType CHAR
-
VARCHAR
public static final SqlDataType VARCHAR
-
LONGVARCHAR
public static final SqlDataType LONGVARCHAR
-
DATE
public static final SqlDataType DATE
-
TIME
public static final SqlDataType TIME
-
TIMESTAMP
public static final SqlDataType TIMESTAMP
-
BINARY
public static final SqlDataType BINARY
-
VARBINARY
public static final SqlDataType VARBINARY
-
LONGVARBINARY
public static final SqlDataType LONGVARBINARY
-
NULL
public static final SqlDataType NULL
-
OTHER
public static final SqlDataType OTHER
-
JAVA_OBJECT
public static final SqlDataType JAVA_OBJECT
-
DISTINCT
public static final SqlDataType DISTINCT
-
STRUCT
public static final SqlDataType STRUCT
-
ARRAY
public static final SqlDataType ARRAY
-
BLOB
public static final SqlDataType BLOB
-
CLOB
public static final SqlDataType CLOB
-
REF
public static final SqlDataType REF
-
DATALINK
public static final SqlDataType DATALINK
-
BOOLEAN
public static final SqlDataType BOOLEAN
-
ROWID
public static final SqlDataType ROWID
-
NCHAR
public static final SqlDataType NCHAR
-
NVARCHAR
public static final SqlDataType NVARCHAR
-
LONGNVARCHAR
public static final SqlDataType LONGNVARCHAR
-
NCLOB
public static final SqlDataType NCLOB
-
SQLXML
public static final SqlDataType SQLXML
-
REF_CURSOR
public static final SqlDataType REF_CURSOR
-
TIME_WITH_TIMEZONE
public static final SqlDataType TIME_WITH_TIMEZONE
-
TIMESTAMP_WITH_TIMEZONE
public static final SqlDataType TIMESTAMP_WITH_TIMEZONE
-
-
Method Detail
-
values
public static SqlDataType[] 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 (SqlDataType c : SqlDataType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SqlDataType valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getCode
public int getCode()
-
decode
public static SqlDataType decode(int code)
-
-