/** * Returns a fully qualified name as a string. */ public String toString() { return getName(); }
/** * Returns a fully qualified name as a string. */ public String toString() { return getName(); }
/** * Returns a fully qualified name as a string. */ public String toString() { return getName(); }
/** * Returns a fully qualified name as a string. */ public String toString() { return getName(); }
/** * Returns the length of the qualified identifier, including delimiters * and name separators. */ public int length() { String name = getName(); if (name == null) { return 0; } return name.length(); }
/** * Returns the length of the qualified identifier, including delimiters * and name separators. */ public int length() { String name = getName(); if (name == null) { return 0; } return name.length(); }
/** * Returns the length of the qualified identifier, including delimiters * and name separators. */ public int length() { String name = getName(); if (name == null) { return 0; } return name.length(); }
/** * Returns the length of the qualified identifier, including delimiters * and name separators. */ public int length() { String name = getName(); if (name == null) { return 0; } return name.length(); }
/** * Compares this identifier with another identifier. */ public int compareTo(Identifier o) { if (o instanceof DBIdentifier) { if (o == null || o == DBIdentifier.NULL) return -1; return super.compareTo(o); } return getName().compareTo(o.getName()); }
/** * Compares this identifier with another identifier. */ public int compareTo(Identifier o) { if (o instanceof DBIdentifier) { if (o == null || o == DBIdentifier.NULL) return -1; return super.compareTo(o); } return getName().compareTo(o.getName()); }
/** * Compares this identifier with another identifier. */ public int compareTo(Identifier o) { if (o instanceof DBIdentifier) { if (o == null || o == DBIdentifier.NULL) return -1; return super.compareTo(o); } return getName().compareTo(o.getName()); }
/** * Compares this identifier with another identifier. */ public int compareTo(Identifier o) { if (o instanceof DBIdentifier) { if (o == null || o == DBIdentifier.NULL) return -1; return super.compareTo(o); } return getName().compareTo(o.getName()); }
/** * Equality operator. */ public boolean equals(Object obj) { if (obj == null) { return false; } if (obj instanceof QualifiedDBIdentifier) { QualifiedDBIdentifier sPath = (QualifiedDBIdentifier)obj; return DBIdentifier.equal(sPath.getSchemaName(), getSchemaName()) && DBIdentifier.equal(sPath.getObjectTableName(), getObjectTableName()) && DBIdentifier.equal(sPath, this); } else if (obj instanceof DBIdentifier) { DBIdentifier sName = (DBIdentifier)obj; return DBIdentifier.equal(sName, this); } else if (obj instanceof String) { return obj.equals(this.getName()); } throw new IllegalArgumentException("Cannot compare to type: " + obj.getClass().getName()); }
/** * Equality operator. */ public boolean equals(Object obj) { if (obj == null) { return false; } if (obj instanceof QualifiedDBIdentifier) { QualifiedDBIdentifier sPath = (QualifiedDBIdentifier)obj; return DBIdentifier.equal(sPath.getSchemaName(), getSchemaName()) && DBIdentifier.equal(sPath.getObjectTableName(), getObjectTableName()) && DBIdentifier.equal(sPath, this); } else if (obj instanceof DBIdentifier) { DBIdentifier sName = (DBIdentifier)obj; return DBIdentifier.equal(sName, this); } else if (obj instanceof String) { return obj.equals(this.getName()); } throw new IllegalArgumentException("Cannot compare to type: " + obj.getClass().getName()); }
/** * Equality operator. */ public boolean equals(Object obj) { if (obj == null) { return false; } if (obj instanceof QualifiedDBIdentifier) { QualifiedDBIdentifier sPath = (QualifiedDBIdentifier)obj; return DBIdentifier.equal(sPath.getSchemaName(), getSchemaName()) && DBIdentifier.equal(sPath.getObjectTableName(), getObjectTableName()) && DBIdentifier.equal(sPath, this); } else if (obj instanceof DBIdentifier) { DBIdentifier sName = (DBIdentifier)obj; return DBIdentifier.equal(sName, this); } else if (obj instanceof String) { return obj.equals(this.getName()); } throw new IllegalArgumentException("Cannot compare to type: " + obj.getClass().getName()); }
/** * Equality operator. */ public boolean equals(Object obj) { if (obj == null) { return false; } if (obj instanceof QualifiedDBIdentifier) { QualifiedDBIdentifier sPath = (QualifiedDBIdentifier)obj; return DBIdentifier.equal(sPath.getSchemaName(), getSchemaName()) && DBIdentifier.equal(sPath.getObjectTableName(), getObjectTableName()) && DBIdentifier.equal(sPath, this); } else if (obj instanceof DBIdentifier) { DBIdentifier sName = (DBIdentifier)obj; return DBIdentifier.equal(sName, this); } else if (obj instanceof String) { return obj.equals(this.getName()); } throw new IllegalArgumentException("Cannot compare to type: " + obj.getClass().getName()); }
/** * Converts the name to a name which can be used within a SQL statement. Uses * the appropriate delimiters and separators. * @parm name a DBIdentifier * @param delimit If true, allows the name to be delimited, if necessary. * Otherwise, the identifier is not delimited. */ public String toDBName(DBIdentifier name, boolean delimit) { if (DBIdentifier.isNull(name)) { return null; } if (getIdentifierConfiguration().getSupportsDelimitedIdentifiers() && delimit && getIdentifierConfiguration().delimitAll() && !name.isDelimited()) { return delimit(name, true); } String rule = name.getType().name(); if (name instanceof QualifiedDBIdentifier) { QualifiedDBIdentifier path = (QualifiedDBIdentifier)name; return convertFull(Normalizer.getNamingConfiguration(), rule, path.getName()); } return convert(Normalizer.getNamingConfiguration(), rule, name.getName()); }
/** * Converts the name to a name which can be used within a SQL statement. Uses * the appropriate delimiters and separators. * @parm name a DBIdentifier * @param delimit If true, allows the name to be delimited, if necessary. * Otherwise, the identifier is not delimited. */ public String toDBName(DBIdentifier name, boolean delimit) { if (DBIdentifier.isNull(name)) { return null; } if (getIdentifierConfiguration().getSupportsDelimitedIdentifiers() && delimit && getIdentifierConfiguration().delimitAll() && !name.isDelimited()) { return delimit(name, true); } String rule = name.getType().name(); if (name instanceof QualifiedDBIdentifier) { QualifiedDBIdentifier path = (QualifiedDBIdentifier)name; return convertFull(Normalizer.getNamingConfiguration(), rule, path.getName()); } return convert(Normalizer.getNamingConfiguration(), rule, name.getName()); }
/** * Converts the name to a name which can be used within a SQL statement. Uses * the appropriate delimiters and separators. * @parm name a DBIdentifier * @param delimit If true, allows the name to be delimited, if necessary. * Otherwise, the identifier is not delimited. */ public String toDBName(DBIdentifier name, boolean delimit) { if (DBIdentifier.isNull(name)) { return null; } if (getIdentifierConfiguration().getSupportsDelimitedIdentifiers() && delimit && getIdentifierConfiguration().delimitAll() && !name.isDelimited()) { return delimit(name, true); } String rule = name.getType().name(); if (name instanceof QualifiedDBIdentifier) { QualifiedDBIdentifier path = (QualifiedDBIdentifier)name; return convertFull(Normalizer.getNamingConfiguration(), rule, path.getName()); } return convert(Normalizer.getNamingConfiguration(), rule, name.getName()); }
/** * Converts the name to a name which can be used within a SQL statement. Uses * the appropriate delimiters and separators. * @parm name a DBIdentifier * @param delimit If true, allows the name to be delimited, if necessary. * Otherwise, the identifier is not delimited. */ public String toDBName(DBIdentifier name, boolean delimit) { if (DBIdentifier.isNull(name)) { return null; } if (getIdentifierConfiguration().getSupportsDelimitedIdentifiers() && delimit && getIdentifierConfiguration().delimitAll() && !name.isDelimited()) { return delimit(name, true); } String rule = name.getType().name(); if (name instanceof QualifiedDBIdentifier) { QualifiedDBIdentifier path = (QualifiedDBIdentifier)name; return convertFull(Normalizer.getNamingConfiguration(), rule, path.getName()); } return convert(Normalizer.getNamingConfiguration(), rule, name.getName()); }