com.caucho.amber.expr
Class DependentEntityOneToOneExpr

java.lang.Object
  extended by com.caucho.amber.expr.AbstractAmberExpr
      extended by com.caucho.amber.expr.AbstractPathExpr
          extended by com.caucho.amber.expr.DependentEntityOneToOneExpr
All Implemented Interfaces:
AmberExpr, PathExpr

public class DependentEntityOneToOneExpr
extends AbstractPathExpr

Bound identifier expression.


Field Summary
 
Fields inherited from interface com.caucho.amber.expr.AmberExpr
IS_INNER_JOIN, USES_DATA
 
Constructor Summary
DependentEntityOneToOneExpr(PathExpr parent, LinkColumns linkColumns)
          Creates a new unbound id expression.
 
Method Summary
 AmberExpr bindSelect(QueryParser parser)
          Binds the expression as a select item.
 FromItem bindSubPath(QueryParser parser)
          Binds the expression as a subpath.
 LoadExpr createLoad()
          Creates a load expression.
 boolean equals(java.lang.Object o)
           
 void generateMatchArgWhere(CharBuffer cb)
          Generates the where expression.
 void generateUpdateWhere(CharBuffer cb)
          Generates the (update) where expression.
 void generateWhere(CharBuffer cb)
          Generates the where expression.
 FromItem getChildFromItem()
          Return the child from item.
 EntityType getTargetType()
          Returns the entity class.
 int hashCode()
           
 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.AbstractPathExpr
bindSelect, createArray, createField, createId
 
Methods inherited from class com.caucho.amber.expr.AbstractAmberExpr
createBoolean, exists, exists, findItem, generateHaving, generateJoin, generateSelect, getCacheObject, getColumnCount, getObject, getType, hasRelationship, isBoolean, replaceJoin, setInternalArgType, usesFrom
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.caucho.amber.expr.AmberExpr
createBoolean, exists, exists, findItem, generateHaving, generateJoin, generateSelect, getCacheObject, getObject, getType, hasRelationship, isBoolean, replaceJoin, setInternalArgType, usesFrom
 

Constructor Detail

DependentEntityOneToOneExpr

public DependentEntityOneToOneExpr(PathExpr parent,
                                   LinkColumns linkColumns)
Creates a new unbound id expression.

Method Detail

getTargetType

public EntityType getTargetType()
Returns the entity class.


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

createLoad

public LoadExpr createLoad()
Creates a load expression.

Specified by:
createLoad in interface PathExpr
Overrides:
createLoad in class AbstractPathExpr

getChildFromItem

public FromItem getChildFromItem()
Return the child from item.

Specified by:
getChildFromItem in interface PathExpr
Overrides:
getChildFromItem in class AbstractPathExpr

bindSubPath

public FromItem bindSubPath(QueryParser parser)
Binds the expression as a subpath.

Specified by:
bindSubPath in interface PathExpr
Overrides:
bindSubPath in class AbstractPathExpr

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

generateMatchArgWhere

public void generateMatchArgWhere(CharBuffer cb)
Generates the where expression.


generateWhere

public void generateWhere(CharBuffer cb)
Generates the where expression.

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

generateUpdateWhere

public void generateUpdateWhere(CharBuffer cb)
Generates the (update) where expression.

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object