Class DeleteInstance
java.lang.Object
com.aquima.interactions.profile.model.command.DeleteInstance
- All Implemented Interfaces:
ITransactionalAction
,Serializable
This class hold the information to rollback a delete instance action.
- Since:
- 6.5
- Author:
- O. Kerpershoek, N. van Noorloos
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDeleteInstance
(String entityName, GUID instanceId, String instanceName) Constructs the delete instance command. -
Method Summary
Modifier and TypeMethodDescriptionReturns a deep copy of the transaction.void
rollback
(IRollbackContext context) Performs a roll-back on the current (sub)transaction.
-
Constructor Details
-
DeleteInstance
Constructs the delete instance command.- Parameters:
entityName
- The entity name of the instance that was removed.instanceId
- The ID of the instance that was created.instanceName
- The name of the instance that was removed.
-
-
Method Details
-
rollback
Description copied from interface:ITransactionalAction
Performs a roll-back on the current (sub)transaction.- Specified by:
rollback
in interfaceITransactionalAction
- Throws:
AppException
- This exception is thrown when the transaction could not be rolled back.
-
duplicate
Description copied from interface:ITransactionalAction
Returns a deep copy of the transaction.- Specified by:
duplicate
in interfaceITransactionalAction
- Returns:
- The copied action.
-