Class DeleteEntityAction<T>
java.lang.Object
io.github.blyznytsiaorg.bibernate.actionqueue.impl.DeleteEntityAction<T>
- Type Parameters:
T
- The generic type representing the entity class.
- All Implemented Interfaces:
EntityAction
Represents an entity action for deleting a collection of entities in the Bibernate framework. This action is
associated with a specific entity class and a collection of entities to be deleted.
Upon execution, the action deletes all entities in the collection from the data store.
- Since:
- 1.0
- Author:
- Blyzhnytsia Team
-
Field Summary
Modifier and TypeFieldDescriptionprivate final BibernateSession
The Bibernate session associated with the DeleteEntityAction, providing access to the underlying data access operations and the execution context for the entity deletion action.private final Collection
<T> A collection of entities to be deleted.The Class object representing the type of entities to be deleted.private final Runnable
Runnable to remove cache and snapshot. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
Executes the entity action by deleting all entities in the collection from the data store.Gets the type of action, which isDELETE
.Gets the collection of entities to be deleted.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.github.blyznytsiaorg.bibernate.actionqueue.EntityAction
getEntityClass
-
Field Details
-
bibernateSession
The Bibernate session associated with the DeleteEntityAction, providing access to the underlying data access operations and the execution context for the entity deletion action. -
entityClass
The Class object representing the type of entities to be deleted. -
entities
A collection of entities to be deleted. -
removeCacheAndSnapshot
Runnable to remove cache and snapshot.
-
-
Constructor Details
-
DeleteEntityAction
public DeleteEntityAction()
-
-
Method Details
-
execute
public void execute()Executes the entity action by deleting all entities in the collection from the data store.- Specified by:
execute
in interfaceEntityAction
-
getEntities
Gets the collection of entities to be deleted.- Specified by:
getEntities
in interfaceEntityAction
- Returns:
- A collection of entities associated with the delete action.
-
getActionType
Gets the type of action, which isDELETE
.- Specified by:
getActionType
in interfaceEntityAction
- Returns:
- The ActionType representing the type of entity action.
-