Class MySqlSelectParser
- java.lang.Object
-
- com.alibaba.druid.sql.parser.SQLParser
-
- com.alibaba.druid.sql.parser.SQLSelectParser
-
- com.alibaba.druid.sql.dialect.mysql.parser.MySqlSelectParser
-
public class MySqlSelectParser extends SQLSelectParser
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanreturningFlagprotected MySqlUpdateStatementupdateStmt-
Fields inherited from class com.alibaba.druid.sql.parser.SQLSelectParser
exprParser, selectListCache
-
-
Constructor Summary
Constructors Constructor Description MySqlSelectParser(SQLExprParser exprParser)MySqlSelectParser(SQLExprParser exprParser, SQLSelectListCache selectListCache)MySqlSelectParser(String sql)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MySqlExprParsergetExprParser()voidparseFrom(SQLSelectQueryBlock queryBlock)protected voidparseInto(SQLSelectQueryBlock queryBlock)SQLTableSourceparseTableSource()SQLTableSourceparseTableSource(SQLObject parent)SQLTableSourceparseTableSourceRest(SQLTableSource tableSource)protected MySqlUpdateStatementparseUpdateStatment()protected SQLTableSourceprimaryTableSourceRest(SQLTableSource tableSource)SQLSelectQueryquery(SQLObject parent, boolean acceptUnion)SQLUnionQueryunionRest(SQLUnionQuery union)-
Methods inherited from class com.alibaba.druid.sql.parser.SQLSelectParser
acceptKeyword, afterParseFetchClause, afterParseLimitClause, createSelectQueryBlock, createSQLUnionQuery, expr, getReturningFunctions, getTableSource, parseAfterOrderBy, parseAfterTableSourceRest, parseBeforeSelectList, parseFetchClause, parseGeneratedTableSource, parseGroupBy, parseGroupByItem, parseHierachical, parseJoinHint, parseLateralView, parseLateralViewAs, parseOrderBy, parseOrderByWith, parsePivot, parsePivotIn, parseSelectList, parseSelectListFromError, parseSortBy, parseTableSource, parseTableSourceQueryTableExpr, parseTableSourceSample, parseTableSourceSampleHive, parseTop, parseUnnestTableSource, parseValues, parseWhere, parseWindow, parseWith, qualify, query, query, queryBefore, queryRest, queryRest, querySelectListBefore, select, valuesQuery, withSubquery
-
Methods inherited from class com.alibaba.druid.sql.parser.SQLParser
accept, acceptIdentifier, acceptIdentifier, acceptInteger, alias, as, config, dialectFeatureEnabled, getDbType, getLexer, getTimeZone, identifierEquals, isEnabled, match, newCreateStatement, printError, setErrorEndPos, setTimeZone, tableAlias, tableAlias
-
-
-
-
Field Detail
-
returningFlag
protected boolean returningFlag
-
updateStmt
protected MySqlUpdateStatement updateStmt
-
-
Constructor Detail
-
MySqlSelectParser
public MySqlSelectParser(SQLExprParser exprParser)
-
MySqlSelectParser
public MySqlSelectParser(SQLExprParser exprParser, SQLSelectListCache selectListCache)
-
MySqlSelectParser
public MySqlSelectParser(String sql)
-
-
Method Detail
-
parseFrom
public void parseFrom(SQLSelectQueryBlock queryBlock)
- Overrides:
parseFromin classSQLSelectParser
-
query
public SQLSelectQuery query(SQLObject parent, boolean acceptUnion)
- Overrides:
queryin classSQLSelectParser
-
parseTableSource
public SQLTableSource parseTableSource()
- Overrides:
parseTableSourcein classSQLSelectParser
-
parseTableSource
public SQLTableSource parseTableSource(SQLObject parent)
-
parseUpdateStatment
protected MySqlUpdateStatement parseUpdateStatment()
-
parseInto
protected void parseInto(SQLSelectQueryBlock queryBlock)
-
primaryTableSourceRest
protected SQLTableSource primaryTableSourceRest(SQLTableSource tableSource)
- Overrides:
primaryTableSourceRestin classSQLSelectParser
-
parseTableSourceRest
public SQLTableSource parseTableSourceRest(SQLTableSource tableSource)
- Overrides:
parseTableSourceRestin classSQLSelectParser
-
unionRest
public SQLUnionQuery unionRest(SQLUnionQuery union)
- Overrides:
unionRestin classSQLSelectParser
-
getExprParser
public MySqlExprParser getExprParser()
-
-