Package com.wavemaker.runtime.data.model
Enum JavaType
- java.lang.Object
-
- java.lang.Enum<JavaType>
-
- com.wavemaker.runtime.data.model.JavaType
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.List<JavaType>decimalTypes()java.lang.ObjectfromDbValue(java.lang.Object fromValue)java.lang.ObjectfromString(java.lang.String fromValue)static JavaTypefromValue(java.lang.String value)java.lang.StringgetClassName()java.lang.Class<?>getClassType()java.lang.StringgetPrimitiveClassName()static java.util.List<JavaType>integerTypes()booleanisDecimalType()booleanisIntegerType()booleanisNumericType()static java.util.List<JavaType>numericTypes()java.lang.ObjecttoDbValue(java.lang.Object fromValue)java.lang.StringtoValue()static JavaTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static JavaType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BYTE
public static final JavaType BYTE
-
SHORT
public static final JavaType SHORT
-
INTEGER
public static final JavaType INTEGER
-
LONG
public static final JavaType LONG
-
BIG_INTEGER
public static final JavaType BIG_INTEGER
-
FLOAT
public static final JavaType FLOAT
-
DOUBLE
public static final JavaType DOUBLE
-
BIG_DECIMAL
public static final JavaType BIG_DECIMAL
-
BOOLEAN
public static final JavaType BOOLEAN
-
YES_OR_NO
public static final JavaType YES_OR_NO
-
TRUE_OR_FALSE
public static final JavaType TRUE_OR_FALSE
-
CHARACTER
public static final JavaType CHARACTER
-
STRING
public static final JavaType STRING
-
TEXT
public static final JavaType TEXT
-
CLOB
public static final JavaType CLOB
-
BLOB
public static final JavaType BLOB
-
DATE
public static final JavaType DATE
-
TIME
public static final JavaType TIME
-
DATETIME
public static final JavaType DATETIME
-
TIMESTAMP
public static final JavaType TIMESTAMP
-
CURSOR
public static final JavaType CURSOR
-
-
Method Detail
-
values
public static JavaType[] 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 (JavaType c : JavaType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JavaType valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getClassName
public java.lang.String getClassName()
-
getClassType
public java.lang.Class<?> getClassType()
-
getPrimitiveClassName
public java.lang.String getPrimitiveClassName()
-
integerTypes
public static java.util.List<JavaType> integerTypes()
-
decimalTypes
public static java.util.List<JavaType> decimalTypes()
-
numericTypes
public static java.util.List<JavaType> numericTypes()
-
isNumericType
public boolean isNumericType()
-
isDecimalType
public boolean isDecimalType()
-
isIntegerType
public boolean isIntegerType()
-
fromDbValue
public java.lang.Object fromDbValue(java.lang.Object fromValue)
-
fromString
public java.lang.Object fromString(java.lang.String fromValue)
-
toDbValue
public java.lang.Object toDbValue(java.lang.Object fromValue)
-
fromValue
public static JavaType fromValue(java.lang.String value)
-
toValue
public java.lang.String toValue()
-
-