public interface Table extends Comparable<Table>, Serializable, NamedStructure
| Modifier and Type | Method and Description |
|---|---|
Column[] |
getBooleanColumns()
Gets all of this table's columns that are of boolean type.
|
Column |
getColumn(int index)
Gets a column by index.
|
Column |
getColumnByName(String columnName)
Convenience method for retrieving a column by it's name.
|
int |
getColumnCount()
Gets the number of columns in this table.
|
String[] |
getColumnNames()
Gets the names of this table's columns.
|
Column[] |
getColumns()
Gets the columns of this table.
|
Column[] |
getColumnsOfSuperType(SuperColumnType superColumnType)
Gets the columns of this table that conforms to a specified
SuperColumnType. |
Column[] |
getColumnsOfType(ColumnType columnType)
Gets the columns of this table that conforms to a specified
ColumnType. |
Relationship[] |
getForeignKeyRelationships() |
Column[] |
getForeignKeys()
Gets the columns of this table that are known to be foreign keys (ie.
|
Column[] |
getIndexedColumns()
Gets all of this table's columns that are indexed.
|
Column[] |
getLiteralColumns()
Gets all of this table's columns that are of literal (String/text) type.
|
String |
getName()
Gets the name of this Table
|
Column[] |
getNumberColumns()
Gets all of this table's columns that are of number type.
|
Relationship[] |
getPrimaryKeyRelationships() |
Column[] |
getPrimaryKeys()
Gets the columns of this table that are known to be primary keys.
|
int |
getRelationshipCount()
Gets a count of relationships to and from this table.
|
Relationship[] |
getRelationships()
Gets all relationships for this table.
|
Relationship[] |
getRelationships(Table otherTable)
Gets relationships between this table and another table.
|
String |
getRemarks()
Gets remarks/comments to this table.
|
Schema |
getSchema()
Gets the schema that this table resides in.
|
Column[] |
getTimeBasedColumns()
Gets all of this table's columns that are time and/or date based.
|
TableType |
getType()
Gets the table type of this table.
|
compareTogetQualifiedLabel, getQuote, getQuotedNameString getName()
getName in interface HasNamegetName in interface NamedStructureint getColumnCount()
Column[] getColumns()
Column getColumnByName(String columnName)
columnName - the name of the column to retrieveColumn getColumn(int index) throws IndexOutOfBoundsException
getColumnCount() to get the
(0-based) index range.index - the index of the columnIndexOutOfBoundsException - if the index is out of bounds (index >= column count)Schema getSchema()
TableType getType()
Relationship[] getRelationships()
Relationship[] getRelationships(Table otherTable)
otherTable - another table for which to find relationships to and from.int getRelationshipCount()
String getRemarks()
Column[] getNumberColumns()
ColumnTypeColumn[] getLiteralColumns()
ColumnTypeColumn[] getTimeBasedColumns()
ColumnTypeColumn[] getBooleanColumns()
ColumnTypeColumn[] getIndexedColumns()
Relationship[] getForeignKeyRelationships()
Relationship[] getPrimaryKeyRelationships()
Column[] getForeignKeys()
Column[] getPrimaryKeys()
Column.isPrimaryKey().String[] getColumnNames()
Column[] getColumnsOfType(ColumnType columnType)
ColumnType.columnType - the column type to search for.Column[] getColumnsOfSuperType(SuperColumnType superColumnType)
SuperColumnType.superColumnType - the super type of the columnCopyright © 2007–2016 The Apache Software Foundation. All rights reserved.