| |
|
| java.lang.Object org.mandarax.kernel.LObject org.mandarax.kernel.meta.JConstructor
All known Subclasses: org.mandarax.kernel.meta.JPredicate, org.mandarax.kernel.meta.JFunction, org.mandarax.kernel.meta.DynaBeanFunction,
JConstructor | abstract public class JConstructor extends org.mandarax.kernel.LObject implements org.mandarax.kernel.Constructor(Code) | | Abstract super class for JFunction and JPredicate.
In version 3.2, session support has been added. The last parameter (found in the wrapoped method)
is treated separately if its type is Session (or a subclass of session). Then this parameter is used
to pass a session reference at query time to the function or predicate!
See Also: org.mandarax.kernel.Session author: Jens Dietrich version: 3.4 <7 March 05> since: 1.0 |
isSessionParameterSupported | protected boolean isSessionParameterSupported(Code) | | |
JConstructor | JConstructor()(Code) | | Default constructor.
|
JConstructor | public JConstructor(java.lang.reflect.Method aMethod, String aName)(Code) | | Constructor.
Parameters: aMethod - the method used Parameters: aString - the name of the object |
convertType | protected Class convertType(Class aType)(Code) | | Convert a type. This is used to convert
primitive types to their respective wrapper types.
the wrapper class Parameters: aType - the primitive type |
getMethod | public Method getMethod()(Code) | | Get the method.
the wrapped method |
getStructure | public java.lang.Class[] getStructure()(Code) | | Get the structure, i.e. the parameter types.
The first element is the declaring class of the method!
Note that the last parameter is treated separately if its type
is Session (or a subclass of session). Then this parameter is used
to pass a session reference at query time to the function or predicate!
See Also: org.mandarax.kernel.Session the structure of this object |
hashCode | public int hashCode()(Code) | | Get the hash code.
the hash value |
isExecutable | public boolean isExecutable()(Code) | | Indicates whether the object (usually a term or a clause set) can be performed
using the java semantics.
true |
isSessionParameterSupported | public boolean isSessionParameterSupported()(Code) | | Indicates whether a session parameter is supported.
This is the case iff the last parameter type is "Session".
See Also: org.mandarax.kernel.Session a boolean |
setMethod | public void setMethod(Method m)(Code) | | Set the method.
Parameters: m - a method |
setName | public void setName(String n)(Code) | | Set the name.
Parameters: n - a name |
toString | public String toString()(Code) | | Get the string representation of the object.
the string representation of this object |
|
|
|