|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eobjects.metamodel.schema.AbstractTable
public abstract class AbstractTable
Abstract Table implementation. Includes most common/trivial methods.
| Constructor Summary | |
|---|---|
AbstractTable()
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eobjects.metamodel.schema.Table |
|---|
getColumns, getName, getRelationships, getRemarks, getSchema, getType |
| Methods inherited from interface org.eobjects.metamodel.schema.NamedStructure |
|---|
getQuote |
| Constructor Detail |
|---|
public AbstractTable()
| Method Detail |
|---|
public final int getColumnCount()
Table
getColumnCount in interface Table
public Column getColumn(int index)
throws IndexOutOfBoundsException
TableTable.getColumnCount() to get the
(0-based) index range.
getColumn in interface Tableindex - the index of the column
IndexOutOfBoundsException - if the index is out of bounds (index >= column count)public final Column getColumnByName(String columnName)
Table
getColumnByName in interface TablecolumnName - the name of the column to retrieve
public final int getRelationshipCount()
Table
getRelationshipCount in interface Tablepublic final Column[] getNumberColumns()
Table
getNumberColumns in interface TableColumnTypepublic final Column[] getLiteralColumns()
Table
getLiteralColumns in interface TableColumnTypepublic final Column[] getTimeBasedColumns()
Table
getTimeBasedColumns in interface TableColumnTypepublic final Column[] getBooleanColumns()
Table
getBooleanColumns in interface TableColumnTypepublic final Column[] getIndexedColumns()
Table
getIndexedColumns in interface Tablepublic final Relationship[] getForeignKeyRelationships()
getForeignKeyRelationships in interface Tablepublic final Relationship[] getPrimaryKeyRelationships()
getPrimaryKeyRelationships in interface Tablepublic final Column[] getForeignKeys()
Table
getForeignKeys in interface Tablepublic final Column[] getPrimaryKeys()
TableColumn.isPrimaryKey().
getPrimaryKeys in interface Tablepublic final String[] getColumnNames()
Table
getColumnNames in interface Tablepublic final Column[] getColumnsOfType(ColumnType columnType)
TableColumnType.
getColumnsOfType in interface TablecolumnType - the column type to search for.
public final Column[] getColumnsOfSuperType(SuperColumnType superColumnType)
TableSuperColumnType.
getColumnsOfSuperType in interface TablesuperColumnType - the super type of the column
public final Relationship[] getRelationships(Table otherTable)
Table
getRelationships in interface TableotherTable - another table for which to find relationships to and from.
public final String getQuotedName()
NamedStructure
getQuotedName in interface NamedStructurepublic final String getQualifiedLabel()
NamedStructure
getQualifiedLabel in interface NamedStructurepublic final String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic final int compareTo(Table that)
compareTo in interface Comparable<Table>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||