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[]
args
protected String
name
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 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 boolean
equals(Object obj)
JDOValueIF[]
getArguments()
String
getName()
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
-
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:JDOValueIF
INTERNAL: Returns the type of JDO value indicated by one of the constants in theJDOValueIF
interface.- Specified by:
getType
in interfaceJDOValueIF
-
getName
public String getName()
-
getValueType
public Class getValueType()
-
getArguments
public JDOValueIF[] getArguments()
-
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
-
-