com.caucho.amber.expr
Interface EntityPathExpr

All Superinterfaces:
AmberExpr, PathExpr

public interface EntityPathExpr
extends PathExpr

A path expression that returns an entity.


Field Summary
 
Fields inherited from interface com.caucho.amber.expr.AmberExpr
IS_INNER_JOIN, USES_DATA
 
Method Summary
 FromItem bindSubPath(QueryParser parser)
          Binds the expression as a select item.
 void generateHaving(CharBuffer cb, IdField field)
          Generates the having expression.
 void generateWhere(CharBuffer cb, IdField field)
          Generates the where expression for a subfield
 FromItem getChildFromItem()
          Returns the from item
 java.lang.String getTable()
          Returns the table.
 EntityType getTargetType()
          Returns the entity type.
 
Methods inherited from interface com.caucho.amber.expr.PathExpr
bindSelect, createArray, createField, createId, createLoad
 
Methods inherited from interface com.caucho.amber.expr.AmberExpr
bindSelect, createBoolean, exists, exists, findItem, generateHaving, generateJoin, generateSelect, generateUpdateWhere, generateWhere, getCacheObject, getObject, getType, hasRelationship, isBoolean, replaceJoin, setInternalArgType, usesFrom, usesFrom
 

Method Detail

getTargetType

EntityType getTargetType()
Returns the entity type.

Specified by:
getTargetType in interface PathExpr

getTable

java.lang.String getTable()
Returns the table.


bindSubPath

FromItem bindSubPath(QueryParser parser)
Binds the expression as a select item.

Specified by:
bindSubPath in interface PathExpr

getChildFromItem

FromItem getChildFromItem()
Returns the from item

Specified by:
getChildFromItem in interface PathExpr

generateWhere

void generateWhere(CharBuffer cb,
                   IdField field)
Generates the where expression for a subfield


generateHaving

void generateHaving(CharBuffer cb,
                    IdField field)
Generates the having expression.