Modifier and Type | Method and Description |
---|---|
static DatabaseType |
DatabaseType.valueFrom(String databaseProductName)
Get database type enum via database name string.
|
static DatabaseType |
DatabaseType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DatabaseType[] |
DatabaseType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
protected DatabaseType |
AbstractDataSourceAdapter.getDatabaseType(Collection<DataSource> dataSources) |
Modifier and Type | Method and Description |
---|---|
static ShardingMetaDataHandler |
ShardingMetaDataHandlerFactory.newInstance(DataSource dataSource,
String actualTableName,
DatabaseType databaseType)
To generate table metadata handler by data type.
|
static ShardingMetaDataHandler |
ShardingMetaDataHandlerFactory.newInstance(String actualTableName,
DatabaseType databaseType)
To generate table metadata handler by existing sharding connection.
|
Modifier and Type | Method and Description |
---|---|
DatabaseType |
LexerEngine.getDatabaseType()
Get database type.
|
Modifier and Type | Method and Description |
---|---|
static LexerEngine |
LexerEngineFactory.newInstance(DatabaseType dbType,
String sql)
Create lexical analysis engine instance.
|
Constructor and Description |
---|
WhereClauseParser(DatabaseType databaseType,
LexerEngine lexerEngine) |
Modifier and Type | Method and Description |
---|---|
static SQLParser |
SQLParserFactory.newInstance(DatabaseType dbType,
TokenType tokenType,
ShardingRule shardingRule,
LexerEngine lexerEngine,
ShardingMetaData shardingMetaData)
Create SQL parser.
|
Modifier and Type | Method and Description |
---|---|
static AbstractDescribeParser |
DescribeParserFactory.newInstance(DatabaseType dbType,
ShardingRule shardingRule,
LexerEngine lexerEngine)
Create describe parser instance.
|
Modifier and Type | Method and Description |
---|---|
static AbstractShowParser |
ShowParserFactory.newInstance(DatabaseType dbType,
ShardingRule shardingRule,
LexerEngine lexerEngine)
Create show parser instance.
|
Modifier and Type | Method and Description |
---|---|
static AbstractUseParser |
UseParserFactory.newInstance(DatabaseType dbType,
ShardingRule shardingRule,
LexerEngine lexerEngine)
Create use parser instance.
|
Modifier and Type | Method and Description |
---|---|
static AbstractAlterParser |
AlterParserFactory.newInstance(DatabaseType dbType,
ShardingRule shardingRule,
LexerEngine lexerEngine)
Create alter parser instance.
|
Modifier and Type | Method and Description |
---|---|
static AbstractCreateParser |
CreateParserFactory.newInstance(DatabaseType dbType,
ShardingRule shardingRule,
LexerEngine lexerEngine)
Create create parser instance.
|
Modifier and Type | Method and Description |
---|---|
static AbstractDropParser |
DropParserFactory.newInstance(DatabaseType dbType,
ShardingRule shardingRule,
LexerEngine lexerEngine)
Create drop parser instance.
|
Modifier and Type | Method and Description |
---|---|
static AbstractTruncateParser |
TruncateParserFactory.newInstance(DatabaseType dbType,
ShardingRule shardingRule,
LexerEngine lexerEngine)
Create truncate parser instance.
|
Modifier and Type | Method and Description |
---|---|
static AbstractDeleteParser |
DeleteParserFactory.newInstance(DatabaseType dbType,
ShardingRule shardingRule,
LexerEngine lexerEngine)
Create delete parser instance.
|
Modifier and Type | Method and Description |
---|---|
static AbstractInsertParser |
InsertParserFactory.newInstance(DatabaseType dbType,
ShardingRule shardingRule,
LexerEngine lexerEngine,
ShardingMetaData shardingMetaData)
Create insert parser instance.
|
Modifier and Type | Method and Description |
---|---|
static AbstractUpdateParser |
UpdateParserFactory.newInstance(DatabaseType dbType,
ShardingRule shardingRule,
LexerEngine lexerEngine)
Create update parser instance.
|
Modifier and Type | Method and Description |
---|---|
static AbstractSelectParser |
SelectParserFactory.newInstance(DatabaseType dbType,
ShardingRule shardingRule,
LexerEngine lexerEngine,
ShardingMetaData shardingMetaData)
Create select parser instance.
|
Modifier and Type | Method and Description |
---|---|
static TCLParser |
TCLParserFactory.newInstance(DatabaseType dbType,
ShardingRule shardingRule,
LexerEngine lexerEngine)
Create TCL parser instance.
|
Constructor and Description |
---|
SQLRewriteEngine(ShardingRule shardingRule,
String originalSQL,
DatabaseType databaseType,
SQLStatement sqlStatement,
ShardingConditions shardingConditions,
List<Object> parameters)
Constructs SQL rewrite engine.
|
Constructor and Description |
---|
PreparedStatementRoutingEngine(String logicSQL,
ShardingRule shardingRule,
ShardingMetaData shardingMetaData,
DatabaseType databaseType,
boolean showSQL) |
StatementRoutingEngine(ShardingRule shardingRule,
ShardingMetaData shardingMetaData,
DatabaseType databaseType,
boolean showSQL) |
Modifier and Type | Method and Description |
---|---|
static ShardingRouter |
ShardingRouterFactory.createSQLRouter(ShardingRule shardingRule,
ShardingMetaData shardingMetaData,
DatabaseType databaseType,
boolean showSQL)
Create sharding router.
|
Modifier and Type | Method and Description |
---|---|
static String |
SQLUtil.getOriginalValue(String value,
DatabaseType databaseType)
Get original value for SQL expression.
|
Constructor and Description |
---|
SQLExecuteBackendHandler(String sql,
DatabaseType databaseType,
boolean showSQL) |
StatementExecuteBackendHandler(List<PreparedStatementParameter> preparedStatementParameters,
int statementId,
DatabaseType databaseType,
boolean showSQL) |
Modifier and Type | Method and Description |
---|---|
static FrontendHandler |
FrontendHandlerFactory.createFrontendHandlerInstance(DatabaseType databaseType,
EventLoopGroup userGroup)
Create frontend handler instance.
|
Modifier and Type | Method and Description |
---|---|
static PacketCodec |
PacketCodecFactory.createPacketCodecInstance(DatabaseType databaseType)
Create packet codec instance.
|
Copyright © 2018. All rights reserved.