Interface ForeignKeyContributingSource
-
- All Known Subinterfaces:
JoinedSubclassEntitySource,PluralAttributeElementSourceManyToMany,PluralAttributeKeySource,SecondaryTableSource,SingularAttributeSourceManyToOne,SingularAttributeSourceOneToOne,SingularAttributeSourceToOne
public interface ForeignKeyContributingSourceAdditional contract for things which describe foreign keys.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancreateForeignKeyConstraint()Primarily exists to support JPA's@ForeignKey(NO_CONSTRAINT).java.lang.StringgetExplicitForeignKeyName()Retrieve the name of the foreign key as supplied by the user, ornullif the user supplied none.booleanisCascadeDeleteEnabled()Is "cascade delete" enabled for the foreign key? In other words, if a record in the parent (referenced) table is deleted, should the corresponding records in the child table automatically be deleted?
-
-
-
Method Detail
-
getExplicitForeignKeyName
java.lang.String getExplicitForeignKeyName()
Retrieve the name of the foreign key as supplied by the user, ornullif the user supplied none.- Returns:
- The user supplied foreign key name.
-
createForeignKeyConstraint
boolean createForeignKeyConstraint()
Primarily exists to support JPA's@ForeignKey(NO_CONSTRAINT).- Returns:
trueif the FK constraint should be created,falseif not.
-
isCascadeDeleteEnabled
boolean isCascadeDeleteEnabled()
Is "cascade delete" enabled for the foreign key? In other words, if a record in the parent (referenced) table is deleted, should the corresponding records in the child table automatically be deleted?- Returns:
true, if the cascade delete is enabled;false, otherwise.
-
-