Interface RuleDefinitionAlterUpdater<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 RuleDefinitionAlterUpdater<T extends org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement,R extends RuleConfiguration> extends RuleDefinitionUpdater<T,R>
Alter rule rule definition updater.
  • Method Details

    • buildToBeAlteredRuleConfiguration

      RuleConfiguration buildToBeAlteredRuleConfiguration(T sqlStatement)
      Build to be altered rule configuration.
      Parameters:
      sqlStatement - SQL statement
      Returns:
      built to be altered rule configuration
    • updateCurrentRuleConfiguration

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