|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fuberlin.wiwiss.d2rq.algebra.RelationName
public class RelationName
A relation name, including an optional schema name. TODO: Should know about its database and not be equal if the databases are not equal. (?)
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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 RelationName(String schemaName, String tableName)
schemaName
- The schema name, or null if nonetableName
- The table nameMethod Detail |
---|
public String tableName()
public String schemaName()
public String qualifiedName()
public boolean caseUnspecified()
public int hashCode()
hashCode
in class Object
public boolean equals(Object otherObject)
equals
in class Object
public String toString()
toString
in class Object
public int compareTo(RelationName other)
compareTo
in interface Comparable<RelationName>
public RelationName withPrefix(int index)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |