|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectdk.eobjects.metamodel.query.FromItem
public class FromItem
Represents a FROM item. FROM items can take different forms:
FromClause,
Serialized Form| Constructor Summary | |
|---|---|
FromItem(JoinType join,
FromItem leftSide,
FromItem rightSide,
SelectItem[] leftOn,
SelectItem[] rightOn)
Constructor for advanced join types with custom relationships |
|
FromItem(JoinType join,
Relationship relationship)
Constructor for join FROM clauses that join two tables using their relationship. |
|
FromItem(Query subQuery)
Constructor for sub-query FROM clauses |
|
FromItem(java.lang.String expression)
Creates a single unvalidated from item based on a expression. |
|
FromItem(Table table)
Constructor for table FROM clauses |
|
| Method Summary | |
|---|---|
protected FromItem |
clone()
|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getAlias()
|
java.lang.String |
getAlias(Table table)
Gets the alias of a table, if it is registered (and visible, ie. |
java.lang.String |
getExpression()
|
JoinType |
getJoin()
|
SelectItem[] |
getLeftOn()
|
FromItem |
getLeftSide()
|
Query |
getQuery()
|
SelectItem[] |
getRightOn()
|
FromItem |
getRightSide()
|
java.lang.String |
getSameQueryAlias()
|
Query |
getSubQuery()
|
Table |
getTable()
|
FromItem |
setAlias(java.lang.String alias)
|
IQueryItem |
setQuery(Query query)
|
java.lang.String |
toString()
|
java.lang.String |
toStringNoAlias()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FromItem(Table table)
public FromItem(Query subQuery)
subQuery - the subquery to use
public FromItem(JoinType join,
Relationship relationship)
join - the join type to userelationship - the relationship to use for joining the tables
public FromItem(JoinType join,
FromItem leftSide,
FromItem rightSide,
SelectItem[] leftOn,
SelectItem[] rightOn)
join - the join type to useleftSide - the left side of the joinrightSide - the right side of the joinleftOn - what left-side select items to use for the ON clauserightOn - what right-side select items to use for the ON clausepublic FromItem(java.lang.String expression)
expression - An expression to use for the from item, for example
"MYTABLE".| Method Detail |
|---|
public java.lang.String getAlias()
public java.lang.String getSameQueryAlias()
public FromItem setAlias(java.lang.String alias)
public Table getTable()
public Query getSubQuery()
public JoinType getJoin()
public FromItem getLeftSide()
public FromItem getRightSide()
public SelectItem[] getLeftOn()
public SelectItem[] getRightOn()
public java.lang.String getExpression()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toStringNoAlias()
public java.lang.String getAlias(Table table)
table - the table to get the alias for
public Query getQuery()
getQuery in interface IQueryItempublic IQueryItem setQuery(Query query)
setQuery in interface IQueryItemprotected FromItem clone()
clone in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||