|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.persistence.query.jdo.JDOPrimitive
public class JDOPrimitive
INTERNAL: JDOQL value: primitive. Class used to reference primitive values. These can be boolean, byte, short, integer, long, float or double. [FIXME: In addition the classes BigInteger and BigDouble are supported.] Syntax: the same as their Java syntax representations.
Field Summary | |
---|---|
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 java.lang.Object |
value
|
protected int |
value_type
|
Fields inherited from interface net.ontopia.persistence.query.jdo.JDOValueIF |
---|
COLLECTION, FIELD, FUNCTION, NATIVE_VALUE, NULL, OBJECT, PARAMETER, PRIMITIVE, STRING, VARIABLE |
Constructor Summary | |
---|---|
JDOPrimitive(int value_type,
java.lang.Object value)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.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. |
java.lang.Object |
getValue()
INTERNAL: Returns the primitive value. |
java.lang.Class |
getValueType()
|
int |
hashCode()
|
boolean |
isNumeric()
INTERNAL: Returns true if the primitive is of numeric type. |
java.lang.String |
toString()
|
void |
visit(JDOVisitorIF visitor)
INTERNAL: Allows the value to be visited. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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 java.lang.Object value
Constructor Detail |
---|
public JDOPrimitive(int value_type, java.lang.Object value)
Method Detail |
---|
public int getType()
JDOValueIF
JDOValueIF
interface.
getType
in interface JDOValueIF
public java.lang.Class getValueType()
public int getPrimitiveType()
JDOPrimitive
interface.
public java.lang.Object getValue()
public boolean isNumeric()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public void visit(JDOVisitorIF visitor)
JDOValueIF
visit
in interface JDOValueIF
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |