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.
-
-
Field Summary
Fields Modifier and Type Field Description protected String[]
args
protected JDOVariable
root
protected 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
Constructors Constructor Description JDONativeValue(JDOVariable root, String[] args, Class value_type)
JDONativeValue(JDOVariable root, String arg, Class value_type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String[]
getArguments()
JDOVariable
getRoot()
int
getType()
INTERNAL: Returns the type of JDO value indicated by one of the constants in theJDOValueIF
interface.Class
getValueType()
int
hashCode()
String
toString()
void
visit(JDOVisitorIF visitor)
INTERNAL: Allows the value to be visited.
-
-
-
Field Detail
-
root
protected JDOVariable root
-
args
protected String[] args
-
value_type
protected Class value_type
-
-
Constructor Detail
-
JDONativeValue
public JDONativeValue(JDOVariable root, String arg, Class value_type)
-
JDONativeValue
public JDONativeValue(JDOVariable root, String[] args, 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 theJDOValueIF
interface.- Specified by:
getType
in interfaceJDOValueIF
-
getRoot
public JDOVariable getRoot()
-
getArguments
public String[] getArguments()
-
getValueType
public Class getValueType()
-
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 interfaceJDOValueIF
-
-