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 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()); }
/** * Returns a new DBIdentifier with the given string combined using * delimiting rules and appropriate separators. * @param name * @param length */ public static DBIdentifier combine(DBIdentifier name, String str) { DBIdentifier sName = name.clone(); String strName = sName.getNameInternal(); strName = Normalizer.combine(strName, str); sName.setNameInternal(strName); return sName; }
/** * Returns a new DBIdentifier with the given string appended. * @param name * @param length * @return */ public static DBIdentifier append(DBIdentifier name, String str) { DBIdentifier sName = name.clone(); String strName = sName.getNameInternal(); strName = Normalizer.append(strName, str); sName.setNameInternal(strName); return sName; }
/** * Returns a new DBIdentifier with the given string appended. * @param name * @param length */ public static DBIdentifier append(DBIdentifier name, String str) { DBIdentifier sName = name.clone(); String strName = sName.getNameInternal(); strName = Normalizer.append(strName, str); sName.setNameInternal(strName); return sName; }
/** * Returns a new DBIdentifier with the given string appended. * @param name * @param length */ public static DBIdentifier append(DBIdentifier name, String str) { DBIdentifier sName = name.clone(); String strName = sName.getNameInternal(); strName = Normalizer.append(strName, str); sName.setNameInternal(strName); return sName; }
/** * Returns a new DBIdentifier with the given string combined using * delimiting rules and appropriate separators. * @param name * @param length */ public static DBIdentifier combine(DBIdentifier name, String str) { DBIdentifier sName = name.clone(); String strName = sName.getNameInternal(); strName = Normalizer.combine(strName, str); sName.setNameInternal(strName); return sName; }
/** * Returns a new DBIdentifier with the given string combined using * delimiting rules and appropriate separators. * @param name * @param length * @return */ public static DBIdentifier combine(DBIdentifier name, String str) { DBIdentifier sName = name.clone(); String strName = sName.getNameInternal(); strName = Normalizer.combine(strName, str); sName.setNameInternal(strName); return sName; }
/** * Returns a copy of an identifier with name trimmed to null. * @param name */ public static DBIdentifier trimToNull(DBIdentifier name) { if (DBIdentifier.isNull(name)) { return name; } DBIdentifier sName = name.clone(); sName.setNameInternal(StringUtil.trimToNull(sName.getNameInternal())); return sName; }
/** * Returns a new DBIdentifier truncated to length * @param name * @param length */ public static DBIdentifier truncate(DBIdentifier name, int length) { DBIdentifier sName = name.clone(); String strName = sName.getNameInternal(); if (StringUtil.isEmpty(strName)) { return sName; } strName = Normalizer.truncate(strName, length); sName.setNameInternal(strName); return sName; }
/** * Returns a copy of an identifier with name trimmed to null. * @param name */ public static DBIdentifier trimToNull(DBIdentifier name) { if (DBIdentifier.isNull(name)) { return name; } DBIdentifier sName = name.clone(); sName.setNameInternal(StringUtil.trimToNull(sName.getNameInternal())); return sName; }
/** * Clones an identifier using deep copy. */ public DBIdentifier clone() { DBIdentifier sName = new DBIdentifier(); sName.setNameInternal(getNameInternal()); sName.setType(getType()); sName.setIgnoreCase(getIgnoreCase()); return sName; }
/** * Clones an identifier using deep copy. */ public DBIdentifier clone() { DBIdentifier sName = new DBIdentifier(); sName.setNameInternal(getNameInternal()); sName.setType(getType()); sName.setIgnoreCase(getIgnoreCase()); return sName; }
/** * Clones an identifier using deep copy. */ public DBIdentifier clone() { DBIdentifier sName = new DBIdentifier(); sName.setNameInternal(getNameInternal()); sName.setType(getType()); sName.setIgnoreCase(getIgnoreCase()); return sName; }
/** * Clones an identifier using deep copy. */ public DBIdentifier clone() { DBIdentifier sName = new DBIdentifier(); sName.setNameInternal(getNameInternal()); sName.setType(getType()); sName.setIgnoreCase(getIgnoreCase()); return sName; }
/** * Set the name of this identifier based upon a given identifier. */ public void setName(DBIdentifier name) { assertNotNull(); if (DBIdentifier.isNull(name)) { setNameInternal(null); setType(name.getType()); return; } setNameInternal(name.getNameInternal()); setType(name.getType()); }