PageUtils SQL Server support

This commit is contained in:
wenshao
2013-07-26 07:40:46 +08:00
parent 4546dd2a5b
commit 19358f2294
5 changed files with 71 additions and 6 deletions
@@ -29,6 +29,12 @@ public class SQLOrderBy extends SQLObjectImpl {
public SQLOrderBy(){
}
public SQLOrderBy(SQLExpr expr) {
SQLSelectOrderByItem item = new SQLSelectOrderByItem(expr);
item.setParent(this);
this.items.add(item);
}
public List<SQLSelectOrderByItem> getItems() {
return this.items;
@@ -31,12 +31,19 @@ public class SQLSelectOrderByItem extends SQLObjectImpl {
public SQLSelectOrderByItem(){
}
public SQLSelectOrderByItem(SQLExpr expr){
this.setExpr(expr);
}
public SQLExpr getExpr() {
return this.expr;
}
public void setExpr(SQLExpr expr) {
if (expr != null) {
expr.setParent(this);
}
this.expr = expr;
}