public interface ForeignKeyContributingSource
Additional contract for things which describe foreign keys.
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()
Retrieve the name of the foreign key as supplied by the user, or null
if the user supplied none.
boolean createForeignKeyConstraint()
Primarily exists to support JPA’s @ForeignKey(NO_CONSTRAINT)
.
true
if the FK constraint should be created, false
if not.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.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.