public class MutableTable extends AbstractTable implements Serializable
Schema
,
Column
,
Relationship
,
Serialized FormModifier 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.
|
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.
|
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, toString
protected 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()
Table
public MutableTable setName(String name)
protected List<Column> getColumnsInternal()
protected List<Relationship> getRelationshipsInternal()
public Column[] getColumns()
Table
getColumns
in interface Table
public 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()
Table
public MutableTable setSchema(Schema schema)
public TableType getType()
Table
public MutableTable setType(TableType type)
public Relationship[] getRelationships()
Table
getRelationships
in interface Table
protected void addRelationship(Relationship relation)
protected MutableTable removeRelationship(Relationship relation)
public String getRemarks()
Table
getRemarks
in interface Table
public MutableTable setRemarks(String remarks)
public String getQuote()
NamedStructure
getQuote
in interface NamedStructure
public MutableTable setQuote(String quoteString)
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.