com.caucho.amber.expr
Class KeyPropertyExpr

java.lang.Object
  extended by com.caucho.amber.expr.AbstractAmberExpr
      extended by com.caucho.amber.expr.KeyPropertyExpr
All Implemented Interfaces:
AmberExpr, IdFieldExpr

public class KeyPropertyExpr
extends AbstractAmberExpr
implements IdFieldExpr

Bound identifier expression.


Field Summary
protected  PathExpr _parent
           
 
Fields inherited from interface com.caucho.amber.expr.AmberExpr
IS_INNER_JOIN, USES_DATA
 
Constructor Summary
KeyPropertyExpr(PathExpr parent, KeyPropertyField field)
          Creates a new unbound id expression.
 
Method Summary
 AmberExpr bindSelect(QueryParser parser)
          Binds the expression as a select item.
 FromItem getChildFromItem()
          Returns the child from item.
 AmberColumn getColumn()
          Returns the parent expression.
 KeyPropertyField getField()
          Returns the parent expression.
 PathExpr getParent()
          Returns the parent expression.
 AmberType getType()
          Returns the expr type
 java.lang.String toString()
          Returns the field string.
 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, generateHaving, generateJoin, generateSelect, generateUpdateWhere, generateWhere, getCacheObject, getColumnCount, getObject, hasRelationship, isBoolean, replaceJoin, setInternalArgType, usesFrom
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.caucho.amber.expr.AmberExpr
createBoolean, exists, exists, findItem, generateHaving, generateJoin, generateSelect, generateUpdateWhere, generateWhere, getCacheObject, getObject, hasRelationship, isBoolean, replaceJoin, setInternalArgType, usesFrom
 

Field Detail

_parent

protected PathExpr _parent
Constructor Detail

KeyPropertyExpr

public KeyPropertyExpr(PathExpr parent,
                       KeyPropertyField field)
Creates a new unbound id expression.

Method Detail

bindSelect

public AmberExpr bindSelect(QueryParser parser)
Binds the expression as a select item.

Specified by:
bindSelect in interface AmberExpr
Specified by:
bindSelect in class AbstractAmberExpr

getParent

public PathExpr getParent()
Returns the parent expression.

Specified by:
getParent in interface IdFieldExpr

getField

public KeyPropertyField getField()
Returns the parent expression.

Specified by:
getField in interface IdFieldExpr

getType

public AmberType getType()
Returns the expr type

Specified by:
getType in interface AmberExpr
Overrides:
getType in class AbstractAmberExpr

getColumn

public AmberColumn getColumn()
Returns the parent expression.

Specified by:
getColumn in interface IdFieldExpr

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 AbstractAmberExpr

getChildFromItem

public FromItem getChildFromItem()
Returns the child from item. XXX: untested


toString

public java.lang.String toString()
Returns the field string.

Overrides:
toString in class java.lang.Object