|
||||||||||
| 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.ColumnExpr
public class ColumnExpr
Bound identifier expression.
| Field Summary | |
|---|---|
protected FromItem |
_fromItem
|
protected PathExpr |
_parent
|
| Fields inherited from interface com.caucho.amber.expr.AmberExpr |
|---|
IS_INNER_JOIN, USES_DATA |
| Constructor Summary | |
|---|---|
ColumnExpr(PathExpr parent,
AmberColumn column)
Creates a new unbound id expression. |
|
| Method Summary | |
|---|---|
AmberExpr |
bindSelect(QueryParser parser)
Binds the expression as a select item. |
AmberExpr |
createBoolean()
Returns a boolean expression. |
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. |
AmberColumn |
getColumn()
Returns the name. |
PathExpr |
getParent()
Returns the parent. |
AmberType |
getType()
Returns the expr type. |
boolean |
hasRelationship()
Returns true if this expr has any relationship. |
AmberExpr |
replaceJoin(JoinExpr join)
Replaces linked join to eliminate a table. |
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 |
|---|
exists, exists, findItem, generateJoin, generateSelect, getCacheObject, getColumnCount, getObject, isBoolean, setInternalArgType, usesFrom |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected PathExpr _parent
protected FromItem _fromItem
| Constructor Detail |
|---|
public ColumnExpr(PathExpr parent,
AmberColumn column)
| Method Detail |
|---|
public PathExpr getParent()
public AmberColumn getColumn()
public AmberType getType()
getType in interface AmberExprgetType in class AbstractAmberExprpublic boolean hasRelationship()
hasRelationship in interface AmberExprhasRelationship in class AbstractAmberExpr
public AmberExpr createBoolean()
throws QueryParseException
createBoolean in interface AmberExprcreateBoolean in class AbstractAmberExprQueryParseExceptionpublic AmberExpr bindSelect(QueryParser parser)
bindSelect in interface AmberExprbindSelect in class AbstractAmberExpr
public boolean usesFrom(FromItem from,
int type,
boolean isNot)
usesFrom in interface AmberExprusesFrom in class AbstractAmberExprpublic AmberExpr replaceJoin(JoinExpr join)
replaceJoin in interface AmberExprreplaceJoin 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 AbstractAmberExprpublic 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 | |||||||||