com.caucho.amber.expr
Class KeyColumnExpr

java.lang.Object
  extended by com.caucho.amber.expr.AbstractAmberExpr
      extended by com.caucho.amber.expr.ColumnExpr
          extended by com.caucho.amber.expr.KeyColumnExpr
All Implemented Interfaces:
AmberExpr

public class KeyColumnExpr
extends ColumnExpr

Bound identifier expression.


Field Summary
 
Fields inherited from class com.caucho.amber.expr.ColumnExpr
_fromItem, _parent
 
Fields inherited from interface com.caucho.amber.expr.AmberExpr
IS_INNER_JOIN, USES_DATA
 
Constructor Summary
KeyColumnExpr(PathExpr parent, AmberColumn column)
          Creates a new unbound id expression.
 
Method Summary
 AmberExpr replaceJoin(JoinExpr join)
          Replaces linked join to eliminate a table.
 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.ColumnExpr
bindSelect, createBoolean, generateHaving, generateUpdateWhere, generateWhere, getColumn, getParent, getType, hasRelationship, toString
 
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
 

Constructor Detail

KeyColumnExpr

public KeyColumnExpr(PathExpr parent,
                     AmberColumn column)
Creates a new unbound id expression.

Method Detail

usesFrom

public boolean usesFrom(FromItem from,
                        int type,
                        boolean isNot)
Returns true if the expression uses the from item.

Specified by:
usesFrom in interface AmberExpr
Overrides:
usesFrom in class ColumnExpr

replaceJoin

public AmberExpr replaceJoin(JoinExpr join)
Replaces linked join to eliminate a table.

Specified by:
replaceJoin in interface AmberExpr
Overrides:
replaceJoin in class ColumnExpr