@InterfaceStability.Stable public interface Schema extends Comparable<Schema>, Serializable, NamedStructure
DataContext,
Table| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Gets the name of this Schema
|
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()
Gets all tables in this Schema.
|
List<Table> |
getTables(TableType type)
Gets all tables in this Schema of a particular type.
|
compareTogetQualifiedLabel, getQuote, getQuotedNameString getName()
getName in interface HasNamegetName in interface NamedStructureint getTableCount()
int getTableCount(TableType type)
type - the TableType to use for searching and matching.List<String> getTableNames()
List<Table> getTables()
List<Table> getTables(TableType type)
type - the TableType to use for searching and matching.Table getTable(int index) throws IndexOutOfBoundsException
getTableCount() to get the (0-based)
index rangeindex - the index of the tableIndexOutOfBoundsException - if the index is out of bounds (index >= table count)Table getTableByName(String tableName)
tableName - the name of the table to retrieveCollection<Relationship> getRelationships()
int getRelationshipCount()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.