com.caucho.amber.query
Class FromItem

java.lang.Object
  extended by com.caucho.amber.query.FromItem

public class FromItem
extends java.lang.Object


Method Summary
 PathExpr getCollectionExpr()
          Gets the id expr.
 AmberEntityHome getEntityHome()
          Returns the entity home.
 EntityType getEntityType()
          Gets the entity class.
 IdExpr getIdExpr()
          Gets the id expr.
 int getIndex()
          Gets the index within the cartesian product for the item.
 JoinExpr getJoinExpr()
          Gets the join expr.
 java.lang.String getName()
          Returns the from item's name.
 AbstractQuery getQuery()
          Returns the owning query.
 AmberTable getTable()
          Returns the table.
 EntityType getTableType()
          Gets the table type
 boolean isEntityType()
          Returns true if there is an entity type.
 boolean isInnerJoin()
          Returns true if the from has no outer join.
 boolean isOuterJoin()
          Returns true if the from needs an outer join.
 boolean isUsed()
          Returns true if the from is used.
 void setCollectionExpr(PathExpr collectionExpr)
          Sets the collection expr.
 void setIdExpr(IdExpr idExpr)
          Sets the id expr.
 void setJoinExpr(JoinExpr joinExpr)
          Sets the join expr.
 void setJoinSemantics(com.caucho.amber.query.FromItem.JoinSemantics joinSemantics)
          Sets the join semantics.
 void setOuterJoin(boolean isOuterJoin)
          Sets the join semantics to OUTER (true) or INNER (false).
 void setQuery(AbstractQuery query)
          Sets the owning query.
 void setTable(AmberTable table)
          Sets the table.
 void setUsed(boolean isUsed)
          Returns true if the from is used.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

setIdExpr

public void setIdExpr(IdExpr idExpr)
Sets the id expr.


getIdExpr

public IdExpr getIdExpr()
Gets the id expr.


setCollectionExpr

public void setCollectionExpr(PathExpr collectionExpr)
Sets the collection expr.


getCollectionExpr

public PathExpr getCollectionExpr()
Gets the id expr.


getQuery

public AbstractQuery getQuery()
Returns the owning query.


setQuery

public void setQuery(AbstractQuery query)
Sets the owning query.


getName

public java.lang.String getName()
Returns the from item's name.


getEntityType

public EntityType getEntityType()
Gets the entity class.


getTableType

public EntityType getTableType()
Gets the table type


getTable

public AmberTable getTable()
Returns the table.


isEntityType

public boolean isEntityType()
Returns true if there is an entity type.


setTable

public void setTable(AmberTable table)
Sets the table.


setJoinExpr

public void setJoinExpr(JoinExpr joinExpr)
Sets the join expr.


isUsed

public boolean isUsed()
Returns true if the from is used.


setUsed

public void setUsed(boolean isUsed)
Returns true if the from is used.


isInnerJoin

public boolean isInnerJoin()
Returns true if the from has no outer join.


isOuterJoin

public boolean isOuterJoin()
Returns true if the from needs an outer join.


setJoinSemantics

public void setJoinSemantics(com.caucho.amber.query.FromItem.JoinSemantics joinSemantics)
Sets the join semantics.


setOuterJoin

public void setOuterJoin(boolean isOuterJoin)
Sets the join semantics to OUTER (true) or INNER (false).


getJoinExpr

public JoinExpr getJoinExpr()
Gets the join expr.


getEntityHome

public AmberEntityHome getEntityHome()
Returns the entity home.


getIndex

public int getIndex()
Gets the index within the cartesian product for the item.


toString

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