/** * Normalizes a name, if not delimited, converts to uppercase. * @param name */ public static String normalizeUpper(String name) { String nName = normalizeString(name); // Do not convert delimited names to upper case. They may have // been delimited to preserve case. if (!isDelimited(nName)) { nName = name.toUpperCase(); } return nName; }
/** * Normalizes a name, if not delimited, converts to uppercase. * @param name */ public static String normalizeUpper(String name) { String nName = normalizeString(name); // Do not convert delimited names to upper case. They may have // been delimited to preserve case. if (!isDelimited(nName)) { nName = name.toUpperCase(); } return nName; }
/** * Normalizes a name, if not delimited, converts to uppercase. * @param name * @return */ public static String normalizeUpper(String name) { String nName = normalizeString(name); // Do not convert delimited names to upper case. They may have // been delimited to preserve case. if (!isDelimited(nName)) { nName = name.toUpperCase(); } return nName; }
/** * Normalizes a name, if not delimited, converts to uppercase. * @param name * @return */ public static String normalizeUpper(String name) { String nName = normalizeString(name); // Do not convert delimited names to upper case. They may have // been delimited to preserve case. if (!isDelimited(nName)) { nName = name.toUpperCase(); } return nName; }
/** * Returns true if the identifier is delimited. */ public boolean isDelimited() { if (DBIdentifier.isEmpty(this)) { return false; } return Normalizer.isDelimited(getNameInternal()); }
/** * Returns true if the identifier is delimited. */ public boolean isDelimited() { if (DBIdentifier.isEmpty(this)) { return false; } return Normalizer.isDelimited(getNameInternal()); }
/** * Returns true if the identifier is delimited. */ public boolean isDelimited() { if (DBIdentifier.isEmpty(this)) { return false; } return Normalizer.isDelimited(getNameInternal()); }
/** * Returns true if the identifier is delimited. */ public boolean isDelimited() { if (DBIdentifier.isEmpty(this)) { return false; } return Normalizer.isDelimited(getNameInternal()); }
private boolean equals(DBIdentifier sName, boolean ignoreCase) { if (sName.getNameInternal() == null && getNameInternal() == null) { return true; } if (getNameInternal() == null) { return false; } if (getIgnoreCase() || sName.getIgnoreCase() || ignoreCase || !Normalizer.isDelimited(getNameInternal())) { return getNameInternal().equalsIgnoreCase(sName.getNameInternal()); } return getNameInternal().equals(sName.getNameInternal()); }
private boolean equals(DBIdentifier sName, boolean ignoreCase) { if (sName.getNameInternal() == null && getNameInternal() == null) { return true; } if (getNameInternal() == null) { return false; } if (getIgnoreCase() || sName.getIgnoreCase() || ignoreCase || !Normalizer.isDelimited(getNameInternal())) { return getNameInternal().equalsIgnoreCase(sName.getNameInternal()); } return getNameInternal().equals(sName.getNameInternal()); }
/** * Returns a new DBIdentifier converted to upper case. If delimited, * force to upper case using force option. * @param name */ public static DBIdentifier toUpper(DBIdentifier name, boolean force) { if (DBIdentifier.isNull(name)) { return name; } DBIdentifier sName = name.clone(); if (sName.getNameInternal() == null) { return sName; } // Do not convert delimited names to upper case. They may have // been delimited to preserve case. if (force || !Normalizer.isDelimited(sName.getNameInternal())) { sName.setNameInternal(sName.getNameInternal().toUpperCase()); } return sName; }
/** * Returns a new DBIdentifier converted to lower case. If delimited, * force to lower case using force option. * @param name * @return */ public static DBIdentifier toLower(DBIdentifier name, boolean force) { if (DBIdentifier.isNull(name)) { return name; } DBIdentifier sName = name.clone(); if (sName.getNameInternal() == null) { return sName; } // Do not convert delimited names to lower case. They may have // been delimited to preserve case. if (force || !Normalizer.isDelimited(sName.getNameInternal())) { sName.setNameInternal(sName.getNameInternal().toLowerCase()); } return sName; }
private boolean equals(DBIdentifier sName, boolean ignoreCase) { if (sName.getNameInternal() == null && getNameInternal() == null) { return true; } if (getNameInternal() == null) { return false; } if (getIgnoreCase() || sName.getIgnoreCase() || ignoreCase || !Normalizer.isDelimited(getNameInternal())) { return getNameInternal().equalsIgnoreCase(sName.getNameInternal()); } return getNameInternal().equals(sName.getNameInternal()); }
private boolean equals(DBIdentifier sName, boolean ignoreCase) { if (sName.getNameInternal() == null && getNameInternal() == null) { return true; } if (getNameInternal() == null) { return false; } if (getIgnoreCase() || sName.getIgnoreCase() || ignoreCase || !Normalizer.isDelimited(getNameInternal())) { return getNameInternal().equalsIgnoreCase(sName.getNameInternal()); } return getNameInternal().equals(sName.getNameInternal()); }
/** * Returns true if all identifiers within this compound identifier are * delimited. Otherwise, false. */ @Override public boolean isDelimited() { if (DBIdentifier.isEmpty(this)) { return false; } if (!DBIdentifier.isNull(getObjectTableName())) { if (!Normalizer.isDelimited(getObjectTableName().getName())) { return false; } } if (!DBIdentifier.isNull(getSchemaName())) { if (!Normalizer.isDelimited(getSchemaName().getName())) { return false; } } return super.isDelimited(); }
/** * Returns true if all identifiers within this compound identifier are * delimited. Otherwise, false. */ @Override public boolean isDelimited() { if (DBIdentifier.isEmpty(this)) { return false; } if (!DBIdentifier.isNull(getObjectTableName())) { if (!Normalizer.isDelimited(getObjectTableName().getName())) { return false; } } if (!DBIdentifier.isNull(getSchemaName())) { if (!Normalizer.isDelimited(getSchemaName().getName())) { return false; } } return super.isDelimited(); }
/** * Converts the identifier to a format appropriate for the configuration using * the specified naming rule. * @param delimit If false, do not delimit. Otherwise, delimit if necessary. */ private String toDBName(String rule, String name, boolean delimit) { if (name == null) { return null; } if (getIdentifierConfiguration().getSupportsDelimitedIdentifiers() && delimit && getIdentifierConfiguration().delimitAll() && !Normalizer.isDelimited(name)) { return delimit(rule, name, true); } return convert(Normalizer.getNamingConfiguration(), rule, name); }
/** * Converts the identifier to a format appropriate for the configuration using * the specified naming rule. * @param delimit If false, do not delimit. Otherwise, delimit if necessary. */ private String toDBName(String rule, String name, boolean delimit) { if (name == null) { return null; } if (getIdentifierConfiguration().getSupportsDelimitedIdentifiers() && delimit && getIdentifierConfiguration().delimitAll() && !Normalizer.isDelimited(name)) { return delimit(rule, name, true); } return convert(Normalizer.getNamingConfiguration(), rule, name); }
/** * Converts the identifier to a format appropriate for the configuration using * the specified naming rule. * @param delimit If false, do not delimit. Otherwise, delimit if necessary. */ private String toDBName(String rule, String name, boolean delimit) { if (name == null) { return null; } if (getIdentifierConfiguration().getSupportsDelimitedIdentifiers() && delimit && getIdentifierConfiguration().delimitAll() && !Normalizer.isDelimited(name)) { return delimit(rule, name, true); } return convert(Normalizer.getNamingConfiguration(), rule, name); }
/** * Converts the identifier to a format appropriate for the configuration using * the specified naming rule. * @param delimit If false, do not delimit. Otherwise, delimit if necessary. */ private String toDBName(String rule, String name, boolean delimit) { if (name == null) { return null; } if (getIdentifierConfiguration().getSupportsDelimitedIdentifiers() && delimit && getIdentifierConfiguration().delimitAll() && !Normalizer.isDelimited(name)) { return delimit(rule, name, true); } return convert(Normalizer.getNamingConfiguration(), rule, name); }