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[]argsprotected JDOVariablerootprotected Classvalue_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 booleanequals(Object obj)String[]getArguments()JDOVariablegetRoot()intgetType()INTERNAL: Returns the type of JDO value indicated by one of the constants in theJDOValueIFinterface.ClassgetValueType()inthashCode()StringtoString()voidvisit(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:JDOValueIFINTERNAL: Returns the type of JDO value indicated by one of the constants in theJDOValueIFinterface.- Specified by:
getTypein interfaceJDOValueIF
-
getRoot
public JDOVariable getRoot()
-
getArguments
public String[] getArguments()
-
getValueType
public Class getValueType()
-
visit
public void visit(JDOVisitorIF visitor)
Description copied from interface:JDOValueIFINTERNAL: Allows the value to be visited. This method is used for retrieval of nested data in expressions.- Specified by:
visitin interfaceJDOValueIF
-
-