public class RelationName extends Object implements Comparable<RelationName>
Constructor and Description |
---|
RelationName(String schemaName,
String tableName)
Constructs a new relation name with specified case.
|
RelationName(String schemaName,
String tableName,
boolean caseUnspecified)
Constructs a new relation name.
|
Modifier and Type | Method and Description |
---|---|
boolean |
caseUnspecified() |
int |
compareTo(RelationName other)
Relations without schema are less than relations with schema.
|
boolean |
equals(Object otherObject)
Two relation names are identical if and only if
they share the same name and schema, or they
share the same name and both have no schema.
|
int |
hashCode() |
String |
qualifiedName()
Returns the full name, including the schema if present, in
schema.table or table notation.
|
String |
schemaName() |
String |
tableName() |
String |
toString() |
RelationName |
withPrefix(int index) |
public RelationName(String schemaName, String tableName, boolean caseUnspecified)
schemaName
- The schema name, or null if nonetableName
- The table namecaseUnspecified
- Whether the case is unspecified, i.e. comparisons on this relation name need to be case-insensitivepublic String tableName()
public String schemaName()
public String qualifiedName()
public boolean caseUnspecified()
public boolean equals(Object otherObject)
public int compareTo(RelationName other)
compareTo
in interface Comparable<RelationName>
public RelationName withPrefix(int index)