|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.amber.expr.AbstractAmberExpr
com.caucho.amber.expr.fun.FunExpr
public class FunExpr
Function expression
| Field Summary |
|---|
| Fields inherited from interface com.caucho.amber.expr.AmberExpr |
|---|
IS_INNER_JOIN, USES_DATA |
| Constructor Summary | |
|---|---|
protected |
FunExpr(QueryParser parser,
java.lang.String id,
java.util.ArrayList<AmberExpr> args,
boolean distinct)
Creates a new function expression |
| Method Summary | |
|---|---|
AmberExpr |
bindSelect(QueryParser parser)
Binds the expression as a select item. |
static FunExpr |
create(QueryParser parser,
java.lang.String id,
java.util.ArrayList<AmberExpr> args,
boolean distinct)
|
void |
generateHaving(CharBuffer cb)
Generates the having expression. |
void |
generateUpdateWhere(CharBuffer cb)
Generates the (update) where expression. |
void |
generateWhere(CharBuffer cb)
Generates the where expression. |
java.util.ArrayList<AmberExpr> |
getArgs()
Returns the args. |
java.lang.Object |
getObject(AmberConnection aConn,
java.sql.ResultSet rs,
int index)
Returns the object for the expr. |
AmberType |
getType()
Returns the expr type. |
java.lang.String |
toString()
|
boolean |
usesFrom(FromItem from,
int type,
boolean isNot)
Returns true if the expression uses the from item. |
| Methods inherited from class com.caucho.amber.expr.AbstractAmberExpr |
|---|
createBoolean, exists, exists, findItem, generateJoin, generateSelect, getCacheObject, getColumnCount, hasRelationship, isBoolean, replaceJoin, setInternalArgType, usesFrom |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected FunExpr(QueryParser parser,
java.lang.String id,
java.util.ArrayList<AmberExpr> args,
boolean distinct)
| Method Detail |
|---|
public static FunExpr create(QueryParser parser,
java.lang.String id,
java.util.ArrayList<AmberExpr> args,
boolean distinct)
public AmberExpr bindSelect(QueryParser parser)
bindSelect in interface AmberExprbindSelect in class AbstractAmberExprpublic AmberType getType()
getType in interface AmberExprgetType in class AbstractAmberExpr
public boolean usesFrom(FromItem from,
int type,
boolean isNot)
usesFrom in interface AmberExprusesFrom in class AbstractAmberExprpublic void generateWhere(CharBuffer cb)
generateWhere in interface AmberExprgenerateWhere in class AbstractAmberExprpublic void generateUpdateWhere(CharBuffer cb)
generateUpdateWhere in interface AmberExprgenerateUpdateWhere in class AbstractAmberExprpublic void generateHaving(CharBuffer cb)
generateHaving in interface AmberExprgenerateHaving in class AbstractAmberExpr
public java.lang.Object getObject(AmberConnection aConn,
java.sql.ResultSet rs,
int index)
throws java.sql.SQLException
getObject in interface AmberExprgetObject in class AbstractAmberExprjava.sql.SQLExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.ArrayList<AmberExpr> getArgs()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||