Class JDOPrimitive
java.lang.Object
net.ontopia.persistence.query.jdo.JDOPrimitive
- All Implemented Interfaces:
JDOValueIF
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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intprotected Objectprotected intFields inherited from interface net.ontopia.persistence.query.jdo.JDOValueIF
COLLECTION, FIELD, FUNCTION, NATIVE_VALUE, NULL, OBJECT, PARAMETER, PRIMITIVE, STRING, VARIABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintINTERNAL: Returns the type of primitive as indicated by one of the constants in theJDOPrimitiveinterface.intgetType()INTERNAL: Returns the type of JDO value indicated by one of the constants in theJDOValueIFinterface.getValue()INTERNAL: Returns the primitive value.inthashCode()booleanINTERNAL: Returns true if the primitive is of numeric type.toString()voidvisit(JDOVisitorIF visitor) INTERNAL: Allows the value to be visited.
-
Field Details
-
BOOLEAN
public static final int BOOLEAN- See Also:
-
BYTE
public static final int BYTE- See Also:
-
SHORT
public static final int SHORT- See Also:
-
INTEGER
public static final int INTEGER- See Also:
-
LONG
public static final int LONG- See Also:
-
FLOAT
public static final int FLOAT- See Also:
-
DOUBLE
public static final int DOUBLE- See Also:
-
BIGDECIMAL
public static final int BIGDECIMAL- See Also:
-
BIGINTEGER
public static final int BIGINTEGER- See Also:
-
value_type
protected int value_type -
value
-
-
Constructor Details
-
JDOPrimitive
-
-
Method Details
-
getType
public int getType()Description copied from interface:JDOValueIFINTERNAL: Returns the type of JDO value indicated by one of the constants in theJDOValueIFinterface.- Specified by:
getTypein interfaceJDOValueIF
-
getValueType
-
getPrimitiveType
public int getPrimitiveType()INTERNAL: Returns the type of primitive as indicated by one of the constants in theJDOPrimitiveinterface. -
getValue
INTERNAL: Returns the primitive value. An object wrapper is represented using its primitive wrapper class. -
isNumeric
public boolean isNumeric()INTERNAL: Returns true if the primitive is of numeric type. -
hashCode
public int hashCode() -
equals
-
toString
-
visit
Description copied from interface:JDOValueIFINTERNAL: Allows the value to be visited. This method is used for retrieval of nested data in expressions.- Specified by:
visitin interfaceJDOValueIF
-