|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.mguennewig.pobjects.FctCall
public class FctCall
A function call within an SQL expression.
| Constructor Summary | |
|---|---|
FctCall(java.lang.String fctName,
Term... args)
Create a function call. |
|
| Method Summary | |
|---|---|
static FctCall |
abs(Term arg)
Absolute value. |
static FctCall |
coalesce(Term... terms)
The COALESCE function returns the first of its arguments that is not null. |
boolean |
equals(java.lang.Object o)
|
Term |
getArgument(int i)
|
java.lang.String |
getFunctionName()
|
int |
getNumArguments()
|
java.lang.String |
getSqlValue(EvalContext eval)
Returns the SQL expression for this term. |
int |
hashCode()
|
boolean |
isConstant()
Tests whether the function call can be evaluated without an object. |
boolean |
isJoin()
Tests whether this expression enforces any kind of join. |
boolean |
isSelection()
Tests whether this expression is a selection. |
java.util.Iterator<Term> |
iterator()
|
static FctCall |
length(Term arg)
Length of a string. |
static FctCall |
lower(Term arg)
Convert string to lower case. |
static FctCall |
nullif(Term term1,
Term term2)
The NULLIF function returns a null value if the terms
term1 and term2 evaluate to equal values, otherwise it
returns the value of term1. |
static FctCall |
substring(Term arg,
int start,
int end)
Compute a substring. |
java.lang.String |
toString()
|
static FctCall |
upper(Term arg)
Convert string to upper case. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FctCall(java.lang.String fctName,
Term... args)
fctName - the name of the function.args - the argument list.
java.lang.IllegalArgumentException - if any argument term is null| Method Detail |
|---|
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic final java.lang.String getFunctionName()
public final int getNumArguments()
public final Term getArgument(int i)
public int hashCode()
hashCode in class java.lang.Objectpublic java.util.Iterator<Term> iterator()
iterator in interface java.lang.Iterable<Term>public boolean isConstant()
isConstant in interface Termpublic boolean isJoin()
Term
isJoin in interface Termpublic boolean isSelection()
TermWith selection is an expression meant that binds a Member to
one Literal.
isSelection in interface Termpublic java.lang.String toString()
toString in class java.lang.Objectpublic static FctCall abs(Term arg)
arg - a Term that evaluates to a number.
java.lang.IllegalArgumentException - if the argument term is nullpublic static FctCall coalesce(Term... terms)
null. Null is returned only if all arguments are
null.
public static FctCall length(Term arg)
arg - a Term that evaluates to a string value.
java.lang.IllegalArgumentException - if the argument term is nullpublic static FctCall lower(Term arg)
arg - a Term that evaluates to a string value.
java.lang.IllegalArgumentException - if the argument term is nullupper(Term)
public static FctCall nullif(Term term1,
Term term2)
null value if the terms
term1 and term2 evaluate to equal values, otherwise it
returns the value of term1.
public static FctCall upper(Term arg)
arg - a Term that evaluates to a string value.
java.lang.IllegalArgumentException - if the argument term is nulllower(Term)
public static FctCall substring(Term arg,
int start,
int end)
arg - a Term that evaluates to a string value.
java.lang.IllegalArgumentException - if argument term is null,
the start position is less then 1 or the end is less then the start
position.public java.lang.String getSqlValue(EvalContext eval)
Term
getSqlValue in interface Term
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||