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
FieldsModifier and TypeFieldDescriptionstatic 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, targetFields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionPdoEvent(PersistentDomainObject<?> pdo, javafx.event.EventTarget target, javafx.event.EventType<? extends PdoEvent> eventType) Creates a PDO event. -
Method Summary
Methods inherited from class javafx.event.Event
clone, consume, fireEvent, getTarget, isConsumedMethods inherited from class java.util.EventObject
getSource
-
Field Details
-
ANY
Common supertype for all PDO event types. -
CREATE
A new PDO has been inserted to the database. -
READ
A new PDO has been read from the database. -
UPDATE
An existing PDO has been updated to the database. -
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 PDOtarget- the event targeteventType- the event type
-
-
Method Details
-
getPdo
Gets the PDO.- Returns:
- the pdo
-
getEventType
- Overrides:
getEventTypein classjavafx.event.Event
-
copyFor
- Overrides:
copyForin classjavafx.event.Event
-
toString
- Overrides:
toStringin classEventObject
-