public class DeleteRelationshipCommand extends ExecutableCommandWrapper implements ExecutableCommand
Items
in the Integrity database.
Constraints:
FieldValue
must be owned by its source Item
.FieldValue
must reference a Field
.Items
(either source or targets of the relation) must already exist in the database.Notes:
CompoundCommand
.Usage:
new DeleteRelationshipCommand(myValue, myTargetItem).execute();
CompoundCommand
Constructor and Description |
---|
DeleteRelationshipCommand(FieldValue fieldValue,
Collection<? extends Element> targetElements)
Instantiates a command to delete a relationship.
|
DeleteRelationshipCommand(FieldValue fieldValue,
Element targetElement)
Instantiates a command to delete a relationship.
|
execute
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute
public DeleteRelationshipCommand(FieldValue fieldValue, Element targetElement)
fieldValue
- the field value which references a relation to delete.targetElement
- the target element to remove from the relationship.public DeleteRelationshipCommand(FieldValue fieldValue, Collection<? extends Element> targetElements)
fieldValue
- the field value which references a relation to delete.targetElements
- the target elements to remove from the relationship.