mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
fixed java doc error
This commit is contained in:
+1
-3
@@ -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{
|
||||
|
||||
|
||||
+1
-4
@@ -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{
|
||||
|
||||
|
||||
+1
-4
@@ -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 {
|
||||
|
||||
|
||||
+1
-4
@@ -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 {
|
||||
|
||||
|
||||
+1
-4
@@ -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 {
|
||||
|
||||
|
||||
+1
-4
@@ -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 {
|
||||
|
||||
|
||||
+1
-4
@@ -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{
|
||||
|
||||
|
||||
+1
-4
@@ -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
|
||||
|
||||
+1
-4
@@ -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 {
|
||||
|
||||
|
||||
+50
-67
@@ -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", //
|
||||
|
||||
+1
-4
@@ -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
|
||||
{
|
||||
|
||||
+17
-21
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user