public interface ForeignKeyConstraintBuilder extends AbstractBuilder<ForeignKeyConstraint>
FOREIGN KEY(source columns) REFERENCES table_name(target columns) etc....).| Modifier and Type | Method and Description |
|---|---|
ForeignKeyConstraintBuilder |
addSourceColumns(String... columnNames)
Adds source column names to this foreign key constraint.
|
ForeignKeyConstraintBuilder |
addTargetColumns(String... columnNames)
Adds target column names to this foreign key constraint.
|
MatchType |
getMatchType()
Returns the match type for this foreign key constraint.
|
ReferentialAction |
getOnDelete()
Returns the
ON DELETE action for this foreign key constraint. |
ReferentialAction |
getOnUpdate()
Returns the
ON UPDATE action for this foreign key constraint. |
List<String> |
getSourceColumns()
Returns the source column names for this foreign key constraint.
|
TableNameDirect |
getTableName()
Returns the target table name for this foreign key constraint.
|
List<String> |
getTargetColumns()
Returns the target column names for this foreign key constraint.
|
ForeignKeyConstraintBuilder |
setMatchType(MatchType matchType)
Sets the match type for this foreign key constraint.
|
ForeignKeyConstraintBuilder |
setOnDelete(ReferentialAction action)
Sets the
ON DELETE action. |
ForeignKeyConstraintBuilder |
setOnUpdate(ReferentialAction action)
Sets the
ON UPDATE action. |
ForeignKeyConstraintBuilder |
setTargetTableName(TableNameDirect tableName)
Sets the target table name for this foreign key constraint.
|
createExpressionForeignKeyConstraintBuilder addSourceColumns(String... columnNames)
columnNames - The source column names to be added to this foreign key constraint.ForeignKeyConstraintBuilder addTargetColumns(String... columnNames)
columnNames - The target column names to be added to this foreign key constraint.ForeignKeyConstraintBuilder setTargetTableName(TableNameDirect tableName)
tableName - The target table name for this foreign key constraint.ForeignKeyConstraintBuilder setMatchType(MatchType matchType)
matchType - The match type for this foreign key constraint.MatchTypeForeignKeyConstraintBuilder setOnUpdate(ReferentialAction action)
ON UPDATE action.action - The action to perform ON UPDATE.ReferentialActionForeignKeyConstraintBuilder setOnDelete(ReferentialAction action)
ON DELETE action.action - The action to perform ON DELETE.ReferentialActionList<String> getSourceColumns()
List<String> getTargetColumns()
TableNameDirect getTableName()
MatchType getMatchType()
MatchTypeReferentialAction getOnUpdate()
ON UPDATE action for this foreign key constraint.ON UPDATE action for this foreign key constraint.ReferentialActionReferentialAction getOnDelete()
ON DELETE action for this foreign key constraint.ON DELETE action for this foreign key constraint.ReferentialActionCopyright © 2010-2012. All Rights Reserved.