|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.websphere.query.base.Function
public class Function
The Function class represents a function in the query framework. It can be used in a predicate, an order by, and wherever appropriate.
This class contains a name and a vector of elements to describe a typical function. For example, a simple function "upper(name)" is described with an instance of Function class whose name = "upper" and function element = Attribute("name")
| Constructor Summary | |
|---|---|
Function()
Default contructor. |
|
Function(java.lang.String newName)
Creates a new Function instance with the given name. |
|
Function(java.lang.String newName,
IFunctionElement newFunctionElement)
Creates a new Function instance with the given name, and function element. |
|
Function(java.lang.String newName,
IFunctionElement[] newFunctionElements)
Creates a new Function instance with the given name, and an array of function elements. |
|
| Method Summary | |
|---|---|
void |
addFunctionElement(IFunctionElement functionElement)
Adds a function element the function element vector. |
java.lang.String |
buildString(ISelectQueryCallback builder)
Builds a query string for the function. |
void |
buildString(ISelectQueryCallback builder,
java.lang.StringBuffer sb)
|
boolean |
equals(java.lang.Object o)
Tests for equality with the given object. |
int |
getDataType()
Returns the data type of the value. |
IFunctionElement[] |
getFunctionElements()
Returns the function elements as an array. |
java.lang.String |
getName()
Returns the function name. |
int |
hashCode()
Computes a hash code for the function. |
void |
setFunctionElement(IFunctionElement newFunctionElement)
Sets the function element of the condition. |
void |
setFunctionElements(IFunctionElement[] newFunctionElements)
Sets the function elements of the condition. |
void |
setName(java.lang.String newName)
Sets the function name. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Function()
public Function(java.lang.String newName)
public Function(java.lang.String newName,
IFunctionElement[] newFunctionElements)
public Function(java.lang.String newName,
IFunctionElement newFunctionElement)
| Method Detail |
|---|
public void addFunctionElement(IFunctionElement functionElement)
public java.lang.String buildString(ISelectQueryCallback builder)
throws QueryException
buildString in interface IStringBuilderQueryException
public void buildString(ISelectQueryCallback builder,
java.lang.StringBuffer sb)
throws QueryException
buildString in interface IStringBuilderQueryExceptionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic IFunctionElement[] getFunctionElements()
getFunctionElements in interface IFunctionpublic java.lang.String getName()
getName in interface IFunctionpublic int hashCode()
hashCode in class java.lang.Objectpublic void setFunctionElement(IFunctionElement newFunctionElement)
public void setFunctionElements(IFunctionElement[] newFunctionElements)
public void setName(java.lang.String newName)
public int getDataType()
ILeftOperand
getDataType in interface IFunctionElementgetDataType in interface ILeftOperandILeftOperand.getDataType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||