Class DeleteItemCommand
- java.lang.Object
-
- com.sodius.mdw.metamodel.integrity.io.command.ExecutableCommandWrapper
-
- com.sodius.mdw.metamodel.integrity.io.command.DeleteItemCommand
-
- All Implemented Interfaces:
ExecutableCommand
public class DeleteItemCommand extends ExecutableCommandWrapper implements ExecutableCommand
Deletes an
Item
that exists in the Integrity database.Notes:
- You should use this command with extreme care, as the
Item
will be permanently deleted from the database and no confirmation will occur when executing this command. - This command doesn't work with Live Items and Versioned Items, which can't be deleted.
Usage:
new DeleteItemCommand(myItem).execute();
-
-
Constructor Summary
Constructors Constructor Description DeleteItemCommand(Item item)
Instantiates a command to delete an item in the database.
-
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
-
DeleteItemCommand
public DeleteItemCommand(Item item)
Instantiates a command to delete an item in the database.- Parameters:
item
- the item to delete.
-
-