public enum DataTypeClass extends java.lang.Enum<DataTypeClass>
DataSet is included since the type is defined in DataType, though it is not currently used in SQLTags.
Enum Constant and Description |
---|
DataSet |
DateTime |
Float |
Integer |
String |
Modifier and Type | Method and Description |
---|---|
DataTypeClass |
getCompatibleType(DataTypeClass in)
Compares the two data type classes and returns the most compatible type
|
DataType |
getDataType()
Returns a datatype capable of handling this type class.
|
int |
getIntValue()
Returns the type code for this AlertMode
|
java.lang.Class<?> |
getJavaType()
Gets the java type that would be able to hold a value of this class.
|
static DataTypeClass |
getTypeForValue(int val)
Returns the AlertMode for the given type code.
|
boolean |
isNumeric() |
static DataTypeClass |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DataTypeClass[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataTypeClass Integer
public static final DataTypeClass Float
public static final DataTypeClass String
public static final DataTypeClass DateTime
public static final DataTypeClass DataSet
public static DataTypeClass[] values()
for (DataTypeClass c : DataTypeClass.values()) System.out.println(c);
public static DataTypeClass valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getIntValue()
public boolean isNumeric()
public static DataTypeClass getTypeForValue(int val)
public java.lang.Class<?> getJavaType()
public DataType getDataType()
public DataTypeClass getCompatibleType(DataTypeClass in)