|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgpruitt.datamodeler.core.TableBuilder.ForeignKeyBuilder
public class TableBuilder.ForeignKeyBuilder
A Fluent Builder class for constructing ForeignKey constraints
Field Summary | |
---|---|
protected ForeignKey |
foreignKey
|
Constructor Summary | |
---|---|
protected |
TableBuilder.ForeignKeyBuilder(java.lang.String name)
Constructor |
Method Summary | |
---|---|
TableBuilder.ForeignKeyBuilder |
comment(java.lang.String comment)
Sets the comment describing the ForeignKey |
TableBuilder.ForeignKeyBuilder |
constrain(java.lang.String... columns)
Sets the Columns being constrained |
TableBuilder |
done()
Gets the TableBuilder |
TableBuilder.ForeignKeyBuilder |
reference(java.lang.String tableName,
java.lang.String... columns)
Sets Table and Columns being referenced by the ForeignKey constraint |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final ForeignKey foreignKey
Constructor Detail |
---|
protected TableBuilder.ForeignKeyBuilder(java.lang.String name)
name
- the name of the ForeignKeyMethod Detail |
---|
public TableBuilder done()
public TableBuilder.ForeignKeyBuilder comment(java.lang.String comment)
comment
- the comment
public TableBuilder.ForeignKeyBuilder constrain(java.lang.String... columns)
columns
- the names of the Columns
public TableBuilder.ForeignKeyBuilder reference(java.lang.String tableName, java.lang.String... columns)
tableName
- the fully qualified name of the Table - "[schema_name].[table_name]"columns
- the names of the Columns being referenced
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |