|
||||||||||
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.InExpr
public class InExpr
"in" expression
Field Summary |
---|
Fields inherited from interface com.caucho.amber.expr.AmberExpr |
---|
IS_INNER_JOIN, USES_DATA |
Constructor Summary | |
---|---|
InExpr(AmberExpr expr,
java.util.ArrayList<AmberExpr> values,
boolean isNot)
Creates a new cmp expression |
Method Summary | |
---|---|
AmberExpr |
bindSelect(QueryParser parser)
Binds the expression as a select item. |
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. |
AmberType |
getType()
Returns the expr type. |
boolean |
isBoolean()
Returns true for a boolean expression. |
AmberExpr |
replaceJoin(JoinExpr join)
Returns true if the expression uses the from item. |
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, getObject, hasRelationship, setInternalArgType, usesFrom |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public InExpr(AmberExpr expr, java.util.ArrayList<AmberExpr> values, boolean isNot)
Method Detail |
---|
public boolean isBoolean()
isBoolean
in interface AmberExpr
isBoolean
in class AbstractAmberExpr
public AmberType getType()
getType
in interface AmberExpr
getType
in class AbstractAmberExpr
public AmberExpr bindSelect(QueryParser parser)
bindSelect
in interface AmberExpr
bindSelect
in class AbstractAmberExpr
public boolean usesFrom(FromItem from, int type, boolean isNot)
usesFrom
in interface AmberExpr
usesFrom
in class AbstractAmberExpr
public AmberExpr replaceJoin(JoinExpr join)
replaceJoin
in interface AmberExpr
replaceJoin
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.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |