import java.util.Map;
final class TableFactory {
Table newInstance(Connection con, TranslateTableBean translateTableBean) {
TranslatingStrategyAware translater = translateTableBean.getTranslater();
String tableDb = translater.getPropertyTranslatingStrategy().translate(translateTableBean.getType().getSimpleName());
String tableCode = translater.getDbTranslatingStrategy().translate(tableDb);
return new Table(
tableCode,
tableDb,
generateInfo(fetchPrimaryKeys(con, tableDb), translater),