public class Table extends Object
Constructor and Description |
---|
Table() |
Table(EntityDescriptor source) |
Modifier and Type | Method and Description |
---|---|
String |
dump()
Provides a full report of all elements of this table.
|
boolean |
equals(Object obj) |
List<TableColumn> |
getColumns()
Returns a mutable list of columns of this table.
|
ForeignKey |
getForeignKey(String name)
Returns the foreign key with the given name.
|
List<ForeignKey> |
getForeignKeys()
Returns a mutable list of foreign keys of this table.
|
Key |
getKey(String indexName)
Returns the key with the given name.
|
List<Key> |
getKeys()
Returns a mutable list of keys of this table.
|
String |
getName()
Returns the name of the table.
|
List<String> |
getPrimaryKey()
Returns the columns which make up the primary key
|
EntityDescriptor |
getSource() |
int |
hashCode() |
void |
setName(String name)
Sets the name of the table.
|
String |
toString() |
public Table(EntityDescriptor source)
public Table()
public EntityDescriptor getSource()
public List<String> getPrimaryKey()
public String getName()
public void setName(String name)
name
- the name of the tablepublic List<TableColumn> getColumns()
public List<Key> getKeys()
public List<ForeignKey> getForeignKeys()
public Key getKey(String indexName)
indexName
- the name of the key or indexpublic ForeignKey getForeignKey(String name)
name
- the name of the foreign keypublic String dump()
Copyright © 2018. All rights reserved.