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) |
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[] |
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.
|
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.
|
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.
|
Relationship[] |
getRelationships(Table otherTable)
Gets relationships between this table and another table.
|
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, wait
getColumns, getName, getRelationships, getRemarks, getSchema, getType
getQuote
public final int getColumnCount()
Table
getColumnCount
in interface Table
public Column getColumn(int index) throws IndexOutOfBoundsException
Table
Table.getColumnCount()
to get the
(0-based) index range.getColumn
in interface Table
index
- the index of the columnIndexOutOfBoundsException
- if the index is out of bounds (index >= column count)public final Column getColumnByName(String columnName)
Table
getColumnByName
in interface Table
columnName
- the name of the column to retrievepublic final int getRelationshipCount()
Table
getRelationshipCount
in interface Table
public final Column[] getNumberColumns()
Table
getNumberColumns
in interface Table
ColumnType
public final Column[] getLiteralColumns()
Table
getLiteralColumns
in interface Table
ColumnType
public final Column[] getTimeBasedColumns()
Table
getTimeBasedColumns
in interface Table
ColumnType
public final Column[] getBooleanColumns()
Table
getBooleanColumns
in interface Table
ColumnType
public final Column[] getIndexedColumns()
Table
getIndexedColumns
in interface Table
public final Relationship[] getForeignKeyRelationships()
getForeignKeyRelationships
in interface Table
public final Relationship[] getPrimaryKeyRelationships()
getPrimaryKeyRelationships
in interface Table
public final Column[] getForeignKeys()
Table
getForeignKeys
in interface Table
public final Column[] getPrimaryKeys()
Table
Column.isPrimaryKey()
.getPrimaryKeys
in interface Table
public final String[] getColumnNames()
Table
getColumnNames
in interface Table
public final Column[] getColumnsOfType(ColumnType columnType)
Table
ColumnType
.getColumnsOfType
in interface Table
columnType
- the column type to search for.public final Column[] getColumnsOfSuperType(SuperColumnType superColumnType)
Table
SuperColumnType
.getColumnsOfSuperType
in interface Table
superColumnType
- the super type of the columnpublic final Relationship[] getRelationships(Table otherTable)
Table
getRelationships
in interface Table
otherTable
- another table for which to find relationships to and from.public final String getQuotedName()
NamedStructure
getQuotedName
in interface NamedStructure
public final String getQualifiedLabel()
NamedStructure
getQualifiedLabel
in interface NamedStructure
public final int compareTo(Table that)
compareTo
in interface Comparable<Table>
Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.