public class JoinClause extends Object
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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
|
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 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 setRuntimeException
- a runtime exception if the join clause was not built with isSubQueryClause()
set to truepublic void setTableName(String pTableName)
pTableName
- table name to setRuntimeException
- 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 clauseCopyright © 2019. All rights reserved.