public static enum DataManagerEventSource.EventFireTime extends java.lang.Enum<DataManagerEventSource.EventFireTime> implements EventFireTime<DataManagerEvent>
Enum Constant and Description |
---|
afterWrite
called immediately after the DataNode is written (DataWriter.write), at this point any values that the write has added are present.
|
onAddData
called whenever DataManager.addData is called
|
onCommit
called when DataManager.commit is called, after nodes are linked together
|
onCreate
called whenever the DataManager creates a new DataNode (DataManager.getNewDataNode)
|
onInsert
Called immediately before a write is performed
|
onNothingToUpdate
Called after values are checked for an update call and there is nothing to be updated so no write will occur.
|
onUpdate
Called when values are to be updated in the underlying datasource as opposed to written as new values
|
onUpdatingValues
Called after values are checked for an update call and there is something to be updated.
|
onWrite
called immediately before the DataNode is written (DataWriter.write), after all internal data transformations, additions
|
onWriteError
Called when the data manager receives an exception on a write
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getDefaultReturnValue(DataManagerEvent data)
Gets the default value to return for this time from the data
|
static DataManagerEventSource.EventFireTime |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DataManagerEventSource.EventFireTime[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataManagerEventSource.EventFireTime onCreate
public static final DataManagerEventSource.EventFireTime onWrite
public static final DataManagerEventSource.EventFireTime onUpdate
public static final DataManagerEventSource.EventFireTime onNothingToUpdate
public static final DataManagerEventSource.EventFireTime onUpdatingValues
public static final DataManagerEventSource.EventFireTime afterWrite
public static final DataManagerEventSource.EventFireTime onCommit
public static final DataManagerEventSource.EventFireTime onAddData
public static final DataManagerEventSource.EventFireTime onInsert
public static final DataManagerEventSource.EventFireTime onWriteError
public static DataManagerEventSource.EventFireTime[] values()
for (DataManagerEventSource.EventFireTime c : DataManagerEventSource.EventFireTime.values()) System.out.println(c);
public static DataManagerEventSource.EventFireTime valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null@Nullable public java.lang.Object getDefaultReturnValue(DataManagerEvent data)
EventFireTime
getDefaultReturnValue
in interface EventFireTime<DataManagerEvent>
data
- The event data