/** * Converts the identifier to a format appropriate for the configuration. * Delimits if necessary */ public String toDBName(String name) { return toDBName(name, true); }
/** * Converts the name to a name which can be used within a SQL statement. Uses * the appropriate delimiters and separators. * @parm name a DBIdentifier */ public String toDBName(DBIdentifier name) { return toDBName(name, true); }
/** * Converts the identifier to a format appropriate for the configuration. * Delimits if necessary */ public String toDBName(String name) { return toDBName(name, true); }
/** * Converts the name to a name which can be used within a SQL statement. Uses * the appropriate delimiters and separators. * @parm name a DBIdentifier */ public String toDBName(DBIdentifier name) { return toDBName(name, true); }
/** * Converts the name to a name which can be used within a SQL statement. Uses * the appropriate delimiters and separators. * @parm name a DBIdentifier */ public String toDBName(DBIdentifier name) { return toDBName(name, true); }
/** * Converts the identifier to a format appropriate for the configuration. * Delimits if necessary */ public String toDBName(String name) { return toDBName(name, true); }
/** * Converts the name to a name which can be used within a SQL statement. Uses * the appropriate delimiters and separators. * @parm name a DBIdentifier */ public String toDBName(DBIdentifier name) { return toDBName(name, true); }
/** * Converts the identifier to a format appropriate for the configuration. * Delimits if necessary */ public String toDBName(String name) { return toDBName(name, true); }
public String appendColumns(Column[] columns) { if (columns == null || columns.length == 0) { return ""; } if (columns.length == 1) { return toDBName(columns[0].getIdentifier()); } StringBuilder colsb = new StringBuilder(""); for (int i = 0; i < columns.length; i++) { colsb.append(toDBName(columns[i].getIdentifier())); if (i < (columns.length - 1)) { colsb.append(", "); } } return colsb.toString(); }
public String appendColumns(Column[] columns) { if (columns == null || columns.length == 0) { return ""; } if (columns.length == 1) { return toDBName(columns[0].getIdentifier()); } StringBuilder colsb = new StringBuilder(""); for (int i = 0; i < columns.length; i++) { colsb.append(toDBName(columns[i].getIdentifier())); if (i < (columns.length - 1)) { colsb.append(", "); } } return colsb.toString(); }
public String appendColumns(Column[] columns) { if (columns == null || columns.length == 0) { return ""; } if (columns.length == 1) { return toDBName(columns[0].getIdentifier()); } StringBuilder colsb = new StringBuilder(""); for (int i = 0; i < columns.length; i++) { colsb.append(toDBName(columns[i].getIdentifier())); if (i < (columns.length - 1)) { colsb.append(", "); } } return colsb.toString(); }
public String appendColumns(Column[] columns) { if (columns == null || columns.length == 0) { return ""; } if (columns.length == 1) { return toDBName(columns[0].getIdentifier()); } StringBuilder colsb = new StringBuilder(""); for (int i = 0; i < columns.length; i++) { colsb.append(toDBName(columns[i].getIdentifier())); if (i < (columns.length - 1)) { colsb.append(", "); } } return colsb.toString(); }
/** * 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); }