public class JDOPrimitive extends Object implements JDOValueIF
Modifier and Type | Field and Description |
---|---|
static int |
BIGDECIMAL |
static int |
BIGINTEGER |
static int |
BOOLEAN |
static int |
BYTE |
static int |
DOUBLE |
static int |
FLOAT |
static int |
INTEGER |
static int |
LONG |
static int |
SHORT |
protected Object |
value |
protected int |
value_type |
COLLECTION, FIELD, FUNCTION, NATIVE_VALUE, NULL, OBJECT, PARAMETER, PRIMITIVE, STRING, VARIABLE
Constructor and Description |
---|
JDOPrimitive(int value_type,
Object value) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getPrimitiveType()
INTERNAL: Returns the type of primitive as indicated by one of
the constants in the
JDOPrimitive interface. |
int |
getType()
INTERNAL: Returns the type of JDO value indicated by one of the
constants in the
JDOValueIF interface. |
Object |
getValue()
INTERNAL: Returns the primitive value.
|
Class |
getValueType() |
int |
hashCode() |
boolean |
isNumeric()
INTERNAL: Returns true if the primitive is of numeric type.
|
String |
toString() |
void |
visit(JDOVisitorIF visitor)
INTERNAL: Allows the value to be visited.
|
public static final int BOOLEAN
public static final int BYTE
public static final int SHORT
public static final int INTEGER
public static final int LONG
public static final int FLOAT
public static final int DOUBLE
public static final int BIGDECIMAL
public static final int BIGINTEGER
protected int value_type
protected Object value
public JDOPrimitive(int value_type, Object value)
public int getType()
JDOValueIF
JDOValueIF
interface.getType
in interface JDOValueIF
public Class getValueType()
public int getPrimitiveType()
JDOPrimitive
interface.public Object getValue()
public boolean isNumeric()
public void visit(JDOVisitorIF visitor)
JDOValueIF
visit
in interface JDOValueIF