public abstract class AbstractTable extends Object implements Table
Table implementation. Includes most common/trivial methods.| Constructor and Description |
|---|
AbstractTable() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Table that) |
boolean |
equals(Object obj) |
List<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.
|
List<String> |
getColumnNames()
Gets the names of this table's columns.
|
List<Column> |
getColumnsOfSuperType(SuperColumnType superColumnType)
Gets the columns of this table that conforms to a specified
SuperColumnType. |
List<Column> |
getColumnsOfType(ColumnType columnType)
Gets the columns of this table that conforms to a specified
ColumnType. |
Collection<Relationship> |
getForeignKeyRelationships() |
List<Column> |
getForeignKeys()
Gets the columns of this table that are known to be foreign keys (ie.
|
List<Column> |
getIndexedColumns()
Gets all of this table's columns that are indexed.
|
List<Column> |
getLiteralColumns()
Gets all of this table's columns that are of literal (String/text) type.
|
List<Column> |
getNumberColumns()
Gets all of this table's columns that are of number type.
|
List<Relationship> |
getPrimaryKeyRelationships() |
List<Column> |
getPrimaryKeys()
Gets the columns of this table that are known to be primary keys.
|
String |
getQualifiedLabel()
Gets a qualified label for later lookup.
|
String |
getQuotedName()
Gets the name, including optional quotes, of this structure.
|
int |
getRelationshipCount()
Gets a count of relationships to and from this table.
|
Collection<Relationship> |
getRelationships(Table otherTable)
Gets relationships between this table and another table.
|
List<Column> |
getTimeBasedColumns()
Gets all of this table's columns that are time and/or date based.
|
int |
hashCode() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetColumns, getName, getRelationships, getRemarks, getSchema, getTypegetQuotepublic final int getColumnCount()
TablegetColumnCount in interface Tablepublic Column getColumn(int index) throws IndexOutOfBoundsException
TableTable.getColumnCount() to get the
(0-based) index range.getColumn in interface Tableindex - the index of the columnIndexOutOfBoundsException - if the index is out of bounds (index >= column count)public final Column getColumnByName(String columnName)
TablegetColumnByName in interface TablecolumnName - the name of the column to retrievepublic final int getRelationshipCount()
TablegetRelationshipCount in interface Tablepublic final List<Column> getNumberColumns()
TablegetNumberColumns in interface TableColumnTypepublic final List<Column> getLiteralColumns()
TablegetLiteralColumns in interface TableColumnTypepublic final List<Column> getTimeBasedColumns()
TablegetTimeBasedColumns in interface TableColumnTypepublic final List<Column> getBooleanColumns()
TablegetBooleanColumns in interface TableColumnTypepublic final List<Column> getIndexedColumns()
TablegetIndexedColumns in interface Tablepublic final Collection<Relationship> getForeignKeyRelationships()
getForeignKeyRelationships in interface Tablepublic final List<Relationship> getPrimaryKeyRelationships()
getPrimaryKeyRelationships in interface Tablepublic final List<Column> getForeignKeys()
TablegetForeignKeys in interface Tablepublic final List<Column> getPrimaryKeys()
TableColumn.isPrimaryKey().getPrimaryKeys in interface Tablepublic final List<String> getColumnNames()
TablegetColumnNames in interface Tablepublic final List<Column> getColumnsOfType(ColumnType columnType)
TableColumnType.getColumnsOfType in interface TablecolumnType - the column type to search for.public final List<Column> getColumnsOfSuperType(SuperColumnType superColumnType)
TableSuperColumnType.getColumnsOfSuperType in interface TablesuperColumnType - the super type of the columnpublic final Collection<Relationship> getRelationships(Table otherTable)
TablegetRelationships in interface TableotherTable - another table for which to find relationships to and from.public final String getQuotedName()
NamedStructuregetQuotedName in interface NamedStructurepublic final String getQualifiedLabel()
NamedStructuregetQualifiedLabel in interface NamedStructurepublic final int compareTo(Table that)
compareTo in interface Comparable<Table>Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.