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