public interface ForeignKeyContributingSource
Modifier and Type | Method and Description |
---|---|
boolean |
createForeignKeyConstraint()
Primarily exists to support JPA's
@ForeignKey(NO_CONSTRAINT) . |
String |
getExplicitForeignKeyName()
Retrieve the name of the foreign key as supplied by the user, or
null if the user supplied none. |
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?
|
String getExplicitForeignKeyName()
null
if the user supplied none.boolean createForeignKeyConstraint()
@ForeignKey(NO_CONSTRAINT)
.true
if the FK constraint should be created, false
if not.boolean isCascadeDeleteEnabled()
true
, if the cascade delete is enabled; false
, otherwise.Copyright © 2001-2021 Red Hat, Inc. All Rights Reserved.