public class SQLSelectParser extends SQLParser
| 限定符和类型 | 字段和说明 |
|---|---|
protected SQLExprParser |
exprParser |
protected SQLSelectListCache |
selectListCache |
| 构造器和说明 |
|---|
SQLSelectParser(Lexer lexer) |
SQLSelectParser(SQLExprParser exprParser) |
SQLSelectParser(SQLExprParser exprParser,
SQLSelectListCache selectListCache) |
SQLSelectParser(String sql) |
accept, acceptIdentifier, acceptInteger, alias, as, config, getDbType, getLexer, identifierEquals, isEnabled, match, newCreateStatement, printError, setErrorEndPos, tableAlias, tableAliasprotected SQLExprParser exprParser
protected SQLSelectListCache selectListCache
public SQLSelectParser(String sql)
public SQLSelectParser(Lexer lexer)
public SQLSelectParser(SQLExprParser exprParser)
public SQLSelectParser(SQLExprParser exprParser, SQLSelectListCache selectListCache)
public SQLSelect select()
protected SQLUnionQuery createSQLUnionQuery()
public SQLUnionQuery unionRest(SQLUnionQuery union)
public SQLSelectQuery queryRest(SQLSelectQuery selectQuery)
public SQLSelectQuery queryRest(SQLSelectQuery selectQuery, boolean acceptUnion)
private void setToLeft(SQLSelectQuery selectQuery, SQLUnionQuery parentUnion, SQLUnionQuery union, SQLSelectQuery right)
public SQLSelectQuery query()
public SQLSelectQuery query(SQLObject parent)
public SQLSelectQuery query(SQLObject parent, boolean acceptUnion)
protected SQLSelectQuery valuesQuery(boolean acceptUnion)
protected void withSubquery(SQLSelect select)
public SQLWithSubqueryClause parseWith()
public void parseWhere(SQLSelectQueryBlock queryBlock)
protected void parseSortBy(SQLSelectQueryBlock queryBlock)
protected void parseWindow(SQLSelectQueryBlock queryBlock)
protected void parseGroupBy(SQLSelectQueryBlock queryBlock)
protected SQLExpr parseGroupByItem()
protected void parseSelectList(SQLSelectQueryBlock queryBlock)
public void parseFrom(SQLSelectQueryBlock queryBlock)
public SQLTableSource parseTableSource()
protected void parseTableSourceQueryTableExpr(SQLExprTableSource tableReference)
protected SQLTableSource primaryTableSourceRest(SQLTableSource tableSource)
protected SQLTableSource parseTableSourceRest(SQLTableSource tableSource)
public SQLExpr expr()
public SQLOrderBy parseOrderBy()
public void acceptKeyword(String ident)
public void parseFetchClause(SQLSelectQueryBlock queryBlock)
protected void parseHierachical(SQLSelectQueryBlock queryBlock)
protected SQLTableSource parseLateralView(SQLTableSource tableSource)
public SQLValuesTableSource parseValues()
Copyright © 2013–2019 Alibaba Group. All rights reserved.