sql parser refactor

This commit is contained in:
温少
2012-05-16 15:03:08 +08:00
parent 2b2b4a5873
commit bdc1649c15
5 changed files with 12 additions and 4 deletions
@@ -5,7 +5,7 @@ import java.util.List;
import com.alibaba.druid.sql.ast.SQLStatementImpl;
public class SQLAlterTableStatement extends SQLStatementImpl {
public class SQLAlterTableStatement extends SQLStatementImpl implements SQLDDLStatement {
private static final long serialVersionUID = 1L;
@@ -23,7 +23,7 @@ import com.alibaba.druid.sql.ast.SQLStatementImpl;
import com.alibaba.druid.sql.visitor.SQLASTVisitor;
@SuppressWarnings("serial")
public class SQLCreateTableStatement extends SQLStatementImpl {
public class SQLCreateTableStatement extends SQLStatementImpl implements SQLDDLStatement {
protected Type type;
protected SQLExprTableSource tableSource;
@@ -23,7 +23,7 @@ import com.alibaba.druid.sql.ast.SQLName;
import com.alibaba.druid.sql.ast.SQLStatementImpl;
import com.alibaba.druid.sql.visitor.SQLASTVisitor;
public class SQLCreateViewStatement extends SQLStatementImpl {
public class SQLCreateViewStatement extends SQLStatementImpl implements SQLDDLStatement {
private static final long serialVersionUID = 1L;
protected SQLName name;
@@ -0,0 +1,8 @@
package com.alibaba.druid.sql.ast.statement;
import com.alibaba.druid.sql.ast.SQLStatement;
public interface SQLDDLStatement extends SQLStatement {
}
@@ -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 SQLDropTableStatement extends SQLStatementImpl {
public class SQLDropTableStatement extends SQLStatementImpl implements SQLDDLStatement {
private static final long serialVersionUID = 1L;