Class PdoEvent

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public class PdoEvent
    extends javafx.event.Event
    Event related to persistence operations on a PDO.
    Author:
    harald
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static javafx.event.EventType<PdoEvent> ANY
      Common supertype for all PDO event types.
      static javafx.event.EventType<PdoEvent> CREATE
      A new PDO has been inserted to the database.
      static javafx.event.EventType<PdoEvent> DELETE
      PDO has been deleted from the database.
      static javafx.event.EventType<PdoEvent> READ
      A new PDO has been read from the database.
      static javafx.event.EventType<PdoEvent> UPDATE
      An existing PDO has been updated to the database.
      • Fields inherited from class javafx.event.Event

        consumed, eventType, NULL_SOURCE_TARGET, target
      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      PdoEvent​(org.tentackle.pdo.PersistentDomainObject<?> pdo, javafx.event.EventTarget target, javafx.event.EventType<? extends PdoEvent> eventType)
      Creates a PDO event.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      PdoEvent copyFor​(java.lang.Object newSource, javafx.event.EventTarget newTarget)  
      javafx.event.EventType<PdoEvent> getEventType()  
      org.tentackle.pdo.PersistentDomainObject<?> getPdo()
      Gets the PDO.
      java.lang.String toString()  
      • Methods inherited from class javafx.event.Event

        clone, consume, fireEvent, getTarget, isConsumed
      • Methods inherited from class java.util.EventObject

        getSource
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • ANY

        public static final javafx.event.EventType<PdoEvent> ANY
        Common supertype for all PDO event types.
      • CREATE

        public static final javafx.event.EventType<PdoEvent> CREATE
        A new PDO has been inserted to the database.
      • READ

        public static final javafx.event.EventType<PdoEvent> READ
        A new PDO has been read from the database.
      • UPDATE

        public static final javafx.event.EventType<PdoEvent> UPDATE
        An existing PDO has been updated to the database.
      • DELETE

        public static final javafx.event.EventType<PdoEvent> DELETE
        PDO has been deleted from the database.
    • Constructor Detail

      • PdoEvent

        public PdoEvent​(org.tentackle.pdo.PersistentDomainObject<?> pdo,
                        javafx.event.EventTarget target,
                        javafx.event.EventType<? extends PdoEvent> eventType)
        Creates a PDO event.
        Parameters:
        pdo - the PDO
        target - the event target
        eventType - the event type
    • Method Detail

      • getPdo

        public org.tentackle.pdo.PersistentDomainObject<?> getPdo()
        Gets the PDO.
        Returns:
        the pdo
      • getEventType

        public javafx.event.EventType<PdoEvent> getEventType()
        Overrides:
        getEventType in class javafx.event.Event
      • copyFor

        public PdoEvent copyFor​(java.lang.Object newSource,
                                javafx.event.EventTarget newTarget)
        Overrides:
        copyFor in class javafx.event.Event
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.util.EventObject