public class SqlTreeNodeExtraJoin extends Object implements SqlTreeNode
This is used to support the where clause or order by clause that refers to properties that are NOT included in the select. To support the where clause etc in this case we must add an extra join.
| Constructor and Description |
|---|
SqlTreeNodeExtraJoin(String prefix,
BeanPropertyAssoc<?> assocBeanProperty) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(SqlTreeNodeExtraJoin child) |
void |
appendFrom(DbSqlContext ctx,
boolean forceOuterJoin)
Append to the FROM part of the sql.
|
void |
appendSelect(DbSqlContext ctx,
boolean subQuery)
Does nothing.
|
void |
appendWhere(DbSqlContext ctx)
Does nothing.
|
void |
buildSelectExpressionChain(List<String> selectChain) |
String |
getName() |
boolean |
isManyJoin()
Return true if the extra join is a many join.
|
void |
load(DbReadContext ctx,
Object parentBean)
Does nothing.
|
public SqlTreeNodeExtraJoin(String prefix, BeanPropertyAssoc<?> assocBeanProperty)
public void buildSelectExpressionChain(List<String> selectChain)
buildSelectExpressionChain in interface SqlTreeNodepublic boolean isManyJoin()
This means we need to add distinct to the sql query.
public String getName()
public void addChild(SqlTreeNodeExtraJoin child)
public void appendFrom(DbSqlContext ctx, boolean forceOuterJoin)
SqlTreeNodeappendFrom in interface SqlTreeNodepublic void appendSelect(DbSqlContext ctx, boolean subQuery)
appendSelect in interface SqlTreeNodepublic void appendWhere(DbSqlContext ctx)
appendWhere in interface SqlTreeNodepublic void load(DbReadContext ctx, Object parentBean) throws SQLException
load in interface SqlTreeNodeSQLExceptionCopyright © 2014. All Rights Reserved.