Interface EntityAction

All Known Implementing Classes:
DeleteAllByIdEntityAction, DeleteAllEntityAction, DeleteByIdEntityAction, DeleteEntityAction, InsertAllEntityAction, InsertEntityAction, UpdateEntityAction

public interface EntityAction
Represents an action to be performed on entities, defining methods for execution, obtaining the entity class, retrieving entities involved in the action, and determining the action type.
Since:
1.0
Author:
Blyzhnytsia Team
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Executes the entity action.
    Gets the type of action to be performed on the entities, such as INSERT, UPDATE, or DELETE.
    Gets the collection of entities involved in the action.
    Gets the class of the entity associated with the action.
  • Method Details

    • execute

      void execute()
      Executes the entity action.
    • getEntityClass

      Class<?> getEntityClass()
      Gets the class of the entity associated with the action.
      Returns:
      The Class object representing the entity class.
    • getEntities

      Collection<?> getEntities()
      Gets the collection of entities involved in the action.
      Returns:
      A collection of entities associated with the action.
    • getActionType

      ActionType getActionType()
      Gets the type of action to be performed on the entities, such as INSERT, UPDATE, or DELETE.
      Returns:
      The ActionType representing the type of entity action.