|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.semarchy.mdm.runtime.model.dataaccess.JoinClause
public class JoinClause
Represent a SQL join hierarchy
Constructor Summary | |
---|---|
JoinClause(boolean pSubQueryClause,
String pJoinCondition,
JoinType pJoinType)
Creates a join clause object |
|
JoinClause(String pTableName,
String pTableAlias,
String pJoinCondition,
JoinType pJoinType)
Creates a join clause object |
Method Summary | |
---|---|
void |
addJoinClause(JoinClause pJoinClause)
adds a join clause to this join clause |
List<JoinClause> |
getJoinClauses()
|
String |
getJoinCondition()
|
JoinType |
getJoinType()
|
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 JoinClause(String pTableName, String pTableAlias, String pJoinCondition, JoinType pJoinType)
pTableName
- joined tablepTableAlias
- joined alias in the join conditionpJoinCondition
- join condition SQLpJoinType
- type of joinpublic JoinClause(boolean pSubQueryClause, String pJoinCondition, JoinType pJoinType)
pSubQueryClause
- indicates whether this join clause is based on a sub-query or notpJoinCondition
- join condition SQLpJoinType
- type of joinMethod Detail |
---|
public String getTableAlias()
public String getTableName()
public String getJoinCondition()
public JoinType getJoinType()
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 join clause was not built with isSubQueryClause()
set to truepublic void setTableName(String pTableName)
pTableName
- table name to set
RuntimeException
- a runtime exception if the join 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 join clause
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |