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

All Superinterfaces:
org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI

public interface GlobalRuleRALUpdater<T extends org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement,R extends RuleConfiguration> extends org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI
RAL updater for global rule.
  • Method Summary

    Modifier and Type
    Method
    Description
    buildAlteredRuleConfiguration(R currentRuleConfig, T sqlStatement)
    Build altered rule configuration.
    void
    checkSQLStatement(R currentRuleConfig, T sqlStatement)
    Check SQL statement.
    Get rule configuration class.

    Methods inherited from interface org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI

    getType, getTypeAliases, init, isDefault
  • Method Details

    • checkSQLStatement

      void checkSQLStatement(R currentRuleConfig, T sqlStatement)
      Check SQL statement.
      Parameters:
      currentRuleConfig - current rule configuration
      sqlStatement - SQL statement
    • buildAlteredRuleConfiguration

      RuleConfiguration buildAlteredRuleConfiguration(R currentRuleConfig, T sqlStatement)
      Build altered rule configuration.
      Parameters:
      currentRuleConfig - current rule configuration
      sqlStatement - SQL statement
      Returns:
      built altered rule configuration
    • getRuleConfigurationClass

      Class<R> getRuleConfigurationClass()
      Get rule configuration class.
      Returns:
      rule configuration class