public abstract class AbstractSchema extends Object implements Schema
Schema interface. Implements most
common and trivial methods.| Constructor and Description |
|---|
AbstractSchema() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Schema that) |
boolean |
equals(Object obj) |
String |
getQualifiedLabel()
Gets a qualified label for later lookup.
|
String |
getQuotedName()
Gets the name, including optional quotes, of this structure.
|
int |
getRelationshipCount()
Gets the number of relationships to and from this Schema.
|
Collection<Relationship> |
getRelationships()
Gets all relationships to and from this Schema.
|
Table |
getTable(int index)
Gets a table by index.
|
Table |
getTableByName(String tableName)
Convenience method for retrieving a table by it's name.
|
int |
getTableCount()
Gets the number of tables that reside in this schema.
|
int |
getTableCount(TableType type)
Gets the number of tables in this Schema that comply to a given
TableType.
|
List<String> |
getTableNames()
Gets the names of the tables that reside in this Schema.
|
List<Table> |
getTables(TableType type)
Gets all tables in this Schema of a particular type.
|
int |
hashCode() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetQuotepublic final String getQuotedName()
NamedStructuregetQuotedName in interface NamedStructurepublic Collection<Relationship> getRelationships()
SchemagetRelationships in interface Schemapublic Table getTable(int index) throws IndexOutOfBoundsException
SchemaSchema.getTableCount() to get the (0-based)
index rangegetTable in interface Schemaindex - the index of the tableIndexOutOfBoundsException - if the index is out of bounds (index >= table count)public final String getQualifiedLabel()
NamedStructuregetQualifiedLabel in interface NamedStructurepublic final int getTableCount(TableType type)
SchemagetTableCount in interface Schematype - the TableType to use for searching and matching.public final int getRelationshipCount()
SchemagetRelationshipCount in interface Schemapublic final int getTableCount()
SchemagetTableCount in interface Schemapublic final List<Table> getTables(TableType type)
Schemapublic final Table getTableByName(String tableName)
SchemagetTableByName in interface SchematableName - the name of the table to retrievepublic final List<String> getTableNames()
SchemagetTableNames in interface Schemapublic final int compareTo(Schema that)
compareTo in interface Comparable<Schema>Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.