接口 ForeignKeyContributingSource
-
- 所有已知子接口:
JoinedSubclassEntitySource,PluralAttributeElementSourceManyToMany,PluralAttributeKeySource,SecondaryTableSource,SingularAttributeSourceManyToOne,SingularAttributeSourceOneToOne,SingularAttributeSourceToOne
- 所有已知实现类:
AbstractToOneAttributeSourceImpl,CompositeIdentifierSingularAttributeSourceManyToOneImpl,JoinedSubclassEntitySourceImpl,PluralAttributeElementSourceManyToManyImpl,PluralAttributeKeySourceImpl
public interface ForeignKeyContributingSourceAdditional contract for things which describe foreign keys.- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 booleancreateForeignKeyConstraint()Primarily exists to support JPA's@ForeignKey(NO_CONSTRAINT).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?
-
-
-
方法详细资料
-
getExplicitForeignKeyName
String getExplicitForeignKeyName()
Retrieve the name of the foreign key as supplied by the user, ornullif the user supplied none.- 返回:
- The user supplied foreign key name.
-
createForeignKeyConstraint
boolean createForeignKeyConstraint()
Primarily exists to support JPA's@ForeignKey(NO_CONSTRAINT).- 返回:
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?- 返回:
true, if the cascade delete is enabled;false, otherwise.
-
-