public final class TypeID
extends java.lang.Object
implements java.io.Serializable
LONG
or STRING
.Modifier and Type | Field and Description |
---|---|
static TypeID |
BINARY
Specifies a binary data type.
|
static int |
BINARY_AS_INT
An
int value associated with the BINARY instance of this class. |
static TypeID |
BOOLEAN
Specifies a Boolean data type.
|
static int |
BOOLEAN_AS_INT
An
int value associated with the BOOLEAN instance of this class. |
static TypeID |
DATE
Specifies a DateTime data type.
|
static int |
DATE_AS_INT
An
int value associated with the DATE instance of this class. |
static TypeID |
DOUBLE
Specifies a double (Float64) data type.
|
static int |
DOUBLE_AS_INT
An
int value associated with the DOUBLE instance of this class. |
static TypeID |
GUID
Specifies a GUID (ID) data type.
|
static int |
GUID_AS_INT
An
int value associated with the GUID instance of this class. |
static TypeID |
LONG
Specifies a integer data type.
|
static int |
LONG_AS_INT
An
int value associated with the LONG instance of this class. |
static TypeID |
OBJECT
Specifies an object data type.
|
static int |
OBJECT_AS_INT
An
int value associated with the OBJECT instance of this class. |
static TypeID |
STRING
Specifies a string data type.
|
static int |
STRING_AS_INT
An
int value associated with the STRING instance of this class. |
Modifier and Type | Method and Description |
---|---|
static TypeID |
getInstanceFromInt(int value)
Returns an instance of this class using its associated integer value.
|
int |
getValue()
Returns the internal integer value associated with a specific instance of this class.
|
java.lang.String |
toString()
Returns a
String representation of this enumeration instance. |
public static final int DOUBLE_AS_INT
int
value associated with the DOUBLE instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.public static final TypeID DOUBLE
public static final int GUID_AS_INT
int
value associated with the GUID instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.public static final TypeID GUID
public static final int BOOLEAN_AS_INT
int
value associated with the BOOLEAN instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.public static final TypeID BOOLEAN
true
or false
.public static final int BINARY_AS_INT
int
value associated with the BINARY instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.public static final TypeID BINARY
public static final int OBJECT_AS_INT
int
value associated with the OBJECT instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.public static final TypeID OBJECT
public static final int DATE_AS_INT
int
value associated with the DATE instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.public static final TypeID DATE
public static final int LONG_AS_INT
int
value associated with the LONG instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.public static final TypeID LONG
public static final int STRING_AS_INT
int
value associated with the STRING instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.public static final TypeID STRING
public int getValue()
getInstanceFromInt(int)
public java.lang.String toString()
String
representation of this enumeration instance.toString
in class java.lang.Object
public static TypeID getInstanceFromInt(int value)
value
- The integer value. (See the *_AS_INT fields.)EngineRuntimeException
- If an enumeration instance with the given
ordinal value does not exist.getValue()
© Copyright IBM Corporation 2006, 2015. All rights reserved.