- java.lang.Object
-
- java.util.EventObject
-
- javafx.event.Event
-
- org.tentackle.fx.rdc.PdoEvent
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class PdoEvent extends javafx.event.EventEvent 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>ANYCommon supertype for all PDO event types.static javafx.event.EventType<PdoEvent>CREATEA new PDO has been inserted to the database.static javafx.event.EventType<PdoEvent>DELETEPDO has been deleted from the database.static javafx.event.EventType<PdoEvent>READA new PDO has been read from the database.static javafx.event.EventType<PdoEvent>UPDATEAn existing PDO has been updated to the database.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PdoEventcopyFor(java.lang.Object newSource, javafx.event.EventTarget newTarget)javafx.event.EventType<PdoEvent>getEventType()org.tentackle.pdo.PersistentDomainObject<?>getPdo()Gets the PDO.java.lang.StringtoString()
-
-
-
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 PDOtarget- the event targeteventType- 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:
getEventTypein classjavafx.event.Event
-
copyFor
public PdoEvent copyFor(java.lang.Object newSource, javafx.event.EventTarget newTarget)
- Overrides:
copyForin classjavafx.event.Event
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.util.EventObject
-
-