com.caucho.amber.expr
Class AbstractPathExpr

java.lang.Object
  extended by com.caucho.amber.expr.AbstractAmberExpr
      extended by com.caucho.amber.expr.AbstractPathExpr
All Implemented Interfaces:
AmberExpr, PathExpr
Direct Known Subclasses:
DependentEntityOneToOneExpr, ElementCollectionExpr, EmbeddedExpr, IdExpr, KeyManyToOneExpr, ManyToOneExpr, OneToManyExpr

public abstract class AbstractPathExpr
extends AbstractAmberExpr
implements PathExpr

Represents an amber mapping query expression


Field Summary
 
Fields inherited from interface com.caucho.amber.expr.AmberExpr
IS_INNER_JOIN, USES_DATA
 
Constructor Summary
AbstractPathExpr()
           
 
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 fieldName)
          Creates the expr from the path.
 IdExpr createId(FromItem fromItem)
          Creates an id expression.
 LoadExpr createLoad()
          Creates a load expression.
 FromItem getChildFromItem()
          Returns the from item
 
Methods inherited from class com.caucho.amber.expr.AbstractAmberExpr
bindSelect, createBoolean, exists, exists, findItem, generateHaving, generateJoin, generateSelect, generateUpdateWhere, generateWhere, getCacheObject, getColumnCount, getObject, getType, hasRelationship, isBoolean, replaceJoin, setInternalArgType, usesFrom, usesFrom
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.caucho.amber.expr.PathExpr
getTargetType
 
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
 

Constructor Detail

AbstractPathExpr

public AbstractPathExpr()
Method Detail

createField

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

Specified by:
createField in interface PathExpr

createArray

public AmberExpr createArray(AmberExpr field)
Creates an array reference.

Specified by:
createArray in interface PathExpr

createId

public IdExpr createId(FromItem fromItem)
Creates an id expression.

Specified by:
createId in interface PathExpr

createLoad

public LoadExpr createLoad()
Creates a load expression.

Specified by:
createLoad in interface PathExpr

bindSelect

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

Specified by:
bindSelect in interface PathExpr

bindSubPath

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

Specified by:
bindSubPath in interface PathExpr

getChildFromItem

public FromItem getChildFromItem()
Returns the from item

Specified by:
getChildFromItem in interface PathExpr