fixed java doc error

This commit is contained in:
高铁
2016-02-16 15:24:39 +08:00
parent b5151848b7
commit a0214cce74
142 changed files with 207 additions and 412 deletions
@@ -26,9 +26,7 @@ import com.alibaba.druid.sql.dialect.mysql.ast.statement.MySqlStatementImpl;
import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;
/**
*
* @Description: MySql procedure Case statement
* @author zz email:455910092@qq.com
* @version V1.0
* @author zz [455910092@qq.com]
*/
public class MySqlCaseStatement extends MySqlStatementImpl{
@@ -20,10 +20,7 @@ import com.alibaba.druid.sql.dialect.mysql.ast.statement.MySqlStatementImpl;
import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;
/**
*
* @Description: MySql cursor declare statement
* @author zz email:455910092@qq.com
* @date 2015-9-14
* @version V1.0
* @author zz [455910092@qq.com]
*/
public class MySqlCursorDeclareStatement extends MySqlStatementImpl{
@@ -23,10 +23,7 @@ import com.alibaba.druid.sql.dialect.mysql.ast.statement.MySqlStatementImpl;
import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;
/**
* @Description: MySql declare statement
* @author zz email:455910092@qq.com
* @date 2015-9-14
* @version V1.0
* @author zz [455910092@qq.com]
*/
public class MySqlDeclareStatement extends MySqlStatementImpl {
@@ -20,10 +20,7 @@ import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;
/**
*
* @Description: MySql procedure iterate statement
* @author zz email:455910092@qq.com
* @date 2015-9-14
* @version V1.0
* @author zz [455910092@qq.com]
*/
public class MySqlIterateStatement extends MySqlStatementImpl {
@@ -20,10 +20,7 @@ import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;
/**
*
* @Description: MySql procedure leave statement
* @author zz email:455910092@qq.com
* @date 2015-9-14
* @version V1.0
* @author zz [455910092@qq.com]
*/
public class MySqlLeaveStatement extends MySqlStatementImpl {
@@ -25,10 +25,7 @@ import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;
/**
*
* @Description: MySql procedure repeat statement
* @author zz email:455910092@qq.com
* @date 2015-9-14
* @version V1.0
* @author zz [455910092@qq.com]
*/
public class MySqlRepeatStatement extends MySqlStatementImpl {
@@ -24,10 +24,7 @@ import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;
import com.alibaba.druid.sql.ast.SQLExpr;
/**
*
* @Description: MySql procedure select into statement
* @author zz email:455910092@qq.com
* @date 2015-9-14
* @version V1.0
* @author zz [455910092@qq.com]
*/
public class MySqlSelectIntoStatement extends MySqlStatementImpl{
@@ -26,10 +26,7 @@ import com.alibaba.druid.sql.dialect.mysql.ast.statement.MySqlUpdateStatement;
/**
*
* @Description: MySql procedure statement type
* @author zz email:455910092@qq.com
* @date 2015-9-14
* @version V1.0
* @author zz [455910092@qq.com]
*/
public enum MySqlStatementType {
//select statement
@@ -25,10 +25,7 @@ import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;
/**
*
* @Description: MySql procedure while statement
* @author zz email:455910092@qq.com
* @date 2015-9-14
* @version V1.0
* @author zz [455910092@qq.com]
*/
public class MySqlWhileStatement extends MySqlStatementImpl {
@@ -20,73 +20,56 @@ import java.util.List;
import com.alibaba.druid.sql.ast.SQLStatement;
/**
*
* @Description: MySql procedure executor
* @author zz email:455910092@qq.com
* @date 2015-9-14
* @version V1.0
* @author zz [455910092@qq.com]
*/
public class MySqlProcedureExecutor {
public static int executeStatements(List<SQLStatement> list)
{
return 0;
}
public static int executeStatement(SQLStatement stmt)
{
return 0;
}
public static int executeIf(SQLStatement stmt)
{
return 0;
}
public static int executeWhile(SQLStatement stmt)
{
return 0;
}
public static int executeLoop(SQLStatement stmt)
{
return 0;
}
public static int executeCase(SQLStatement stmt)
{
return 0;
}
public static int executeAssign(SQLStatement stmt)
{
return 0;
}
public static int executeOpen(SQLStatement stmt)
{
return 0;
}
public static int executeFetch(SQLStatement stmt)
{
return 0;
}
public static int executeClose(SQLStatement stmt)
{
return 0;
}
public static int executeSQL(SQLStatement stmt)
{
return 0;
}
public static int executeFunction(SQLStatement stmt)
{
return 0;
}
public static int executeStatements(List<SQLStatement> list) {
return 0;
}
public static int executeStatement(SQLStatement stmt) {
return 0;
}
public static int executeIf(SQLStatement stmt) {
return 0;
}
public static int executeWhile(SQLStatement stmt) {
return 0;
}
public static int executeLoop(SQLStatement stmt) {
return 0;
}
public static int executeCase(SQLStatement stmt) {
return 0;
}
public static int executeAssign(SQLStatement stmt) {
return 0;
}
public static int executeOpen(SQLStatement stmt) {
return 0;
}
public static int executeFetch(SQLStatement stmt) {
return 0;
}
public static int executeClose(SQLStatement stmt) {
return 0;
}
public static int executeSQL(SQLStatement stmt) {
return 0;
}
public static int executeFunction(SQLStatement stmt) {
return 0;
}
}
@@ -45,10 +45,7 @@ import com.alibaba.druid.sql.parser.Token;
/**
*
* @Description: parse select into statement
* @author zz email:455910092@qq.com
* @date 2015-9-14
* @version V1.0
* @author zz [455910092@qq.com]
*/
public class MySqlSelectIntoParser extends SQLSelectParser {
private List<SQLExpr> argsList;
@@ -91,9 +91,6 @@ public class OracleExprParser extends SQLExprParser {
public boolean allowStringAdditive = false;
/**
* @formatter:off
*/
public static final String[] AGGREGATE_FUNCTIONS = {
"AVG", //
"CORR", //
@@ -70,10 +70,7 @@ public class SQLServerExecStatement extends SQLServerObjectImpl implements SQLSe
/**
*
* @Description: SQLServer execute Parameter statement
* @author zz email:455910092@qq.com
* @date 2015-9-20
* @version V1.0
* @author zz [455910092@qq.com]
*/
public static class SQLServerParameter extends SQLServerObjectImpl
{
@@ -128,40 +128,36 @@ public class SQLServerStatementParser extends SQLStatementParser {
}
/**
* SQLServer parse Parameter statement support out type
* @author zz email:455910092@qq.com
* @date 2015-9-20
* @author zz [455910092@qq.com]
*/
public void parseExecParameter(Collection<SQLServerParameter> exprCol, SQLObject parent)
{
if (lexer.token() == Token.RPAREN || lexer.token() == Token.RBRACKET) {
public void parseExecParameter(Collection<SQLServerParameter> exprCol, SQLObject parent) {
if (lexer.token() == Token.RPAREN || lexer.token() == Token.RBRACKET) {
return;
}
if (lexer.token() == Token.EOF) {
return;
}
SQLServerParameter param=new SQLServerParameter();
SQLExpr expr=this.exprParser.expr();
SQLServerParameter param = new SQLServerParameter();
SQLExpr expr = this.exprParser.expr();
expr.setParent(parent);
param.setExpr(expr);
if(lexer.token()==Token.OUT)
{
param.setType(true);
accept(Token.OUT);
}
if (lexer.token() == Token.OUT) {
param.setType(true);
accept(Token.OUT);
}
exprCol.add(param);
while (lexer.token() == Token.COMMA) {
lexer.nextToken();
param=new SQLServerParameter();
expr=this.exprParser.expr();
lexer.nextToken();
param = new SQLServerParameter();
expr = this.exprParser.expr();
expr.setParent(parent);
param.setExpr(expr);
if(lexer.token()==Token.OUT)
{
param.setType(true);
accept(Token.OUT);
}
exprCol.add(param);
if (lexer.token() == Token.OUT) {
param.setType(true);
accept(Token.OUT);
}
exprCol.add(param);
}
}