|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.lib.identifier.IdentifierImpl
org.apache.openjpa.jdbc.identifier.DBIdentifier
org.apache.openjpa.jdbc.identifier.QualifiedDBIdentifier
public class QualifiedDBIdentifier
This class extends DBIdentifier to provide support for qualified identifiers such as schema qualified tables and table qualified columns. It provides methods to create qualified identifiers from individual identifiers.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.openjpa.jdbc.identifier.DBIdentifier |
|---|
DBIdentifier.DBIdentifierType |
| Field Summary |
|---|
| Fields inherited from class org.apache.openjpa.jdbc.identifier.DBIdentifier |
|---|
_ignoreCase, NULL |
| Constructor Summary | |
|---|---|
protected |
QualifiedDBIdentifier(DBIdentifier... sNames)
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.apache.openjpa.jdbc.identifier.DBIdentifier |
|---|
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 |
| Methods inherited from class org.apache.openjpa.lib.identifier.IdentifierImpl |
|---|
hashCode |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected QualifiedDBIdentifier(DBIdentifier... sNames)
| Method Detail |
|---|
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 IdentifierImplpublic String getName()
getName in interface IdentifiergetName in class IdentifierImplpublic String getBaseName()
public DBIdentifier getIdentifier()
public void setName(String name)
setName in interface IdentifiersetName in class DBIdentifierprotected void setBaseName(String name)
name - public int length()
length in interface Identifierlength in class DBIdentifierpublic int compareTo(Identifier o)
compareTo in interface Comparable<Identifier>compareTo in class DBIdentifierpublic boolean isDelimited()
isDelimited in class DBIdentifierpublic DBIdentifier getUnqualifiedName()
getUnqualifiedName in class DBIdentifierpublic QualifiedDBIdentifier clone()
clone in class DBIdentifier
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||