Class AlterShadowRuleStatementUpdater
java.lang.Object
org.apache.shardingsphere.shadow.distsql.handler.update.AlterShadowRuleStatementUpdater
- All Implemented Interfaces:
org.apache.shardingsphere.infra.distsql.update.RuleDefinitionAlterUpdater<AlterShadowRuleStatement,,ShadowRuleConfiguration> org.apache.shardingsphere.infra.distsql.update.RuleDefinitionUpdater<AlterShadowRuleStatement,,ShadowRuleConfiguration> org.apache.shardingsphere.spi.type.typed.TypedSPI
public final class AlterShadowRuleStatementUpdater
extends Object
implements org.apache.shardingsphere.infra.distsql.update.RuleDefinitionAlterUpdater<AlterShadowRuleStatement,ShadowRuleConfiguration>
Alter shadow rule statement updater.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.shardingsphere.infra.config.RuleConfigurationbuildToBeAlteredRuleConfiguration(AlterShadowRuleStatement sqlStatement) voidcheckSQLStatement(org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabase database, AlterShadowRuleStatement sqlStatement, ShadowRuleConfiguration currentRuleConfig) getType()voidupdateCurrentRuleConfiguration(ShadowRuleConfiguration currentRuleConfig, ShadowRuleConfiguration toBeAlteredRuleConfig) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.shardingsphere.spi.type.typed.TypedSPI
getTypeAliases
-
Constructor Details
-
AlterShadowRuleStatementUpdater
public AlterShadowRuleStatementUpdater()
-
-
Method Details
-
buildToBeAlteredRuleConfiguration
public org.apache.shardingsphere.infra.config.RuleConfiguration buildToBeAlteredRuleConfiguration(AlterShadowRuleStatement sqlStatement) - Specified by:
buildToBeAlteredRuleConfigurationin interfaceorg.apache.shardingsphere.infra.distsql.update.RuleDefinitionAlterUpdater<AlterShadowRuleStatement,ShadowRuleConfiguration>
-
updateCurrentRuleConfiguration
public void updateCurrentRuleConfiguration(ShadowRuleConfiguration currentRuleConfig, ShadowRuleConfiguration toBeAlteredRuleConfig) - Specified by:
updateCurrentRuleConfigurationin interfaceorg.apache.shardingsphere.infra.distsql.update.RuleDefinitionAlterUpdater<AlterShadowRuleStatement,ShadowRuleConfiguration>
-
checkSQLStatement
public void checkSQLStatement(org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabase database, AlterShadowRuleStatement sqlStatement, ShadowRuleConfiguration currentRuleConfig) throws org.apache.shardingsphere.infra.distsql.exception.DistSQLException - Specified by:
checkSQLStatementin interfaceorg.apache.shardingsphere.infra.distsql.update.RuleDefinitionUpdater<AlterShadowRuleStatement,ShadowRuleConfiguration> - Throws:
org.apache.shardingsphere.infra.distsql.exception.DistSQLException
-
getRuleConfigurationClass
- Specified by:
getRuleConfigurationClassin interfaceorg.apache.shardingsphere.infra.distsql.update.RuleDefinitionUpdater<AlterShadowRuleStatement,ShadowRuleConfiguration>
-
getType
- Specified by:
getTypein interfaceorg.apache.shardingsphere.spi.type.typed.TypedSPI
-