Package com.storedobject.core
Interface TriggerChangeEvent
- All Known Implementing Classes:
InventoryGRN
public interface TriggerChangeEvent
A marker interface to denote that the
StoredObject class that implements this will trigger an event
when a change is made to its instance data. The event is captured by the platform's internal event management system
and is made available for further processing. The change event is triggered only when the changes are saved to the
database.
Typically, the change is passed to a DataChangeNotifier once the transaction is committed. A
DataChangeNotifier can be registered with the platform by defining an entry in the
DataChangeNotifierLogic.
The DataChangeNotifier receives the changes as a list of DataChanged instances.
- Author:
- Syam
-
Method Summary
Modifier and TypeMethodDescriptiondefault bytechangeCode(DataChanged.CHANGE change) Get the current change code.
-
Method Details
-
changeCode
Get the current change code. Typically, change code is the ordinal value of theDataChanged.CHANGEpassed as the parameter. However, by returning a value above 9, a custom change code can be created. (This will be available to theDataChangeNotifierlater).- Parameters:
change- Change that happened now.- Returns:
- Change code.
-