use of com.dangdang.ddframe.rdb.sharding.id.generator.IdGenerator in project sharding-jdbc by dangdangdotcom.
the class TableRule method fillIdGenerator.
void fillIdGenerator(final Class<? extends IdGenerator> idGeneratorClass) {
for (Map.Entry<String, IdGenerator> each : autoIncrementColumnMap.entrySet()) {
if (null == each.getValue()) {
IdGenerator idGenerator = TableRuleBuilder.instanceIdGenerator(idGeneratorClass);
each.setValue(idGenerator);
}
}
}
Aggregations