|
|||||||||
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.PrimaryKey
public class PrimaryKey
This class models a primary key constraint on a database table.
Table
Field Summary | |
---|---|
protected java.lang.String |
comment
|
protected java.lang.String |
name
|
protected Table |
table
|
Fields inherited from class com.jgpruitt.datamodeler.core.ColumnSet |
---|
list, map |
Constructor Summary | |
---|---|
PrimaryKey(java.lang.String name)
Constructor |
Method Summary | |
---|---|
java.lang.String |
getComment()
Gets the comment describing the ForeignKey |
java.lang.String |
getName()
Gets the name of the PrimaryKey |
Table |
getTable()
Gets the Table being constrained |
void |
setComment(java.lang.String comment)
Sets the comment describing the ForeignKey |
void |
setTable(Table table)
Sets the Table being constrained by the constraint |
Methods inherited from class com.jgpruitt.datamodeler.core.ColumnSet |
---|
add, 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 Table table
protected java.lang.String comment
Constructor Detail |
---|
public PrimaryKey(java.lang.String name)
name
- the name of the PrimaryKeyMethod Detail |
---|
public java.lang.String getName()
public Table getTable()
public void setTable(Table table)
table
- the Table being constrainedpublic 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 |