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.
|
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.
|
String[] |
getTableNames()
Gets the names of the tables that reside in this Schema.
|
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, wait
getQuote
public final String getQuotedName()
NamedStructure
getQuotedName
in interface NamedStructure
public Relationship[] getRelationships()
Schema
getRelationships
in interface Schema
public Table getTable(int index) throws IndexOutOfBoundsException
Schema
Schema.getTableCount()
to get the (0-based)
index rangegetTable
in interface Schema
index
- the index of the tableIndexOutOfBoundsException
- if the index is out of bounds (index >= table count)public final String getQualifiedLabel()
NamedStructure
getQualifiedLabel
in interface NamedStructure
public final int getTableCount(TableType type)
Schema
getTableCount
in interface Schema
type
- the TableType to use for searching and matching.public final int getRelationshipCount()
Schema
getRelationshipCount
in interface Schema
public final int getTableCount()
Schema
getTableCount
in interface Schema
public final Table[] getTables(TableType type)
Schema
public final Table getTableByName(String tableName)
Schema
getTableByName
in interface Schema
tableName
- the name of the table to retrievepublic final String[] getTableNames()
Schema
getTableNames
in interface Schema
public final int compareTo(Schema that)
compareTo
in interface Comparable<Schema>
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.