All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.zodiac.datasource.jdbc.config.DataSourceRuleInfo Maven / Gradle / Ivy

The newest version!
package org.zodiac.datasource.jdbc.config;

import java.util.Properties;

public class DataSourceRuleInfo {

    /*单库单表规则*/
    private final SingleRuleInfo single = new SingleRuleInfo();

    /*分库分表配置规则*/
    private final ShardingRuleInfo sharding = new ShardingRuleInfo();

    /*主从配置规则*/
    private final MasterSlaveRuleInfo masterSlave = new MasterSlaveRuleInfo();

    /*数据脱敏规则*/
    private final EncryptRuleInfo encrypt = new EncryptRuleInfo();

    /*扩展属性*/
    private final Properties props = new Properties();

    public DataSourceRuleInfo() {
        super();
    }

    public SingleRuleInfo getSingle() {
        return single;
    }

    public ShardingRuleInfo getSharding() {
        return sharding;
    }

    public MasterSlaveRuleInfo getMasterSlave() {
        return masterSlave;
    }

    public EncryptRuleInfo getEncrypt() {
        return encrypt;
    }

    public Properties getProps() {
        return props;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy