private DBIdentifier makeName(String rule, DBIdentifier name, Table tbl, String prefix) { DBIdentifier sName = DBIdentifier.removeLeading(name, IdentifierUtil.UNDERSCORE); String tableName = tbl.getIdentifier().getName(); int len = Math.min(tableName.length(), 7); // Combine the names using the normalized configuration. String str = combineNames(Normalizer.getNamingConfiguration(), rule, new String[] { prefix == null ? "" : prefix, shorten(tableName, len), sName.getName() }); sName.setName(str); return sName; }
private DBIdentifier makeName(String rule, DBIdentifier name, Table tbl, String prefix) { DBIdentifier sName = DBIdentifier.removeLeading(name, IdentifierUtil.UNDERSCORE); String tableName = tbl.getIdentifier().getName(); int len = Math.min(tableName.length(), 7); // Combine the names using the normalized configuration. String str = combineNames(Normalizer.getNamingConfiguration(), rule, new String[] { prefix == null ? "" : prefix, shorten(tableName, len), sName.getName() }); sName.setName(str); return sName; }
private DBIdentifier makeName(String rule, DBIdentifier name, Table tbl, String prefix) { DBIdentifier sName = DBIdentifier.removeLeading(name, IdentifierUtil.UNDERSCORE); String tableName = tbl.getIdentifier().getName(); int len = Math.min(tableName.length(), 7); // Combine the names using the normalized configuration. String str = combineNames(Normalizer.getNamingConfiguration(), rule, new String[] { prefix == null ? "" : prefix, shorten(tableName, len), sName.getName() }); sName.setName(str); return sName; }
private DBIdentifier makeName(String rule, DBIdentifier name, Table tbl, String prefix) { DBIdentifier sName = DBIdentifier.removeLeading(name, IdentifierUtil.UNDERSCORE); String tableName = tbl.getIdentifier().getName(); int len = Math.min(tableName.length(), 7); // Combine the names using the normalized configuration. String str = combineNames(Normalizer.getNamingConfiguration(), rule, new String[] { prefix == null ? "" : prefix, shorten(tableName, len), sName.getName() }); sName.setName(str); return sName; }