/** * Converts the identifier to a format appropriate for the configuration using * the default naming rule. * @param delimit If false, do not delimit. Otherwise, delimit if necessary. */ public String toDBName(String name, boolean delimit) { return toDBName(getIdentifierConfiguration().getDefaultIdentifierRule().getName(), name, delimit); }
/** * Converts the identifier to a format appropriate for the configuration using * the default naming rule. * @param delimit If false, do not delimit. Otherwise, delimit if necessary. */ public String toDBName(String name, boolean delimit) { return toDBName(getIdentifierConfiguration().getDefaultIdentifierRule().getName(), name, delimit); }
/** * Converts the identifier to a format appropriate for the configuration using * the default naming rule. * @param delimit If false, do not delimit. Otherwise, delimit if necessary. */ public String toDBName(String name, boolean delimit) { return toDBName(getIdentifierConfiguration().getDefaultIdentifierRule().getName(), name, delimit); }
/** * Converts the identifier to a format appropriate for the configuration using * the default naming rule. * @param delimit If false, do not delimit. Otherwise, delimit if necessary. */ public String toDBName(String name, boolean delimit) { return toDBName(getIdentifierConfiguration().getDefaultIdentifierRule().getName(), name, delimit); }
/** * Converts a column alias to use the appropriate delimiters */ public String convertAlias(String alias) { if (!needsConversion(getIdentifierConfiguration())) { return alias; } String[] names = Normalizer.splitName(alias); if (names.length <= 1) { // Nothing to split return alias; } // Skip the the first name. It is the alias (T0, T1, etc.) for (int i = 1; i < names.length; i++) { names[i] = toDBName(getIdentifierConfiguration().getDefaultIdentifierRule().toString(), names[i], true); } return joinNames(getIdentifierConfiguration().getDefaultIdentifierRule(), names); }
/** * Converts a column alias to use the appropriate delimiters */ public String convertAlias(String alias) { if (!needsConversion(getIdentifierConfiguration())) { return alias; } String[] names = Normalizer.splitName(alias); if (names.length <= 1) { // Nothing to split return alias; } // Skip the the first name. It is the alias (T0, T1, etc.) for (int i = 1; i < names.length; i++) { names[i] = toDBName(getIdentifierConfiguration().getDefaultIdentifierRule().toString(), names[i], true); } return joinNames(getIdentifierConfiguration().getDefaultIdentifierRule(), names); }
/** * Converts a column alias to use the appropriate delimiters */ public String convertAlias(String alias) { if (!needsConversion(getIdentifierConfiguration())) { return alias; } String[] names = Normalizer.splitName(alias); if (names.length <= 1) { // Nothing to split return alias; } // Skip the the first name. It is the alias (T0, T1, etc.) for (int i = 1; i < names.length; i++) { names[i] = toDBName(getIdentifierConfiguration().getDefaultIdentifierRule().toString(), names[i], true); } return joinNames(getIdentifierConfiguration().getDefaultIdentifierRule(), names); }
/** * Converts a column alias to use the appropriate delimiters */ public String convertAlias(String alias) { if (!needsConversion(getIdentifierConfiguration())) { return alias; } String[] names = Normalizer.splitName(alias); if (names.length <= 1) { // Nothing to split return alias; } // Skip the the first name. It is the alias (T0, T1, etc.) for (int i = 1; i < names.length; i++) { names[i] = toDBName(getIdentifierConfiguration().getDefaultIdentifierRule().toString(), names[i], true); } return joinNames(getIdentifierConfiguration().getDefaultIdentifierRule(), names); }