Package io.ebean.event.changelog
Provides a built in change log mechanism and can audit changes.
Although you can build something similar using existing event adapters such as BeanPersistController
this is built for purpose to reduce the effort and provide optimal performance for auditing or logging changes.
By default you can annotate beans with @ChangeLog
and associated change events are logged by default
in a JSON form with appropriate auditing attributes such as who made the changes and ip address of the user etc
via implementation of ChangeLogPrepare
-
Interface Summary Interface Description ChangeLogFilter Used to provide fine grained control over what persist requests are included in the change log.ChangeLogListener Listen for changes.ChangeLogPrepare Listen for changes.ChangeLogRegister Used to assign ChangeLogFilters to bean types. -
Class Summary Class Description BeanChange A bean insert, update or delete change sent as part of a ChangeSet.ChangeSet Holds a set of changes. -
Enum Summary Enum Description ChangeType The type of the change.TxnState Transaction state when ChangeSets are sent to the ChangeSetListener.