net.ontopia.persistence.query.jdo
Class JDONativeValue
java.lang.Object
net.ontopia.persistence.query.jdo.JDONativeValue
- All Implemented Interfaces:
- JDOValueIF
public class JDONativeValue
- extends 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.
root
protected JDOVariable root
args
protected String[] args
value_type
protected Class value_type
JDONativeValue
public JDONativeValue(JDOVariable root,
String arg,
Class value_type)
JDONativeValue
public JDONativeValue(JDOVariable root,
String[] args,
Class value_type)
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 String[] getArguments()
getValueType
public Class getValueType()
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
Copyright © 2000-2012 Ontopia.