public class Table extends Relation implements java.io.Serializable
Table in the attica data model.
A Table is nothing more than a named Relation.Relation,
Serialized Form| Constructor and Description |
|---|
Table(java.lang.String name)
Constructs a new table given its name.
|
Table(java.lang.String name,
java.util.List<Attribute> attributes)
Constructs a table given a name and
List of
attributes. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Retrieves the name of the table.
|
addAttribute, getAttribute, getAttributeIndex, getNumberOfAttributes, iterator, toStringpublic Table(java.lang.String name)
name - the name of the Table.public Table(java.lang.String name,
java.util.List<Attribute> attributes)
List of
attributes.name - the name of the Table.attributes - the attributes of the Table.