mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved WallFilter support. issue #1923
This commit is contained in:
@@ -19,7 +19,7 @@ import com.alibaba.druid.sql.ast.SQLName;
|
||||
import com.alibaba.druid.sql.ast.SQLStatementImpl;
|
||||
import com.alibaba.druid.sql.visitor.SQLASTVisitor;
|
||||
|
||||
public class SQLAlterDatabaseStatement extends SQLStatementImpl {
|
||||
public class SQLAlterDatabaseStatement extends SQLStatementImpl implements SQLAlterStatement {
|
||||
|
||||
private SQLName name;
|
||||
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
package com.alibaba.druid.sql.ast.statement;
|
||||
|
||||
import com.alibaba.druid.sql.ast.SQLStatement;
|
||||
|
||||
public interface SQLAlterStatement extends SQLStatement {
|
||||
}
|
||||
@@ -28,7 +28,7 @@ import com.alibaba.druid.sql.ast.expr.SQLIdentifierExpr;
|
||||
import com.alibaba.druid.sql.ast.expr.SQLPropertyExpr;
|
||||
import com.alibaba.druid.sql.visitor.SQLASTVisitor;
|
||||
|
||||
public class SQLAlterTableStatement extends SQLStatementImpl implements SQLDDLStatement {
|
||||
public class SQLAlterTableStatement extends SQLStatementImpl implements SQLDDLStatement, SQLAlterStatement {
|
||||
|
||||
private SQLExprTableSource tableSource;
|
||||
private List<SQLAlterTableItem> items = new ArrayList<SQLAlterTableItem>();
|
||||
|
||||
@@ -19,7 +19,7 @@ import com.alibaba.druid.sql.ast.SQLName;
|
||||
import com.alibaba.druid.sql.ast.SQLStatementImpl;
|
||||
import com.alibaba.druid.sql.visitor.SQLASTVisitor;
|
||||
|
||||
public class SQLAlterViewRenameStatement extends SQLStatementImpl {
|
||||
public class SQLAlterViewRenameStatement extends SQLStatementImpl implements SQLAlterStatement {
|
||||
|
||||
private SQLName name;
|
||||
private SQLName to;
|
||||
|
||||
@@ -22,7 +22,7 @@ import com.alibaba.druid.sql.ast.SQLName;
|
||||
import com.alibaba.druid.sql.ast.SQLStatementImpl;
|
||||
import com.alibaba.druid.sql.visitor.SQLASTVisitor;
|
||||
|
||||
public class SQLCreateDatabaseStatement extends SQLStatementImpl {
|
||||
public class SQLCreateDatabaseStatement extends SQLStatementImpl implements SQLCreateStatement {
|
||||
|
||||
private SQLName name;
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ import java.util.List;
|
||||
/**
|
||||
* Created by wenshao on 23/05/2017.
|
||||
*/
|
||||
public class SQLCreateFunctionStatement extends SQLStatementImpl implements SQLDDLStatement {
|
||||
public class SQLCreateFunctionStatement extends SQLStatementImpl implements SQLCreateStatement {
|
||||
private SQLName definer;
|
||||
|
||||
private boolean create = true;
|
||||
|
||||
@@ -25,7 +25,7 @@ import com.alibaba.druid.sql.ast.expr.SQLIdentifierExpr;
|
||||
import com.alibaba.druid.sql.ast.expr.SQLPropertyExpr;
|
||||
import com.alibaba.druid.sql.visitor.SQLASTVisitor;
|
||||
|
||||
public class SQLCreateIndexStatement extends SQLStatementImpl implements SQLDDLStatement {
|
||||
public class SQLCreateIndexStatement extends SQLStatementImpl implements SQLCreateStatement {
|
||||
|
||||
private SQLName name;
|
||||
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ import java.util.List;
|
||||
/**
|
||||
* Created by wenshao on 30/06/2017.
|
||||
*/
|
||||
public class SQLCreateMaterializedViewStatement extends SQLStatementImpl implements OracleSegmentAttributes {
|
||||
public class SQLCreateMaterializedViewStatement extends SQLStatementImpl implements OracleSegmentAttributes, SQLCreateStatement {
|
||||
private SQLName name;
|
||||
private List<SQLName> columns = new ArrayList<SQLName>();
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ import com.alibaba.druid.sql.ast.SQLStatement;
|
||||
import com.alibaba.druid.sql.ast.SQLStatementImpl;
|
||||
import com.alibaba.druid.sql.visitor.SQLASTVisitor;
|
||||
|
||||
public class SQLCreateProcedureStatement extends SQLStatementImpl {
|
||||
public class SQLCreateProcedureStatement extends SQLStatementImpl implements SQLCreateStatement {
|
||||
|
||||
private SQLName definer;
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ import com.alibaba.druid.sql.visitor.SQLASTVisitor;
|
||||
/**
|
||||
* Created by wenshao on 16/9/14.
|
||||
*/
|
||||
public class SQLCreateSequenceStatement extends SQLStatementImpl implements SQLDDLStatement {
|
||||
public class SQLCreateSequenceStatement extends SQLStatementImpl implements SQLCreateStatement {
|
||||
private SQLName name;
|
||||
|
||||
private SQLExpr startWith;
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
package com.alibaba.druid.sql.ast.statement;
|
||||
|
||||
import com.alibaba.druid.sql.ast.SQLStatement;
|
||||
|
||||
public interface SQLCreateStatement extends SQLDDLStatement {
|
||||
}
|
||||
@@ -31,7 +31,7 @@ import com.alibaba.druid.sql.visitor.SQLASTVisitor;
|
||||
import com.alibaba.druid.util.ListDG;
|
||||
import com.alibaba.druid.util.lang.Consumer;
|
||||
|
||||
public class SQLCreateTableStatement extends SQLStatementImpl implements SQLDDLStatement {
|
||||
public class SQLCreateTableStatement extends SQLStatementImpl implements SQLDDLStatement, SQLCreateStatement {
|
||||
|
||||
protected boolean ifNotExiists = false;
|
||||
protected Type type;
|
||||
|
||||
@@ -23,7 +23,7 @@ import com.alibaba.druid.sql.ast.SQLStatement;
|
||||
import com.alibaba.druid.sql.ast.SQLStatementImpl;
|
||||
import com.alibaba.druid.sql.visitor.SQLASTVisitor;
|
||||
|
||||
public class SQLCreateTriggerStatement extends SQLStatementImpl {
|
||||
public class SQLCreateTriggerStatement extends SQLStatementImpl implements SQLCreateStatement {
|
||||
|
||||
private SQLName name;
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ import com.alibaba.druid.sql.ast.expr.SQLLiteralExpr;
|
||||
import com.alibaba.druid.sql.ast.expr.SQLPropertyExpr;
|
||||
import com.alibaba.druid.sql.visitor.SQLASTVisitor;
|
||||
|
||||
public class SQLCreateViewStatement extends SQLStatementImpl implements SQLDDLStatement {
|
||||
public class SQLCreateViewStatement extends SQLStatementImpl implements SQLCreateStatement {
|
||||
|
||||
private boolean orReplace = false;
|
||||
private boolean force = false;
|
||||
|
||||
@@ -19,7 +19,7 @@ import com.alibaba.druid.sql.ast.SQLExpr;
|
||||
import com.alibaba.druid.sql.ast.SQLStatementImpl;
|
||||
import com.alibaba.druid.sql.visitor.SQLASTVisitor;
|
||||
|
||||
public class SQLDropDatabaseStatement extends SQLStatementImpl implements SQLDDLStatement {
|
||||
public class SQLDropDatabaseStatement extends SQLStatementImpl implements SQLDropStatement {
|
||||
|
||||
private SQLExpr database;
|
||||
private boolean ifExists;
|
||||
|
||||
@@ -19,7 +19,7 @@ import com.alibaba.druid.sql.ast.SQLName;
|
||||
import com.alibaba.druid.sql.ast.SQLStatementImpl;
|
||||
import com.alibaba.druid.sql.visitor.SQLASTVisitor;
|
||||
|
||||
public class SQLDropFunctionStatement extends SQLStatementImpl implements SQLDDLStatement {
|
||||
public class SQLDropFunctionStatement extends SQLStatementImpl implements SQLDropStatement {
|
||||
|
||||
private SQLName name;
|
||||
private boolean ifExists;
|
||||
|
||||
@@ -20,7 +20,7 @@ import com.alibaba.druid.sql.ast.SQLName;
|
||||
import com.alibaba.druid.sql.ast.SQLStatementImpl;
|
||||
import com.alibaba.druid.sql.visitor.SQLASTVisitor;
|
||||
|
||||
public class SQLDropIndexStatement extends SQLStatementImpl implements SQLDDLStatement {
|
||||
public class SQLDropIndexStatement extends SQLStatementImpl implements SQLDropStatement {
|
||||
|
||||
private SQLName indexName;
|
||||
private SQLExprTableSource tableName;
|
||||
|
||||
@@ -19,7 +19,7 @@ import com.alibaba.druid.sql.ast.SQLName;
|
||||
import com.alibaba.druid.sql.ast.SQLStatementImpl;
|
||||
import com.alibaba.druid.sql.visitor.SQLASTVisitor;
|
||||
|
||||
public class SQLDropProcedureStatement extends SQLStatementImpl implements SQLDDLStatement {
|
||||
public class SQLDropProcedureStatement extends SQLStatementImpl implements SQLDropStatement {
|
||||
|
||||
private SQLName name;
|
||||
private boolean ifExists;
|
||||
|
||||
@@ -20,7 +20,7 @@ import com.alibaba.druid.sql.ast.SQLStatementImpl;
|
||||
import com.alibaba.druid.sql.ast.expr.SQLPropertyExpr;
|
||||
import com.alibaba.druid.sql.visitor.SQLASTVisitor;
|
||||
|
||||
public class SQLDropSequenceStatement extends SQLStatementImpl implements SQLDDLStatement {
|
||||
public class SQLDropSequenceStatement extends SQLStatementImpl implements SQLDropStatement {
|
||||
|
||||
private SQLName name;
|
||||
private boolean ifExists;
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
package com.alibaba.druid.sql.ast.statement;
|
||||
|
||||
public interface SQLDropStatement extends SQLDDLStatement {
|
||||
}
|
||||
@@ -19,7 +19,7 @@ import com.alibaba.druid.sql.ast.SQLName;
|
||||
import com.alibaba.druid.sql.ast.SQLStatementImpl;
|
||||
import com.alibaba.druid.sql.visitor.SQLASTVisitor;
|
||||
|
||||
public class SQLDropTableSpaceStatement extends SQLStatementImpl implements SQLDDLStatement {
|
||||
public class SQLDropTableSpaceStatement extends SQLStatementImpl implements SQLDropStatement {
|
||||
|
||||
private SQLName name;
|
||||
private boolean ifExists;
|
||||
|
||||
@@ -24,7 +24,7 @@ import com.alibaba.druid.sql.ast.SQLStatementImpl;
|
||||
import com.alibaba.druid.sql.ast.expr.SQLPropertyExpr;
|
||||
import com.alibaba.druid.sql.visitor.SQLASTVisitor;
|
||||
|
||||
public class SQLDropTableStatement extends SQLStatementImpl implements SQLDDLStatement {
|
||||
public class SQLDropTableStatement extends SQLStatementImpl implements SQLDropStatement {
|
||||
private List<SQLCommentHint> hints;
|
||||
|
||||
protected List<SQLExprTableSource> tableSources = new ArrayList<SQLExprTableSource>();
|
||||
|
||||
@@ -19,7 +19,7 @@ import com.alibaba.druid.sql.ast.SQLName;
|
||||
import com.alibaba.druid.sql.ast.SQLStatementImpl;
|
||||
import com.alibaba.druid.sql.visitor.SQLASTVisitor;
|
||||
|
||||
public class SQLDropTriggerStatement extends SQLStatementImpl implements SQLDDLStatement {
|
||||
public class SQLDropTriggerStatement extends SQLStatementImpl implements SQLDropStatement {
|
||||
|
||||
private SQLName name;
|
||||
private boolean ifExists;
|
||||
|
||||
@@ -22,7 +22,7 @@ import com.alibaba.druid.sql.ast.SQLExpr;
|
||||
import com.alibaba.druid.sql.ast.SQLStatementImpl;
|
||||
import com.alibaba.druid.sql.visitor.SQLASTVisitor;
|
||||
|
||||
public class SQLDropUserStatement extends SQLStatementImpl implements SQLDDLStatement {
|
||||
public class SQLDropUserStatement extends SQLStatementImpl implements SQLDropStatement {
|
||||
|
||||
private List<SQLExpr> users = new ArrayList<SQLExpr>(2);
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ import com.alibaba.druid.sql.ast.SQLName;
|
||||
import com.alibaba.druid.sql.ast.SQLStatementImpl;
|
||||
import com.alibaba.druid.sql.visitor.SQLASTVisitor;
|
||||
|
||||
public class SQLDropViewStatement extends SQLStatementImpl implements SQLDDLStatement {
|
||||
public class SQLDropViewStatement extends SQLStatementImpl implements SQLDropStatement {
|
||||
|
||||
protected List<SQLExprTableSource> tableSources = new ArrayList<SQLExprTableSource>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user