public class QualifiedDBIdentifier extends DBIdentifier implements Identifier, Cloneable, Serializable
DBIdentifier.DBIdentifierType
_ignoreCase, NULL
Modifier | Constructor and Description |
---|---|
protected |
QualifiedDBIdentifier(DBIdentifier... sNames) |
Modifier and Type | Method and Description |
---|---|
QualifiedDBIdentifier |
clone()
Creates a clone of this identifier.
|
int |
compareTo(Identifier o)
Compares this identifier with another identifier.
|
boolean |
equals(Object obj)
Equality operator.
|
String |
getBaseName()
Returns the base name of this qualified name.
|
DBIdentifier |
getIdentifier()
Returns this object as a DBIdentifier.
|
String |
getName()
Returns the fully qualified name as a string
|
DBIdentifier |
getObjectTableName()
Gets the object table name component of the path, if the path
is a table qualified identifier such as a constraint or column.
|
static QualifiedDBIdentifier |
getPath(DBIdentifier sName)
Creates a qualified path from an identifier.
|
DBIdentifier |
getSchemaName()
Gets the schema component of the path.
|
DBIdentifier |
getUnqualifiedName()
Returns a new unqualified name based on this instance.
|
boolean |
isDelimited()
Returns true if all identifiers within this compound identifier are
delimited.
|
boolean |
isUnqualifiedColumn()
Returns true if this object is not qualified by a table or schema
component.
|
boolean |
isUnqualifiedObject()
Returns true if this object is not qualified by a schema component.
|
int |
length()
Returns the length of the qualified identifier, including delimiters
and name separators.
|
static QualifiedDBIdentifier |
newPath(DBIdentifier... names)
Creates a qualified identifier based upon an array of DBIdentifiers.
|
static boolean |
pathEqual(QualifiedDBIdentifier path1,
QualifiedDBIdentifier path2)
Compares two qualified identifiers for equality.
|
protected void |
setBaseName(String name)
Set the base name component of this compound identifier
|
void |
setName(String name)
Set the name of this qualified identifier.
|
void |
setObjectTableName(DBIdentifier objectName)
Sets the object table name component of the path, if the path
is a table qualified identifier such as a constraint or column.
|
void |
setPath(DBIdentifier... sNames)
Set the identifiers that make up the path.
|
void |
setSchemaName(DBIdentifier schemaName)
Sets the schema component of the path.
|
static DBIdentifier[] |
splitPath(DBIdentifier sName)
Splits a qualified path into separate identifiers.
|
String |
toString()
Returns a fully qualified name as a string.
|
append, combine, combine, equal, equalsIgnoreCase, equalsIgnoreCase, getIgnoreCase, getType, isEmpty, isNull, isNull, join, newCatalog, newCatalog, newColumn, newColumn, newColumnDefinition, newConstant, newConstraint, newConstraint, newDefault, newForeignKey, newForeignKey, newIdentifier, newIdentifier, newIdentifier, newIdentifier, newIndex, newIndex, newSchema, newSchema, newSequence, newSequence, newTable, newTable, preCombine, removeDelimiters, removeHungarianNotation, removeLeading, setIgnoreCase, setName, setName, setType, split, split, toArray, toArray, toLower, toLower, toStringArray, toUpper, toUpper, trim, trimToNull, truncate
hashCode
protected QualifiedDBIdentifier(DBIdentifier... sNames)
public static QualifiedDBIdentifier newPath(DBIdentifier... names)
names
- public void setPath(DBIdentifier... sNames)
sNames
- public static DBIdentifier[] splitPath(DBIdentifier sName)
sName
- public static QualifiedDBIdentifier getPath(DBIdentifier sName)
sName
- public void setSchemaName(DBIdentifier schemaName)
public DBIdentifier getSchemaName()
public void setObjectTableName(DBIdentifier objectName)
public DBIdentifier getObjectTableName()
public boolean isUnqualifiedObject()
public boolean isUnqualifiedColumn()
public boolean equals(Object obj)
equals
in class DBIdentifier
public static boolean pathEqual(QualifiedDBIdentifier path1, QualifiedDBIdentifier path2)
path1
- path2
- public String toString()
toString
in class IdentifierImpl
public String getName()
getName
in interface Identifier
getName
in class IdentifierImpl
public String getBaseName()
public DBIdentifier getIdentifier()
public void setName(String name)
setName
in interface Identifier
setName
in class DBIdentifier
protected void setBaseName(String name)
name
- public int length()
length
in interface Identifier
length
in class DBIdentifier
public int compareTo(Identifier o)
compareTo
in interface Comparable<Identifier>
compareTo
in class DBIdentifier
public boolean isDelimited()
isDelimited
in class DBIdentifier
public DBIdentifier getUnqualifiedName()
getUnqualifiedName
in class DBIdentifier
public QualifiedDBIdentifier clone()
clone
in class DBIdentifier
Copyright © 2006–2017 Apache Software Foundation. All rights reserved.