com.caucho.amber.expr
Class LoadEntityExpr

java.lang.Object
  extended by com.caucho.amber.expr.AbstractAmberExpr
      extended by com.caucho.amber.expr.LoadExpr
          extended by com.caucho.amber.expr.LoadEntityExpr
All Implemented Interfaces:
AmberExpr

public class LoadEntityExpr
extends LoadExpr

An entity expression which should be loaded.


Field Summary
 
Fields inherited from interface com.caucho.amber.expr.AmberExpr
IS_INNER_JOIN, USES_DATA
 
Method Summary
 AmberExpr bindSelect(QueryParser parser)
          Binds the expression as a select item.
 EntityItem findItem(AmberConnection aConn, java.sql.ResultSet rs, int index)
          Returns the object for the expr.
 EntityItem findItem(AmberConnection aConn, java.sql.ResultSet rs, int index, java.util.Map<AmberExpr,java.lang.String> joinFetchMap)
          Returns the object for the expr.
 java.lang.Object getCacheObject(AmberConnection aConn, java.sql.ResultSet rs, int index)
          Returns the object for the expr.
 java.lang.Object getCacheObject(AmberConnection aConn, java.sql.ResultSet rs, int index, java.util.Map<AmberExpr,java.lang.String> joinFetchMap)
          Returns the object for the expr.
 EntityType getEntityType()
          Returns the entity type.
 java.lang.Object getObject(AmberConnection aConn, java.sql.ResultSet rs, int index)
          Returns the object for the expr.
 
Methods inherited from class com.caucho.amber.expr.LoadExpr
bindSubPath, create, create, generateHaving, generateSelect, generateSelect, generateUpdateWhere, generateWhere, getChildFromItem, getExpr, getIndex, getTable, getType, toString, usesFrom
 
Methods inherited from class com.caucho.amber.expr.AbstractAmberExpr
createBoolean, exists, exists, generateHaving, generateJoin, generateUpdateWhere, generateWhere, getColumnCount, hasRelationship, isBoolean, replaceJoin, setInternalArgType, usesFrom
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getEntityType

public EntityType getEntityType()
Returns the entity type.


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

getObject

public java.lang.Object getObject(AmberConnection aConn,
                                  java.sql.ResultSet rs,
                                  int index)
                           throws java.sql.SQLException
Returns the object for the expr.

Specified by:
getObject in interface AmberExpr
Overrides:
getObject in class AbstractAmberExpr
Throws:
java.sql.SQLException

getCacheObject

public java.lang.Object getCacheObject(AmberConnection aConn,
                                       java.sql.ResultSet rs,
                                       int index)
                                throws java.sql.SQLException
Returns the object for the expr.

Specified by:
getCacheObject in interface AmberExpr
Overrides:
getCacheObject in class AbstractAmberExpr
Throws:
java.sql.SQLException

getCacheObject

public java.lang.Object getCacheObject(AmberConnection aConn,
                                       java.sql.ResultSet rs,
                                       int index,
                                       java.util.Map<AmberExpr,java.lang.String> joinFetchMap)
                                throws java.sql.SQLException
Returns the object for the expr.

Throws:
java.sql.SQLException

findItem

public EntityItem findItem(AmberConnection aConn,
                           java.sql.ResultSet rs,
                           int index)
                    throws java.sql.SQLException
Returns the object for the expr.

Specified by:
findItem in interface AmberExpr
Overrides:
findItem in class AbstractAmberExpr
Throws:
java.sql.SQLException

findItem

public EntityItem findItem(AmberConnection aConn,
                           java.sql.ResultSet rs,
                           int index,
                           java.util.Map<AmberExpr,java.lang.String> joinFetchMap)
                    throws java.sql.SQLException
Returns the object for the expr.

Throws:
java.sql.SQLException