This commit is contained in:
温少
2012-03-14 14:02:18 +08:00
parent 649e51505d
commit b266a9c820
7 changed files with 40 additions and 17 deletions
@@ -35,6 +35,10 @@ public class SQLDeleteStatement extends SQLStatementImpl {
public SQLExprTableSource getTableSource() {
return tableSource;
}
public void setTableSource(SQLExpr expr) {
this.setTableSource(new SQLExprTableSource(expr));
}
public void setTableSource(SQLExprTableSource tableSource) {
this.tableSource = tableSource;
@@ -45,7 +49,7 @@ public class SQLDeleteStatement extends SQLStatementImpl {
}
public void setTableName(SQLName tableName) {
this.tableSource = new SQLExprTableSource(tableName);
this.setTableSource(new SQLExprTableSource(tableName));
}
public void setTableName(String name) {
@@ -39,6 +39,10 @@ public class SQLUpdateStatement extends SQLStatementImpl {
public SQLTableSource getTableSource() {
return tableSource;
}
public void setTableSource(SQLExpr expr) {
this.setTableSource(new SQLExprTableSource(expr));
}
public void setTableSource(SQLTableSource tableSource) {
this.tableSource = tableSource;