Class JDOFunction
- java.lang.Object
-
- net.ontopia.persistence.query.jdo.JDOFunction
-
- All Implemented Interfaces:
JDOValueIF
public class JDOFunction extends Object implements JDOValueIF
INTERNAL: JDOQL method: Object.<operator>(Object,...). The function can also be a free form function where the name is the function pattern, e.g. "contains($1, $2, 1) > 0)". Function arguments are referred via their position.
-
-
Field Summary
Fields Modifier and Type Field Description protected JDOValueIF[]argsprotected Stringnameprotected 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 JDOFunction(String name, Class value_type, JDOValueIF arg1)JDOFunction(String name, Class value_type, JDOValueIF[] args)JDOFunction(String name, Class value_type, JDOValueIF arg1, JDOValueIF arg2)JDOFunction(String name, Class value_type, JDOValueIF arg1, JDOValueIF arg2, JDOValueIF arg3)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)JDOValueIF[]getArguments()StringgetName()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
-
name
protected String name
-
value_type
protected Class value_type
-
args
protected JDOValueIF[] args
-
-
Constructor Detail
-
JDOFunction
public JDOFunction(String name, Class value_type, JDOValueIF arg1)
-
JDOFunction
public JDOFunction(String name, Class value_type, JDOValueIF arg1, JDOValueIF arg2)
-
JDOFunction
public JDOFunction(String name, Class value_type, JDOValueIF arg1, JDOValueIF arg2, JDOValueIF arg3)
-
JDOFunction
public JDOFunction(String name, Class value_type, JDOValueIF[] args)
-
-
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
-
getName
public String getName()
-
getValueType
public Class getValueType()
-
getArguments
public JDOValueIF[] getArguments()
-
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
-
-