| Modifier and Type | Method and Description |
|---|---|
SQLStatement |
SQLJudgeEngine.judge()
Judge SQL type only.
|
SQLStatement |
SQLParsingEngine.parse(boolean useCache)
Parse SQL.
|
SQLStatement |
EncryptSQLParsingEngine.parse(boolean useCache,
String sql)
Parse SQL.
|
| Modifier and Type | Method and Description |
|---|---|
SQLStatement |
AntlrParsingEngine.parse() |
| Modifier and Type | Method and Description |
|---|---|
SQLStatement |
SQLStatementFillerEngine.fill(Collection<SQLSegment> sqlSegments,
SQLStatementRule rule)
Fill SQL statement.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SQLSegmentFiller.fill(T sqlSegment,
SQLStatement sqlStatement)
Fill for sharding SQL segment to SQL statement.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ShowParamFiller.fill(ShowParamSegment sqlSegment,
SQLStatement sqlStatement) |
| Modifier and Type | Method and Description |
|---|---|
void |
ColumnDefinitionFiller.fill(ColumnDefinitionSegment sqlSegment,
SQLStatement sqlStatement) |
void |
ConstraintDefinitionFiller.fill(ConstraintDefinitionSegment sqlSegment,
SQLStatement sqlStatement) |
void |
IndexFiller.fill(IndexSegment sqlSegment,
SQLStatement sqlStatement) |
| Modifier and Type | Method and Description |
|---|---|
void |
AddColumnDefinitionFiller.fill(AddColumnDefinitionSegment sqlSegment,
SQLStatement sqlStatement) |
void |
DropColumnDefinitionFiller.fill(DropColumnDefinitionSegment sqlSegment,
SQLStatement sqlStatement) |
void |
DropPrimaryKeyFiller.fill(DropPrimaryKeySegment sqlSegment,
SQLStatement sqlStatement) |
void |
ModifyColumnDefinitionFiller.fill(ModifyColumnDefinitionSegment sqlSegment,
SQLStatement sqlStatement) |
void |
RenameColumnDefinitionFiller.fill(RenameColumnSegment sqlSegment,
SQLStatement sqlStatement) |
void |
RenameTableFiller.fill(RenameTableSegment sqlSegment,
SQLStatement sqlStatement) |
| Modifier and Type | Method and Description |
|---|---|
void |
InsertColumnsFiller.fill(InsertColumnsSegment sqlSegment,
SQLStatement sqlStatement) |
| Modifier and Type | Method and Description |
|---|---|
void |
GroupByFiller.fill(GroupBySegment sqlSegment,
SQLStatement sqlStatement) |
void |
LimitFiller.fill(LimitSegment sqlSegment,
SQLStatement sqlStatement) |
void |
OrderByFiller.fill(OrderBySegment sqlSegment,
SQLStatement sqlStatement) |
void |
SelectClauseFiller.fill(SelectClauseSegment sqlSegment,
SQLStatement sqlStatement) |
void |
SelectItemFiller.fill(SQLSegment sqlSegment,
SQLStatement sqlStatement) |
void |
SubqueryFiller.fill(SubquerySegment sqlSegment,
SQLStatement sqlStatement) |
| Modifier and Type | Method and Description |
|---|---|
void |
SetAutoCommitFiller.fill(SQLSegment sqlSegment,
SQLStatement sqlStatement) |
| Modifier and Type | Method and Description |
|---|---|
void |
EncryptTableFiller.fill(TableSegment sqlSegment,
SQLStatement sqlStatement) |
| Modifier and Type | Method and Description |
|---|---|
void |
EncryptFromWhereFiller.fill(FromWhereSegment sqlSegment,
SQLStatement sqlStatement) |
void |
EncryptDeleteFromWhereFiller.fill(FromWhereSegment sqlSegment,
SQLStatement sqlStatement) |
void |
EncryptUpdateSetWhereFiller.fill(FromWhereSegment sqlSegment,
SQLStatement sqlStatement) |
void |
EncryptOrConditionFiller.fill(OrConditionSegment sqlSegment,
SQLStatement sqlStatement) |
void |
EncryptSetAssignmentsFiller.fill(SetAssignmentsSegment sqlSegment,
SQLStatement sqlStatement) |
| Modifier and Type | Method and Description |
|---|---|
void |
EncryptInsertValuesFiller.fill(InsertValuesSegment sqlSegment,
SQLStatement sqlStatement) |
| Modifier and Type | Method and Description |
|---|---|
void |
ShardingTableFiller.fill(TableSegment sqlSegment,
SQLStatement sqlStatement) |
| Modifier and Type | Method and Description |
|---|---|
OrCondition |
OrConditionFiller.buildCondition(OrConditionSegment sqlSegment,
SQLStatement sqlStatement,
ShardingRule shardingRule,
ShardingTableMetaData shardingTableMetaData)
Build condition.
|
void |
FromWhereFiller.fill(FromWhereSegment sqlSegment,
SQLStatement sqlStatement) |
void |
DeleteFromWhereFiller.fill(FromWhereSegment sqlSegment,
SQLStatement sqlStatement) |
void |
UpdateSetWhereFiller.fill(FromWhereSegment sqlSegment,
SQLStatement sqlStatement) |
void |
OrConditionFiller.fill(OrConditionSegment sqlSegment,
SQLStatement sqlStatement) |
void |
SetAssignmentsFiller.fill(SetAssignmentsSegment sqlSegment,
SQLStatement sqlStatement) |
| Modifier and Type | Method and Description |
|---|---|
void |
InsertValuesFiller.fill(InsertValuesSegment sqlSegment,
SQLStatement sqlStatement) |
void |
OnDuplicateKeyColumnsFiller.fill(OnDuplicateKeyColumnsSegment sqlSegment,
SQLStatement sqlStatement) |
| Modifier and Type | Method and Description |
|---|---|
void |
SubqueryConditionFiller.fill(SubqueryConditionSegment sqlSegment,
SQLStatement sqlStatement) |
| Modifier and Type | Method and Description |
|---|---|
void |
SQLStatementOptimizerEngine.optimize(SQLStatementRule rule,
SQLStatement sqlStatement)
Optimize SQL statement.
|
void |
SQLStatementOptimizer.optimize(SQLStatement sqlStatement,
ShardingTableMetaData shardingTableMetaData)
Optimize SQL statement.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractSQLStatement
SQL statement abstract class.
|
class |
GeneralSQLStatement
General SQL statement.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DALStatement
DAL statement.
|
class |
SetStatement
Set statement.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DCLStatement
DCL statement.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AlterTableStatement
Alter table statement.
|
class |
CreateTableStatement
Create table statement.
|
class |
DDLStatement
DDL statement.
|
class |
DropTableStatement
Drop table statement.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DMLStatement
DML statement.
|
class |
DQLStatement
DQL statement.
|
class |
InsertStatement
Insert statement.
|
class |
SelectStatement
Select statement.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BeginTransactionStatement
Begin transaction statement.
|
class |
CommitStatement
Commit statement.
|
class |
RollbackStatement
Rollback statement.
|
class |
SavepointStatement
Savepoint statement.
|
class |
SetAutoCommitStatement
Set auto commit statement.
|
class |
SetTransactionStatement
Set transaction statement.
|
class |
TCLStatement
Transaction Control Language statement.
|
| Modifier and Type | Method and Description |
|---|---|
SQLStatement |
ParsingResultCache.getSQLStatement(String sql)
Get SQL statement.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ParsingResultCache.put(String sql,
SQLStatement sqlStatement)
Put SQL and parsing result into cache.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ParsingHook.finishSuccess(SQLStatement sqlStatement,
ShardingTableMetaData shardingTableMetaData)
Handle when parse finished success.
|
void |
SPIParsingHook.finishSuccess(SQLStatement sqlStatement,
ShardingTableMetaData shardingTableMetaData) |
| Modifier and Type | Method and Description |
|---|---|
String |
LexerEngine.skipParentheses(SQLStatement sqlStatement)
skip all tokens that inside parentheses.
|
| Modifier and Type | Method and Description |
|---|---|
void |
WhereClauseParser.parse(ShardingRule shardingRule,
SQLStatement sqlStatement,
List<SelectItem> items)
Parse where.
|
void |
TableReferencesClauseParser.parse(SQLStatement sqlStatement,
boolean isSingleTableOnly)
Parse table references.
|
void |
TableReferencesClauseParser.parseSingleTableWithoutAlias(SQLStatement sqlStatement)
Parse single table without alias.
|
protected void |
TableReferencesClauseParser.parseTableFactor(SQLStatement sqlStatement,
boolean isSingleTableOnly) |
protected void |
TableReferencesClauseParser.parseTableReference(SQLStatement sqlStatement,
boolean isSingleTableOnly)
Parse table references.
|
| Modifier and Type | Method and Description |
|---|---|
SQLExpression |
BasicExpressionParser.parse(SQLStatement sqlStatement)
Parse expression.
|
com.google.common.base.Optional<String> |
AliasExpressionParser.parseTableAlias(SQLStatement sqlStatement,
boolean setTableToken,
String tableName)
Parse alias for table.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
MySQLTableReferencesClauseParser.parseTableReference(SQLStatement sqlStatement,
boolean isSingleTableOnly) |
| Modifier and Type | Class and Description |
|---|---|
class |
DescribeStatement
Describe statement.
|
class |
ShowColumnsStatement
Show columns statement.
|
class |
ShowCreateTableStatement
Show create table statement.
|
class |
ShowDatabasesStatement
Show databases statement.
|
class |
ShowIndexStatement
Show columns statement.
|
class |
ShowOtherStatement
Other show statement.
|
class |
ShowTablesStatement
Show tables statement.
|
class |
ShowTableStatusStatement
Show table status statement.
|
class |
UseStatement
Use statement.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
OracleTableReferencesClauseParser.parseTableReference(SQLStatement sqlStatement,
boolean isSingleTableOnly) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
PostgreSQLTableReferencesClauseParser.parseTableReference(SQLStatement sqlStatement,
boolean isSingleTableOnly) |
| Modifier and Type | Class and Description |
|---|---|
class |
ResetParamStatement
Reset param statement.
|
class |
SetParamStatement
Set param statement.
|
class |
ShowStatement
Show statement.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
SQLServerTableReferencesClauseParser.parseTableReference(SQLStatement sqlStatement,
boolean isSingleTableOnly) |
| Modifier and Type | Method and Description |
|---|---|
SQLStatement |
SQLParser.parse()
Parse SQL.
|
Copyright © 2019 The Apache Software Foundation. All rights reserved.