Class DeleteRelationshipCommand
- java.lang.Object
-
- com.sodius.mdw.metamodel.integrity.io.command.ExecutableCommandWrapper
-
- com.sodius.mdw.metamodel.integrity.io.command.DeleteRelationshipCommand
-
- All Implemented Interfaces:
ExecutableCommand
public class DeleteRelationshipCommand extends ExecutableCommandWrapper implements ExecutableCommand
Deletes an existing relationship betweenItemsin the Integrity database.Constraints:
- The
FieldValuemust be owned by its sourceItem. - The
FieldValuemust reference aField. - All
Items(either source or targets of the relation) must already exist in the database.
Notes:
- You might want to group the execution of multiple updates using a
CompoundCommand.
Usage:
new DeleteRelationshipCommand(myValue, myTargetItem).execute();
- See Also:
CompoundCommand
-
-
Constructor Summary
Constructors Constructor Description DeleteRelationshipCommand(FieldValue fieldValue, Element targetElement)Instantiates a command to delete a relationship.DeleteRelationshipCommand(FieldValue fieldValue, Collection<? extends Element> targetElements)Instantiates a command to delete a relationship.
-
Method Summary
-
Methods inherited from class com.sodius.mdw.metamodel.integrity.io.command.ExecutableCommandWrapper
execute
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.sodius.mdw.metamodel.integrity.io.command.ExecutableCommand
execute
-
-
-
-
Constructor Detail
-
DeleteRelationshipCommand
public DeleteRelationshipCommand(FieldValue fieldValue, Element targetElement)
Instantiates a command to delete a relationship.- Parameters:
fieldValue- the field value which references a relation to delete.targetElement- the target element to remove from the relationship.
-
DeleteRelationshipCommand
public DeleteRelationshipCommand(FieldValue fieldValue, Collection<? extends Element> targetElements)
Instantiates a command to delete a relationship.- Parameters:
fieldValue- the field value which references a relation to delete.targetElements- the target elements to remove from the relationship.
-
-