|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.semarchy.mdm.runtime.model.dataaccess.FromClause
public class FromClause
Represents a generic SQL from clause.
The from clause can either be:
from [table_name] [alias] [joins to other tables or sub-queries]*Or
from ( [sub-query SQL select statement] ) [alias] [joins to other tables or sub-queries]*
The isSubQueryClause()
method indicates whether one should get information from either getTableName()
or from getSubQuerySQL()
Constructor Summary | |
---|---|
FromClause(boolean pSubQueryClause)
Creates a from clause (either based on a table or based on a sub query) |
Method Summary | |
---|---|
void |
addJoinClause(JoinClause pJoinClause)
adds a join clause to the base driving table |
List<JoinClause> |
getJoinClauses()
|
String |
getSubQuerySQL()
|
String |
getTableAlias()
|
String |
getTableName()
|
boolean |
isSubQueryClause()
|
void |
setSubQuerySQL(String pSubQuerySQL)
Sets the sub query Select statement clause. |
void |
setTableAlias(String pTableAlias)
Sets the table alias |
void |
setTableName(String pTableName)
Set the table name of this from clause |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FromClause(boolean pSubQueryClause)
pSubQueryClause
- if set to true, indicates that this from clause is based on a sub-queryMethod Detail |
---|
public String getTableName()
public String getTableAlias()
public List<JoinClause> getJoinClauses()
public void addJoinClause(JoinClause pJoinClause)
pJoinClause
- public boolean isSubQueryClause()
public String getSubQuerySQL()
isSubQueryClause()
to figure out)public void setSubQuerySQL(String pSubQuerySQL)
pSubQuerySQL
- select statement to set
RuntimeException
- a runtime exception if the from clause was not built with isSubQueryClause()
set to truepublic void setTableName(String pTableName)
pTableName
- table name to set
RuntimeException
- a runtime exception if the from clause was not built with isSubQueryClause()
set to falsepublic void setTableAlias(String pTableAlias)
pTableAlias
- table alias to use for the sub-query or table in this from clause
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |