public enum DeleteAction extends Enum<DeleteAction>
Enum Constant and Description |
---|
DELETE
Also delete the object containing the reference.
|
EXCEPTION
Disallow deleting the object, instead throwing
ReferencedObjectException . |
NOTHING
Do nothing.
|
UNREFERENCE
Remove the reference, either by setting it to null (in the case of a
SimpleField in an object),
or by removing the corresponding collection element or key/value pair (in the case of a ComplexField sub-field). |
Modifier and Type | Method and Description |
---|---|
static DeleteAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DeleteAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DeleteAction NOTHING
DeletedObjectException
.public static final DeleteAction EXCEPTION
ReferencedObjectException
. This is the default if not specified.
Note: deleting an object that is only referred to by itself will not cause any exception to be thrown.
public static final DeleteAction UNREFERENCE
SimpleField
in an object),
or by removing the corresponding collection element or key/value pair (in the case of a ComplexField
sub-field).public static final DeleteAction DELETE
public static DeleteAction[] values()
for (DeleteAction c : DeleteAction.values()) System.out.println(c);
public static DeleteAction valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2022. All rights reserved.