com.github.drinkjava2.jdialects
Enum Type
java.lang.Object
java.lang.Enum<Type>
com.github.drinkjava2.jdialects.Type
- All Implemented Interfaces:
- Serializable, Comparable<Type>
public enum Type
- extends Enum<Type>
SQL Type definitions
- Since:
- 1.0.0
- Author:
- Yong Zhu
|
Method Summary |
static Type |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
BIGINT
public static final Type BIGINT
BINARY
public static final Type BINARY
BIT
public static final Type BIT
BLOB
public static final Type BLOB
BOOLEAN
public static final Type BOOLEAN
CHAR
public static final Type CHAR
CLOB
public static final Type CLOB
DATE
public static final Type DATE
DECIMAL
public static final Type DECIMAL
DOUBLE
public static final Type DOUBLE
FLOAT
public static final Type FLOAT
INTEGER
public static final Type INTEGER
JAVA_OBJECT
public static final Type JAVA_OBJECT
LONGNVARCHAR
public static final Type LONGNVARCHAR
LONGVARBINARY
public static final Type LONGVARBINARY
LONGVARCHAR
public static final Type LONGVARCHAR
NCHAR
public static final Type NCHAR
NCLOB
public static final Type NCLOB
NUMERIC
public static final Type NUMERIC
NVARCHAR
public static final Type NVARCHAR
OTHER
public static final Type OTHER
REAL
public static final Type REAL
SMALLINT
public static final Type SMALLINT
TIME
public static final Type TIME
TIMESTAMP
public static final Type TIMESTAMP
TINYINT
public static final Type TINYINT
VARBINARY
public static final Type VARBINARY
VARCHAR
public static final Type VARCHAR
values
public static Type[] 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 (Type c : Type.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Type 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 name
NullPointerException - if the argument is null
Copyright © 2018. All rights reserved.