Class CreateDatabaseDiscoveryRuleStatementUpdater

java.lang.Object
org.apache.shardingsphere.dbdiscovery.distsql.handler.update.CreateDatabaseDiscoveryRuleStatementUpdater
All Implemented Interfaces:
org.apache.shardingsphere.infra.distsql.update.RuleDefinitionCreateUpdater<CreateDatabaseDiscoveryRuleStatement,org.apache.shardingsphere.dbdiscovery.api.config.DatabaseDiscoveryRuleConfiguration>, org.apache.shardingsphere.infra.distsql.update.RuleDefinitionUpdater<CreateDatabaseDiscoveryRuleStatement,org.apache.shardingsphere.dbdiscovery.api.config.DatabaseDiscoveryRuleConfiguration>, org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI

public final class CreateDatabaseDiscoveryRuleStatementUpdater extends Object implements org.apache.shardingsphere.infra.distsql.update.RuleDefinitionCreateUpdater<CreateDatabaseDiscoveryRuleStatement,org.apache.shardingsphere.dbdiscovery.api.config.DatabaseDiscoveryRuleConfiguration>
Create database discovery rule statement updater.
  • Constructor Details

    • CreateDatabaseDiscoveryRuleStatementUpdater

      public CreateDatabaseDiscoveryRuleStatementUpdater()
  • Method Details

    • checkSQLStatement

      public void checkSQLStatement(org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabase database, CreateDatabaseDiscoveryRuleStatement sqlStatement, org.apache.shardingsphere.dbdiscovery.api.config.DatabaseDiscoveryRuleConfiguration currentRuleConfig)
      Specified by:
      checkSQLStatement in interface org.apache.shardingsphere.infra.distsql.update.RuleDefinitionUpdater<CreateDatabaseDiscoveryRuleStatement,org.apache.shardingsphere.dbdiscovery.api.config.DatabaseDiscoveryRuleConfiguration>
    • buildToBeCreatedRuleConfiguration

      public org.apache.shardingsphere.dbdiscovery.api.config.DatabaseDiscoveryRuleConfiguration buildToBeCreatedRuleConfiguration(CreateDatabaseDiscoveryRuleStatement sqlStatement)
      Specified by:
      buildToBeCreatedRuleConfiguration in interface org.apache.shardingsphere.infra.distsql.update.RuleDefinitionCreateUpdater<CreateDatabaseDiscoveryRuleStatement,org.apache.shardingsphere.dbdiscovery.api.config.DatabaseDiscoveryRuleConfiguration>
    • updateCurrentRuleConfiguration

      public void updateCurrentRuleConfiguration(org.apache.shardingsphere.dbdiscovery.api.config.DatabaseDiscoveryRuleConfiguration currentRuleConfig, org.apache.shardingsphere.dbdiscovery.api.config.DatabaseDiscoveryRuleConfiguration toBeCreatedRuleConfig)
      Specified by:
      updateCurrentRuleConfiguration in interface org.apache.shardingsphere.infra.distsql.update.RuleDefinitionCreateUpdater<CreateDatabaseDiscoveryRuleStatement,org.apache.shardingsphere.dbdiscovery.api.config.DatabaseDiscoveryRuleConfiguration>
    • getRuleConfigurationClass

      public Class<org.apache.shardingsphere.dbdiscovery.api.config.DatabaseDiscoveryRuleConfiguration> getRuleConfigurationClass()
      Specified by:
      getRuleConfigurationClass in interface org.apache.shardingsphere.infra.distsql.update.RuleDefinitionUpdater<CreateDatabaseDiscoveryRuleStatement,org.apache.shardingsphere.dbdiscovery.api.config.DatabaseDiscoveryRuleConfiguration>
    • getType

      public String getType()
      Specified by:
      getType in interface org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI