Class DeleteEvent

    • Constructor Detail

      • DeleteEvent

        public DeleteEvent​(Object object,
                           EventSource source)
        Constructs a new DeleteEvent instance.
        Parameters:
        object - The entity to be deleted.
        source - The session from which the delete event was generated.
      • DeleteEvent

        public DeleteEvent​(String entityName,
                           Object object,
                           boolean cascadeDeleteEnabled,
                           EventSource source)
      • DeleteEvent

        public DeleteEvent​(String entityName,
                           Object object,
                           boolean cascadeDeleteEnabled,
                           boolean orphanRemovalBeforeUpdates,
                           EventSource source)
    • Method Detail

      • getObject

        public Object getObject()
        Returns the encapsulated entity to be deleted.
        Returns:
        The entity to be deleted.
      • getEntityName

        public String getEntityName()
      • isCascadeDeleteEnabled

        public boolean isCascadeDeleteEnabled()
      • isOrphanRemovalBeforeUpdates

        public boolean isOrphanRemovalBeforeUpdates()