Interface RuleDefinitionUpdater<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:
org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI
All Known Subinterfaces:
RuleDefinitionAlterUpdater<T,R>, RuleDefinitionCreateUpdater<T,R>, RuleDefinitionDropUpdater<T,R>

public interface RuleDefinitionUpdater<T extends org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement,R extends RuleConfiguration> extends org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI
Rule definition updater.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    checkSQLStatement(ShardingSphereDatabase database, T sqlStatement, R currentRuleConfig)
    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(ShardingSphereDatabase database, T sqlStatement, R currentRuleConfig)
      Check SQL statement.
      Parameters:
      database - database
      sqlStatement - SQL statement
      currentRuleConfig - current rule configuration
    • getRuleConfigurationClass

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