public class MutableTable extends AbstractTable implements Serializable
Schema,
Column,
Relationship,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected List<Column> |
_columns |
protected String |
_name |
protected String |
_quoteString |
protected List<Relationship> |
_relationships |
protected String |
_remarks |
protected Schema |
_schema |
protected TableType |
_type |
| Constructor and Description |
|---|
MutableTable() |
MutableTable(String name) |
MutableTable(String name,
Schema schema) |
MutableTable(String name,
TableType type) |
MutableTable(String name,
TableType type,
Schema schema) |
MutableTable(String name,
TableType type,
Schema schema,
Column... columns) |
| Modifier and Type | Method and Description |
|---|---|
MutableTable |
addColumn(Column column) |
MutableTable |
addColumn(int index,
Column column) |
protected void |
addRelationship(Relationship relation)
Protected method for adding a relationship to this table.
|
List<Column> |
getColumns()
Gets the columns of this table.
|
protected List<Column> |
getColumnsInternal()
Internal getter for the columns of the table.
|
String |
getName()
Gets the name of this Table
|
String |
getQuote()
Gets an optional quote string that is used to enclose the name of this
structure.
|
List<Relationship> |
getRelationships()
Gets all relationships for this table.
|
protected List<Relationship> |
getRelationshipsInternal()
Internal getter for the relationships of the table.
|
String |
getRemarks()
Gets remarks/comments to this table.
|
Schema |
getSchema()
Gets the schema that this table resides in.
|
TableType |
getType()
Gets the table type of this table.
|
MutableTable |
removeColumn(Column column) |
protected MutableTable |
removeRelationship(Relationship relation)
Protected method for removing a relationship from this table.
|
MutableTable |
setColumns(Collection<Column> columns) |
MutableTable |
setColumns(Column... columns) |
MutableTable |
setName(String name) |
MutableTable |
setQuote(String quoteString) |
MutableTable |
setRemarks(String remarks) |
MutableTable |
setSchema(Schema schema) |
MutableTable |
setType(TableType type) |
compareTo, equals, getBooleanColumns, getColumn, getColumnByName, getColumnCount, getColumnNames, getColumnsOfSuperType, getColumnsOfType, getForeignKeyRelationships, getForeignKeys, getIndexedColumns, getLiteralColumns, getNumberColumns, getPrimaryKeyRelationships, getPrimaryKeys, getQualifiedLabel, getQuotedName, getRelationshipCount, getRelationships, getTimeBasedColumns, hashCode, toStringprotected String _name
protected TableType _type
protected String _remarks
protected Schema _schema
protected final List<Relationship> _relationships
protected String _quoteString
public MutableTable()
public MutableTable(String name)
public String getName()
Tablepublic MutableTable setName(String name)
protected List<Column> getColumnsInternal()
protected List<Relationship> getRelationshipsInternal()
public List<Column> getColumns()
TablegetColumns in interface Tablepublic MutableTable setColumns(Column... columns)
public MutableTable setColumns(Collection<Column> columns)
public MutableTable addColumn(Column column)
public MutableTable addColumn(int index, Column column)
public MutableTable removeColumn(Column column)
public Schema getSchema()
Tablepublic MutableTable setSchema(Schema schema)
public TableType getType()
Tablepublic MutableTable setType(TableType type)
public List<Relationship> getRelationships()
TablegetRelationships in interface Tableprotected void addRelationship(Relationship relation)
protected MutableTable removeRelationship(Relationship relation)
public String getRemarks()
TablegetRemarks in interface Tablepublic MutableTable setRemarks(String remarks)
public String getQuote()
NamedStructuregetQuote in interface NamedStructurepublic MutableTable setQuote(String quoteString)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.