public final class SchemaRulePersistService extends Object implements SchemaBasedPersistService<Collection<org.apache.shardingsphere.infra.config.RuleConfiguration>>
| 构造器和说明 |
|---|
SchemaRulePersistService() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
cache(String schemaName,
Collection<org.apache.shardingsphere.infra.config.RuleConfiguration> configs)
Cache configurations.
|
boolean |
isExisted(String schemaName)
Judge whether schema configuration existed.
|
Collection<org.apache.shardingsphere.infra.config.RuleConfiguration> |
load(String schemaName)
Load configurations.
|
void |
persist(String schemaName,
Collection<org.apache.shardingsphere.infra.config.RuleConfiguration> configs)
Persist configurations.
|
void |
persist(String schemaName,
Collection<org.apache.shardingsphere.infra.config.RuleConfiguration> configs,
boolean isOverwrite)
Persist configurations.
|
public void persist(String schemaName, Collection<org.apache.shardingsphere.infra.config.RuleConfiguration> configs, boolean isOverwrite)
SchemaBasedPersistServicepersist 在接口中 SchemaBasedPersistService<Collection<org.apache.shardingsphere.infra.config.RuleConfiguration>>schemaName - schema nameconfigs - configurationsisOverwrite - is overwritepublic void persist(String schemaName, Collection<org.apache.shardingsphere.infra.config.RuleConfiguration> configs)
SchemaBasedPersistServicepersist 在接口中 SchemaBasedPersistService<Collection<org.apache.shardingsphere.infra.config.RuleConfiguration>>schemaName - schema nameconfigs - configurationspublic Collection<org.apache.shardingsphere.infra.config.RuleConfiguration> load(String schemaName)
SchemaBasedPersistServiceload 在接口中 SchemaBasedPersistService<Collection<org.apache.shardingsphere.infra.config.RuleConfiguration>>schemaName - schema namepublic boolean isExisted(String schemaName)
SchemaBasedPersistServiceisExisted 在接口中 SchemaBasedPersistService<Collection<org.apache.shardingsphere.infra.config.RuleConfiguration>>schemaName - schema namepublic void cache(String schemaName, Collection<org.apache.shardingsphere.infra.config.RuleConfiguration> configs)
SchemaBasedPersistServicecache 在接口中 SchemaBasedPersistService<Collection<org.apache.shardingsphere.infra.config.RuleConfiguration>>schemaName - schema nameconfigs - configurationsCopyright © 2021 The Apache Software Foundation. All rights reserved.