Class PdoEvent

java.lang.Object
java.util.EventObject
javafx.event.Event
org.tentackle.fx.rdc.PdoEvent
All Implemented Interfaces:
Serializable, Cloneable

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

    Fields
    Modifier and Type
    Field
    Description
    static final javafx.event.EventType<PdoEvent>
    Common supertype for all PDO event types.
    static final javafx.event.EventType<PdoEvent>
    A new PDO has been inserted to the database.
    static final javafx.event.EventType<PdoEvent>
    PDO has been deleted from the database.
    static final javafx.event.EventType<PdoEvent>
    A new PDO has been read from the database.
    static final javafx.event.EventType<PdoEvent>
    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(PersistentDomainObject<?> pdo, javafx.event.EventTarget target, javafx.event.EventType<? extends PdoEvent> eventType)
    Creates a PDO event.
  • Method Summary

    Modifier and Type
    Method
    Description
    copyFor(Object newSource, javafx.event.EventTarget newTarget)
     
    javafx.event.EventType<PdoEvent>
     
    Gets the PDO.
     

    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 Details

    • 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 Details

    • PdoEvent

      public PdoEvent(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 Details

    • getPdo

      public 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(Object newSource, javafx.event.EventTarget newTarget)
      Overrides:
      copyFor in class javafx.event.Event
    • toString

      public String toString()
      Overrides:
      toString in class EventObject