|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgpruitt.datamodeler.core.ColumnSet
com.jgpruitt.datamodeler.core.Table
public class Table
This class models a database Table
Field Summary | |
---|---|
protected java.lang.String |
comment
|
protected ForeignKeySet |
fkConstraints
|
protected ForeignKeySet |
fkReferences
|
protected IndexSet |
ixs
|
protected java.lang.String |
name
|
protected PrimaryKey |
pk
|
protected Schema |
schema
|
protected UniqueKeySet |
uks
|
Fields inherited from class com.jgpruitt.datamodeler.core.ColumnSet |
---|
list, map |
Constructor Summary | |
---|---|
Table(java.lang.String name)
Constructor. |
Method Summary | |
---|---|
Column |
add(Column col)
Adds a Column to the Table |
java.lang.String |
getComment()
Gets the comment describing this Table |
ForeignKeySet |
getForeignKeyConstraints()
Gets the set of ForeignKey constraints on the Table |
ForeignKeySet |
getForeignKeyReferences()
Gets the set of ForeignKey constraints that reference this Table |
IndexSet |
getIndexes()
Gets the set of Indexes on this Table |
java.lang.String |
getName()
Gets the name of the Table |
PrimaryKey |
getPrimaryKey()
Gets the Table's PrimaryKey constraint or null |
Schema |
getSchema()
Gets the Schema to which this Table belongs |
UniqueKeySet |
getUniqueKeys()
Gets the set of UniqueKey constraints on the Table |
void |
setComment(java.lang.String comment)
Sets the comment describing the Table |
void |
setPrimaryKey(PrimaryKey pk)
Sets the PrimaryKey constraint for the Table |
void |
setSchema(Schema schema)
Sets the Schema to which this Table belongs |
Methods inherited from class com.jgpruitt.datamodeler.core.ColumnSet |
---|
contains, contains, get, get, isEmpty, iterator, size |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final java.lang.String name
protected Schema schema
protected PrimaryKey pk
protected final UniqueKeySet uks
protected final IndexSet ixs
protected final ForeignKeySet fkConstraints
protected final ForeignKeySet fkReferences
protected java.lang.String comment
Constructor Detail |
---|
public Table(java.lang.String name)
name
- The name of the TableMethod Detail |
---|
public java.lang.String getName()
public Schema getSchema()
public void setSchema(Schema schema)
schema
- the Schemapublic Column add(Column col)
add
in class ColumnSet
col
- The Column to add to the set.
Column
public PrimaryKey getPrimaryKey()
public void setPrimaryKey(PrimaryKey pk)
pk
- the PrimaryKey constraintpublic UniqueKeySet getUniqueKeys()
public ForeignKeySet getForeignKeyConstraints()
public ForeignKeySet getForeignKeyReferences()
public IndexSet getIndexes()
public java.lang.String getComment()
public void setComment(java.lang.String comment)
comment
- the comment
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |