com.caucho.amber.expr
Interface PathExpr

All Superinterfaces:
AmberExpr
All Known Subinterfaces:
EntityPathExpr
All Known Implementing Classes:
AbstractPathExpr, CollectionIdExpr, DependentEntityOneToOneExpr, ElementCollectionExpr, ElementCollectionIdExpr, EmbeddedExpr, IdExpr, KeyManyToOneExpr, ManyToOneExpr, OneToManyExpr

public interface PathExpr
extends AmberExpr

Represents an amber mapping query expression


Field Summary
 
Fields inherited from interface com.caucho.amber.expr.AmberExpr
IS_INNER_JOIN, USES_DATA
 
Method Summary
 PathExpr bindSelect(QueryParser parser, java.lang.String tableName)
          Binds the expression as a select item.
 FromItem bindSubPath(QueryParser parser)
          Binds the expression as a select item.
 AmberExpr createArray(AmberExpr field)
          Creates an array reference.
 AmberExpr createField(QueryParser parser, java.lang.String field)
          Creates the expr from the path.
 IdExpr createId(FromItem from)
          Creates an id expression.
 LoadExpr createLoad()
          Creates a load expression.
 FromItem getChildFromItem()
          Returns the from item
 AmberBeanType getTargetType()
          Returns the target type.
 
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

AmberBeanType getTargetType()
Returns the target type.


createField

AmberExpr createField(QueryParser parser,
                      java.lang.String field)
Creates the expr from the path.


createArray

AmberExpr createArray(AmberExpr field)
Creates an array reference.


createId

IdExpr createId(FromItem from)
Creates an id expression.


createLoad

LoadExpr createLoad()
Creates a load expression.


bindSelect

PathExpr bindSelect(QueryParser parser,
                    java.lang.String tableName)
Binds the expression as a select item.


bindSubPath

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


getChildFromItem

FromItem getChildFromItem()
Returns the from item