| com.sleepycat.persist.model.DeleteAction
DeleteAction | public enum DeleteAction (Code) | | Specifies the action to take when a related entity is deleted having a
primary key value that exists as a secondary key value for this entity.
This can be specified using a
SecondaryKey.onRelatedEntityDelete annotation.
author: Mark Hayes |
Field Summary | |
Enum Constant | ABORT The default action,
ABORT , means that a
DatabaseException is thrown in order to abort the current transaction. | Enum Constant | CASCADE If
CASCADE is specified, then this entity will be deleted also,
which could in turn trigger further deletions, causing a cascading
effect. | Enum Constant | NULLIFY If
NULLIFY is specified, then the secondary key in this entity
is set to null and this entity is updated. |
ABORT | Enum Constant ABORT(Code) | | The default action,
ABORT , means that a
DatabaseException is thrown in order to abort the current transaction.
|
CASCADE | Enum Constant CASCADE(Code) | | If
CASCADE is specified, then this entity will be deleted also,
which could in turn trigger further deletions, causing a cascading
effect.
|
NULLIFY | Enum Constant NULLIFY(Code) | | If
NULLIFY is specified, then the secondary key in this entity
is set to null and this entity is updated. For a secondary key field
that has an array or collection type, the array or collection element
will be removed by this action. The secondary key field must have a
reference (not a primitive) type in order to specify this action.
|
|
|