public enum SqlType extends Enum<SqlType>
Defines a typesafe subset of Types.
| Enum Constant and Description |
|---|
BIGINT
Long and long.
|
BIT
Boolean and boolean.
|
CHAR
Character and char.
|
DATE
Date.
|
DECIMAL
BigDecimal and DMoney.
|
DOUBLE
Double and double.
|
FLOAT
Float and float.
|
INTEGER
Integer and int.
|
JAVA_OBJECT
Application specific.
|
LONGVARBINARY
Binary.
|
SMALLINT
Short and short.
|
TIME
Time.
|
TIMESTAMP
Timestamp.
|
TINYINT
Byte and byte.
|
VARCHAR
String.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getDefaultValue()
Gets the default value.
|
int |
getJdbcType()
Gets the java SQL type.
|
boolean |
isFractional()
Returns whether numeric fractional type.
|
boolean |
isNumeric()
Returns whether numeric type.
|
Object |
parse(String str)
Parses the string and converts to a java-value.
|
static SqlType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SqlType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SqlType VARCHAR
public static final SqlType DATE
public static final SqlType TIME
public static final SqlType TIMESTAMP
public static final SqlType LONGVARBINARY
public static final SqlType DECIMAL
public static final SqlType CHAR
public static final SqlType BIT
public static final SqlType TINYINT
public static final SqlType SMALLINT
public static final SqlType INTEGER
public static final SqlType BIGINT
public static final SqlType FLOAT
public static final SqlType DOUBLE
public static final SqlType JAVA_OBJECT
public static SqlType[] values()
for (SqlType c : SqlType.values()) System.out.println(c);
public static SqlType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getJdbcType()
public boolean isNumeric()
public boolean isFractional()
public Object getDefaultValue()
Tentackle - a domain driven enterprise framework