net.ontopia.persistence.query.jdo
Class JDOField

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

public class JDOField
extends java.lang.Object
implements JDOValueIF

INTERNAL: JDOQL value: instance field. Represents the traversal from a value instance to the value of one of its fields. Syntax: 'A.field'.


Field Summary
protected  boolean evaluatable
           
protected  java.lang.String[] path
           
protected  JDOValueIF root
           
 
Fields inherited from interface net.ontopia.persistence.query.jdo.JDOValueIF
COLLECTION, FIELD, FUNCTION, NATIVE_VALUE, NULL, OBJECT, PARAMETER, PRIMITIVE, STRING, VARIABLE
 
Constructor Summary
JDOField(JDOValueIF root, java.lang.String name)
           
JDOField(JDOValueIF root, java.lang.String[] path)
           
JDOField(JDOValueIF root, java.lang.String[] path, boolean evaluatable)
           
JDOField(JDOValueIF root, java.lang.String name, boolean evaluatable)
           
JDOField(JDOValueIF root, java.lang.String name1, java.lang.String name2)
           
JDOField(JDOValueIF root, java.lang.String name1, java.lang.String name2, boolean evaluatable)
           
JDOField(JDOValueIF root, java.lang.String name1, java.lang.String name2, java.lang.String name3)
           
JDOField(JDOValueIF root, java.lang.String name1, java.lang.String name2, java.lang.String name3, boolean evaluatable)
           
JDOField(JDOValueIF root, java.lang.String name1, java.lang.String name2, java.lang.String name3, java.lang.String name4)
           
JDOField(JDOValueIF root, java.lang.String name1, java.lang.String name2, java.lang.String name3, java.lang.String name4, boolean evaluatable)
           
JDOField(JDOValueIF root, java.lang.String name1, java.lang.String name2, java.lang.String name3, java.lang.String name4, java.lang.String name5)
           
JDOField(JDOValueIF root, java.lang.String name1, java.lang.String name2, java.lang.String name3, java.lang.String name4, java.lang.String name5, boolean evaluatable)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 boolean getEvaluatable()
           
 java.lang.String[] getPath()
           
 JDOValueIF getRoot()
           
 int getType()
          INTERNAL: Returns the type of JDO value indicated by one of the constants in the JDOValueIF interface.
 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 JDOValueIF root

path

protected java.lang.String[] path

evaluatable

protected boolean evaluatable
Constructor Detail

JDOField

public JDOField(JDOValueIF root,
                java.lang.String name)

JDOField

public JDOField(JDOValueIF root,
                java.lang.String name,
                boolean evaluatable)

JDOField

public JDOField(JDOValueIF root,
                java.lang.String name1,
                java.lang.String name2)

JDOField

public JDOField(JDOValueIF root,
                java.lang.String name1,
                java.lang.String name2,
                boolean evaluatable)

JDOField

public JDOField(JDOValueIF root,
                java.lang.String name1,
                java.lang.String name2,
                java.lang.String name3)

JDOField

public JDOField(JDOValueIF root,
                java.lang.String name1,
                java.lang.String name2,
                java.lang.String name3,
                boolean evaluatable)

JDOField

public JDOField(JDOValueIF root,
                java.lang.String name1,
                java.lang.String name2,
                java.lang.String name3,
                java.lang.String name4)

JDOField

public JDOField(JDOValueIF root,
                java.lang.String name1,
                java.lang.String name2,
                java.lang.String name3,
                java.lang.String name4,
                boolean evaluatable)

JDOField

public JDOField(JDOValueIF root,
                java.lang.String name1,
                java.lang.String name2,
                java.lang.String name3,
                java.lang.String name4,
                java.lang.String name5)

JDOField

public JDOField(JDOValueIF root,
                java.lang.String name1,
                java.lang.String name2,
                java.lang.String name3,
                java.lang.String name4,
                java.lang.String name5,
                boolean evaluatable)

JDOField

public JDOField(JDOValueIF root,
                java.lang.String[] path)

JDOField

public JDOField(JDOValueIF root,
                java.lang.String[] path,
                boolean evaluatable)
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 JDOValueIF getRoot()

getPath

public java.lang.String[] getPath()

getEvaluatable

public boolean getEvaluatable()

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.