|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<DataType>
org.apache.empire.data.DataType
public enum DataType
DataType is an enumeration of data types that are supported with the empire-db component.
Enum Constant Summary | |
---|---|
AUTOINC
A numeric sequence generated value |
|
BLOB
Binary data |
|
BOOL
Boolean field (emulated if not supported by DBMS as number or char) |
|
CHAR
Fixed length character value. |
|
CLOB
Long text > 2K |
|
DATE
Date only value (without time) |
|
DATETIME
Date value including time. |
|
DECIMAL
Decimal numeric value (size indicates scale and precision) |
|
FLOAT
floating point value |
|
INTEGER
Integer value (16, 32 or 64 bit) |
|
TEXT
Small text (represents varchar) |
|
UNIQUEID
Unique Identifier (non-numeric, treated like text) |
|
UNKNOWN
Unknown, used internally only for sql phrases |
Method Summary | |
---|---|
boolean |
isBoolean()
Returns true if the data type is a boolean type |
boolean |
isDate()
Returns true if the data type is a date based data type (date or datetime) |
boolean |
isNumeric()
Returns true if the data type is a numeric data type (integer, decimal, float) |
boolean |
isText()
Returns true if the data type is a text based data type (char, text or clob) |
static DataType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static DataType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final DataType UNKNOWN
public static final DataType INTEGER
public static final DataType AUTOINC
public static final DataType TEXT
public static final DataType DATE
public static final DataType DATETIME
public static final DataType CHAR
public static final DataType FLOAT
public static final DataType DECIMAL
public static final DataType BOOL
public static final DataType CLOB
public static final DataType BLOB
public static final DataType UNIQUEID
Method Detail |
---|
public static DataType[] values()
for (DataType c : DataType.values()) System.out.println(c);
public static DataType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic boolean isText()
public boolean isNumeric()
public boolean isDate()
public boolean isBoolean()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |