|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectdk.eobjects.metamodel.schema.Table
public class Table
Represents the metadata about a table. Tables reside within a schema and contains columns and relationships to other tables.
Schema,
Column,
Relationship,
Serialized Form| Field Summary | |
|---|---|
protected java.util.List<Column> |
_columns
|
protected java.lang.String |
_name
|
protected java.lang.String |
_quoteString
|
protected java.util.List<Relationship> |
_relationships
|
protected java.lang.String |
_remarks
|
protected Schema |
_schema
|
protected TableType |
_type
|
| Constructor Summary | |
|---|---|
Table()
|
|
Table(java.lang.String name)
|
|
Table(java.lang.String name,
TableType type)
|
|
Table(java.lang.String name,
TableType type,
Schema schema)
|
|
Table(java.lang.String name,
TableType type,
Schema schema,
Column... columns)
|
|
| Method Summary | |
|---|---|
Table |
addColumn(Column column)
|
protected Table |
addRelationship(Relationship relation)
Protected method for adding a relationship to this table. |
int |
compareTo(Table that)
|
boolean |
equals(java.lang.Object obj)
|
protected void |
fireSchemaChanged()
Tells the table object that the schema it belongs to have changed. |
Column[] |
getBooleanColumns()
|
Column |
getColumnByName(java.lang.String columnName)
Convenience method for retrieving a column by it's name |
int |
getColumnCount()
|
java.lang.String[] |
getColumnNames()
|
Column[] |
getColumns()
|
protected java.util.List<Column> |
getColumnsInternal()
Internal getter for the columns of the table. |
Column[] |
getColumnsOfType(ColumnType columnType)
|
Relationship[] |
getForeignKeyRelationships()
|
Column[] |
getForeignKeys()
|
Column[] |
getIndexedColumns()
|
Column[] |
getLiteralColumns()
|
java.lang.String |
getName()
|
Column[] |
getNumberColumns()
|
Relationship[] |
getPrimaryKeyRelationships()
|
Column[] |
getPrimaryKeys()
|
java.lang.String |
getQualifiedLabel()
Gets a label with a simple dot-separated qualified name such as "MY_SCHEMA.MY_TABLE". |
java.lang.String |
getQuote()
|
java.lang.String |
getQuotedName()
|
int |
getRelationshipCount()
|
Relationship[] |
getRelationships()
|
Relationship[] |
getRelationships(Table otherTable)
|
protected java.util.List<Relationship> |
getRelationshipsInternal()
Internal getter for the relationships of the table. |
java.lang.String |
getRemarks()
|
Schema |
getSchema()
|
Column[] |
getTimeBasedColumns()
|
TableType |
getType()
|
int |
hashCode()
|
Table |
removeColumn(Column column)
|
protected Table |
removeRelationship(Relationship relation)
Protected method for removing a relationship from this table. |
Table |
setColumns(java.util.Collection<Column> columns)
|
Table |
setColumns(Column... columns)
|
Table |
setName(java.lang.String name)
|
Table |
setQuote(java.lang.String quoteString)
|
void |
setRemarks(java.lang.String remarks)
|
Table |
setSchema(Schema schema)
|
Table |
setType(TableType type)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String _name
protected TableType _type
protected java.lang.String _remarks
protected Schema _schema
protected java.util.List<Column> _columns
protected java.util.List<Relationship> _relationships
protected java.lang.String _quoteString
| Constructor Detail |
|---|
public Table()
public Table(java.lang.String name)
public Table(java.lang.String name,
TableType type)
public Table(java.lang.String name,
TableType type,
Schema schema)
public Table(java.lang.String name,
TableType type,
Schema schema,
Column... columns)
| Method Detail |
|---|
public java.lang.String getName()
public Table setName(java.lang.String name)
protected java.util.List<Column> getColumnsInternal()
protected java.util.List<Relationship> getRelationshipsInternal()
public int getColumnCount()
public Column[] getColumns()
public Table setColumns(Column... columns)
public Table setColumns(java.util.Collection<Column> columns)
public Table addColumn(Column column)
public Table removeColumn(Column column)
public Column getColumnByName(java.lang.String columnName)
columnName - the name of the column to retrieve
public Schema getSchema()
public Table setSchema(Schema schema)
protected void fireSchemaChanged()
public TableType getType()
public Table setType(TableType type)
public Relationship[] getRelationships()
public Relationship[] getRelationships(Table otherTable)
otherTable -
protected Table addRelationship(Relationship relation)
protected Table removeRelationship(Relationship relation)
public int getRelationshipCount()
public java.lang.String getRemarks()
public void setRemarks(java.lang.String remarks)
public java.lang.String getQuote()
public Table setQuote(java.lang.String quoteString)
public java.lang.String getQuotedName()
public java.lang.String getQualifiedLabel()
public Column[] getNumberColumns()
public Column[] getLiteralColumns()
public Column[] getTimeBasedColumns()
public Column[] getBooleanColumns()
public Column[] getIndexedColumns()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int compareTo(Table that)
compareTo in interface java.lang.Comparable<Table>public Relationship[] getForeignKeyRelationships()
public Relationship[] getPrimaryKeyRelationships()
public Column[] getForeignKeys()
public Column[] getPrimaryKeys()
public java.lang.String[] getColumnNames()
public Column[] getColumnsOfType(ColumnType columnType)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||