Interface RuleDefinitionCreateUpdater<T extends org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement,R extends RuleConfiguration>

Type Parameters:
T - type of SQL statement
R - type of rule configuration
All Superinterfaces:
RuleDefinitionUpdater<T,R>, org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI

public interface RuleDefinitionCreateUpdater<T extends org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement,R extends RuleConfiguration> extends RuleDefinitionUpdater<T,R>
Create rule definition updater.
  • Method Details

    • buildToBeCreatedRuleConfiguration

      RuleConfiguration buildToBeCreatedRuleConfiguration(R currentRuleConfig, T sqlStatement)
      Build to be created rule configuration.
      Parameters:
      currentRuleConfig - current rule configuration to be updated
      sqlStatement - SQL statement
      Returns:
      built to be created rule configuration
    • updateCurrentRuleConfiguration

      void updateCurrentRuleConfiguration(R currentRuleConfig, R toBeCreatedRuleConfig)
      Update current rule configuration.
      Parameters:
      currentRuleConfig - current rule configuration to be updated
      toBeCreatedRuleConfig - to be created rule configuration