public interface IntegrityFix
Persistent
which is about to be deleted.
Three canned IntegrityFix policies are provided: StandardIntegrityFix.delete, which simply deletes all referring objects,
StandardIntegrityFix.clear, which NULLs out all
references, and StandardIntegrityFix.prevent, which prevents
deletion if there are any references which would be left dangling.| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Integrity fixes are set in the DSD by name.
|
Enumeration<Persistent> |
referencesTo(Persistent referee,
Column<?> column,
Enumeration<Persistent> refs,
Map<Column<?>,IntegrityFix> referenceFixOfColumn)
Do something about references from a given column to a
Persistent which is about to be deleted. |
Enumeration<Persistent> referencesTo(Persistent referee, Column<?> column, Enumeration<Persistent> refs, Map<Column<?>,IntegrityFix> referenceFixOfColumn)
Persistent which is about to be deleted. Called via Persistent.delete(Map), this gives the application programmer
fine-grained control over how referential integrity is maintained.referee - The object which is about to be deleted.column - A column which refers to referee's table:
column.getType() is a
ReferencePoemType with targetTable()
== referee.getTable().refs - All the Persistents of which column
actually points to referee.referenceFixOfColumn - The column-to-IntegrityFix
mapping passed into Persistent.delete(Map).String getName()
Copyright © 2000–2021 PanEris. All rights reserved.