public class FunExpr extends AbstractAmberExpr
IS_INNER_JOIN, USES_DATA
Modifier | Constructor and Description |
---|---|
protected |
FunExpr(QueryParser parser,
java.lang.String id,
java.util.ArrayList<AmberExpr> args,
boolean distinct)
Creates a new function expression
|
Modifier and Type | Method and Description |
---|---|
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.
|
createBoolean, exists, exists, findItem, generateJoin, generateSelect, getCacheObject, getColumnCount, hasRelationship, isBoolean, replaceJoin, setInternalArgType, usesFrom
protected FunExpr(QueryParser parser, java.lang.String id, java.util.ArrayList<AmberExpr> args, boolean distinct)
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 AmberExpr
bindSelect
in class AbstractAmberExpr
public AmberType getType()
getType
in interface AmberExpr
getType
in class AbstractAmberExpr
public boolean usesFrom(FromItem from, int type, boolean isNot)
usesFrom
in interface AmberExpr
usesFrom
in class AbstractAmberExpr
public void generateWhere(CharBuffer cb)
generateWhere
in interface AmberExpr
generateWhere
in class AbstractAmberExpr
public void generateUpdateWhere(CharBuffer cb)
generateUpdateWhere
in interface AmberExpr
generateUpdateWhere
in class AbstractAmberExpr
public void generateHaving(CharBuffer cb)
generateHaving
in interface AmberExpr
generateHaving
in class AbstractAmberExpr
public java.lang.Object getObject(AmberConnection aConn, java.sql.ResultSet rs, int index) throws java.sql.SQLException
getObject
in interface AmberExpr
getObject
in class AbstractAmberExpr
java.sql.SQLException
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.ArrayList<AmberExpr> getArgs()