net.ontopia.persistence.query.jdo
Class JDOFunction
java.lang.Object
net.ontopia.persistence.query.jdo.JDOFunction
- All Implemented Interfaces:
- JDOValueIF
public class JDOFunction
- extends java.lang.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.
Constructor Summary |
JDOFunction(java.lang.String name,
java.lang.Class value_type,
JDOValueIF arg1)
|
JDOFunction(java.lang.String name,
java.lang.Class value_type,
JDOValueIF[] args)
|
JDOFunction(java.lang.String name,
java.lang.Class value_type,
JDOValueIF arg1,
JDOValueIF arg2)
|
JDOFunction(java.lang.String name,
java.lang.Class value_type,
JDOValueIF arg1,
JDOValueIF arg2,
JDOValueIF arg3)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
name
protected java.lang.String name
value_type
protected java.lang.Class value_type
args
protected JDOValueIF[] args
JDOFunction
public JDOFunction(java.lang.String name,
java.lang.Class value_type,
JDOValueIF arg1)
JDOFunction
public JDOFunction(java.lang.String name,
java.lang.Class value_type,
JDOValueIF arg1,
JDOValueIF arg2)
JDOFunction
public JDOFunction(java.lang.String name,
java.lang.Class value_type,
JDOValueIF arg1,
JDOValueIF arg2,
JDOValueIF arg3)
JDOFunction
public JDOFunction(java.lang.String name,
java.lang.Class value_type,
JDOValueIF[] args)
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
getName
public java.lang.String getName()
getValueType
public java.lang.Class getValueType()
getArguments
public JDOValueIF[] getArguments()
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.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.