Class JDOPrimitive

java.lang.Object
net.ontopia.persistence.query.jdo.JDOPrimitive
All Implemented Interfaces:
JDOValueIF

public class JDOPrimitive extends Object implements 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 Details

  • Constructor Details

    • JDOPrimitive

      public JDOPrimitive(int value_type, Object value)
  • Method Details

    • getType

      public int getType()
      Description copied from interface: JDOValueIF
      INTERNAL: Returns the type of JDO value indicated by one of the constants in the JDOValueIF interface.
      Specified by:
      getType in interface JDOValueIF
    • getValueType

      public Class getValueType()
    • getPrimitiveType

      public int getPrimitiveType()
      INTERNAL: Returns the type of primitive as indicated by one of the constants in the JDOPrimitive interface.
    • getValue

      public Object 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()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • visit

      public void visit(JDOVisitorIF visitor)
      Description copied from interface: JDOValueIF
      INTERNAL: Allows the value to be visited. This method is used for retrieval of nested data in expressions.
      Specified by:
      visit in interface JDOValueIF