|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mckoi.database.FunctionDef
public final class FunctionDef
A definition of a function including its name and parameters. A FunctionDef can easily be transformed into a Function object via a set of FunctionFactory instances.
NOTE: This object is NOT immutable or thread-safe. A FunctionDef should not be shared among different threads.
Constructor Summary | |
---|---|
FunctionDef(java.lang.String name,
Expression[] params)
Constructs the FunctionDef. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Performs a deep clone of this object. |
Function |
getFunction(QueryContext context)
Returns a Function object from this FunctionDef. |
java.lang.String |
getName()
The name of the function. |
Expression[] |
getParameters()
The list of parameters that are passed to the function. |
boolean |
isAggregate(QueryContext context)
Returns true if this function is an aggregate, or the parameters are aggregates. |
java.lang.String |
toString()
Human understandable string, used for the column title. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FunctionDef(java.lang.String name, Expression[] params)
Method Detail |
---|
public java.lang.String getName()
public Expression[] getParameters()
public boolean isAggregate(QueryContext context)
public Function getFunction(QueryContext context)
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |