类 DefaultShardingStrategy

  • 所有已实现的接口:
    ShardingStrategy, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

    public class DefaultShardingStrategy
    extends Object
    implements ShardingStrategy, org.springframework.context.ApplicationContextAware
    版本:
    v1.0,Date: 2017年1月3日
    作者:
    zhongxuchen
    • 构造器详细资料

      • DefaultShardingStrategy

        public DefaultShardingStrategy()
    • 方法详细资料

      • setApplicationContext

        @Autowired
        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
        指定者:
        setApplicationContext 在接口中 org.springframework.context.ApplicationContextAware
      • setDataSourceWeight

        public void setDataSourceWeight​(Map<String,​Integer> dataSourceWeight)
        参数:
        dataSourceWeight - the dataSourceWeight to set
      • setCheckSeconds

        public void setCheckSeconds​(int checkSeconds)
        参数:
        checkSeconds - the checkSeconds to set
      • setTableNamesMap

        public void setTableNamesMap​(Map<String,​String> tableMap)
        参数:
        tableMap - the tableNamesMap to set
      • setDays

        public void setDays​(String days)
        参数:
        days - the days to set
      • setDateParams

        public void setDateParams​(String dateParams)
        参数:
        dateParams - the dateParams to set