net.ontopia.persistence.query.jdo
Class JDONativeValue

java.lang.Object
  extended by net.ontopia.persistence.query.jdo.JDONativeValue
All Implemented Interfaces:
JDOValueIF

public class JDONativeValue
extends java.lang.Object
implements JDOValueIF

INTERNAL: JDOQL value: native value expression. Represents the traversal from a variable to the value returned byte the native expression. Syntax: 'A.{args}'. This might be useful when you know that the root variable refers to a database table and that there are a specific column that you want to get at.


Field Summary
protected  java.lang.String[] args
           
protected  JDOVariable root
           
protected  java.lang.Class 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
JDONativeValue(JDOVariable root, java.lang.String[] args, java.lang.Class value_type)
           
JDONativeValue(JDOVariable root, java.lang.String arg, java.lang.Class value_type)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String[] getArguments()
           
 JDOVariable getRoot()
           
 int getType()
          INTERNAL: Returns the type of JDO value indicated by one of the constants in the JDOValueIF interface.
 java.lang.Class getValueType()
           
 int hashCode()
           
 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

root

protected JDOVariable root

args

protected java.lang.String[] args

value_type

protected java.lang.Class value_type
Constructor Detail

JDONativeValue

public JDONativeValue(JDOVariable root,
                      java.lang.String arg,
                      java.lang.Class value_type)

JDONativeValue

public JDONativeValue(JDOVariable root,
                      java.lang.String[] args,
                      java.lang.Class value_type)
Method Detail

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

getRoot

public JDOVariable getRoot()

getArguments

public java.lang.String[] getArguments()

getValueType

public java.lang.Class getValueType()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.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


Copyright © 2000-2012 Ontopia.