improve sqlwall

This commit is contained in:
kiki
2014-02-21 15:11:39 +08:00
parent 80ac7841ec
commit d9d6b2a29f
15 changed files with 105 additions and 26 deletions
@@ -35,6 +35,13 @@ public class SQLOrderBy extends SQLObjectImpl {
this.items.add(item);
}
public void addItem(SQLSelectOrderByItem item) {
if (item != null) {
item.setParent(this);
}
this.items.add(item);
}
public List<SQLSelectOrderByItem> getItems() {
return this.items;
}
@@ -51,4 +51,11 @@ public class SQLSelectGroupByClause extends SQLObjectImpl {
public List<SQLExpr> getItems() {
return this.items;
}
public void addItem(SQLExpr sqlExpr) {
if (sqlExpr != null) {
sqlExpr.setParent(this);
this.items.add(sqlExpr);
}
}
}