|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgpruitt.datamodeler.core.ForeignKey
public class ForeignKey
Field Summary | |
---|---|
protected java.lang.String |
comment
|
protected ColumnSet |
constrainedColumns
|
protected Table |
constrainedTable
|
protected java.lang.String |
name
|
protected ColumnSet |
referencedColumns
|
protected Table |
referencedTable
|
Constructor Summary | |
---|---|
ForeignKey(java.lang.String name)
Constructor. |
Method Summary | |
---|---|
java.lang.String |
getComment()
Gets the comment describing this constraint. |
ColumnSet |
getConstrainedColumns()
Gets the ColumnSet that contains the Columns that are being constrained by this constraint. |
Table |
getConstrainedTable()
Gets the Table that is being constrained by this constraint. |
java.lang.String |
getName()
Gets the name of the constraint. |
ColumnSet |
getReferencedColumns()
Gets the ColumnSet that contains the Columns that are being referenced by this constraint. |
Table |
getReferencedTable()
Gets the Table referenced by this constraint. |
void |
setComment(java.lang.String comment)
Sets the comment describing this constraint for use in the data dictionary. |
void |
setConstrainedTable(Table constrainedTable)
Sets the Table that is being constrained by this constraint |
void |
setReferencedTable(Table referencedTable)
Sets the Table that is being referenced by this constraint. |
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 constrainedTable
protected final ColumnSet constrainedColumns
protected Table referencedTable
protected final ColumnSet referencedColumns
protected java.lang.String comment
Constructor Detail |
---|
public ForeignKey(java.lang.String name)
name
- The name of the foreign key constraint.Method Detail |
---|
public java.lang.String getName()
public Table getConstrainedTable()
Table
public void setConstrainedTable(Table constrainedTable)
constrainedTable
- The constrained TableTable
public ColumnSet getConstrainedColumns()
Column
,
ColumnSet
public Table getReferencedTable()
Table
public void setReferencedTable(Table referencedTable)
referencedTable
- The Table that is being referenced by the constraint.Table
public ColumnSet getReferencedColumns()
Column
,
ColumnSet
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 |