mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Refactor internals no effective change - reorder methods of SqlTreeNodeManyRoot
This commit is contained in:
@@ -18,14 +18,9 @@ final class SqlTreeNodeManyRoot extends SqlTreeNodeBean {
|
||||
this.manyProp = prop;
|
||||
}
|
||||
|
||||
/**
|
||||
* Append the property columns to the buffer.
|
||||
*/
|
||||
@Override
|
||||
public void appendDistinctOn(DbSqlContext ctx, boolean subQuery) {
|
||||
ctx.pushTableAlias(prefix);
|
||||
appendSelectId(ctx, idBinder.getBeanProperty());
|
||||
ctx.popTableAlias();
|
||||
public boolean hasMany() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -41,6 +36,15 @@ final class SqlTreeNodeManyRoot extends SqlTreeNodeBean {
|
||||
return detailBean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Append the property columns to the buffer.
|
||||
*/
|
||||
@Override
|
||||
public void appendDistinctOn(DbSqlContext ctx, boolean subQuery) {
|
||||
ctx.pushTableAlias(prefix);
|
||||
appendSelectId(ctx, idBinder.getBeanProperty());
|
||||
ctx.popTableAlias();
|
||||
}
|
||||
|
||||
/**
|
||||
* append extraWhere to the join.
|
||||
@@ -64,9 +68,4 @@ final class SqlTreeNodeManyRoot extends SqlTreeNodeBean {
|
||||
public void appendFrom(DbSqlContext ctx, SqlJoinType joinType) {
|
||||
super.appendFrom(ctx, joinType.autoToOuter());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasMany() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user