mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improve sqlwall
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user