java.lang.Object
io.ebean.event.changelog.ChangeSet
Holds a set of changes.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBeanChange
(BeanChange beanChange) Add a bean change to the change set.Return the bean changes.Return a code that identifies the source of the change (like the name of the application).long
Returns the batch id.getTxnId()
Return the txnId.Return the transaction state.Return a user context value - anything you set yourself in ChangeLogListener prepare().Return the application user Id.Return the application users ip address.void
setChanges
(List<BeanChange> changes) Set the bean changes (used by JSON tools).void
Set the source of the change (like the name of the application).void
setTxnBatch
(long txnBatch) Sets the batch id (used by JSON tools).void
Set the txnId (used by JSON tools).void
setTxnState
(TxnState txnState) Set the state (used by JSON tools).void
setUserContext
(Map<String, String> userContext) Set a user context value (anything you like).void
Set the application user Id.void
setUserIpAddress
(String userIpAddress) Set the application users ip address.int
size()
Return the number of changes in the change set.toString()
-
Constructor Details
-
ChangeSet
Construct with a txnId. -
ChangeSet
public ChangeSet()Default constructor for JSON tools.
-
-
Method Details
-
toString
-
size
public int size()Return the number of changes in the change set. -
addBeanChange
Add a bean change to the change set. -
getTxnId
Return the txnId. -
setTxnId
Set the txnId (used by JSON tools). -
getTxnBatch
public long getTxnBatch()Returns the batch id. -
setTxnBatch
public void setTxnBatch(long txnBatch) Sets the batch id (used by JSON tools). -
getTxnState
Return the transaction state. This will be IN_PROGRESS for many changeSets in large transactions as the changeSets are sent in batches before the transaction has completed. -
setTxnState
Set the state (used by JSON tools). -
getSource
Return a code that identifies the source of the change (like the name of the application). -
setSource
Set the source of the change (like the name of the application). -
getUserId
Return the application user Id. -
setUserId
Set the application user Id.This can be set by the ChangeLogListener in the prepare() method which is called in the foreground thread.
-
getUserIpAddress
Return the application users ip address. -
setUserIpAddress
Set the application users ip address.This can be set by the ChangeLogListener in the prepare() method which is called in the foreground thread.
-
getUserContext
Return a user context value - anything you set yourself in ChangeLogListener prepare(). -
setUserContext
Set a user context value (anything you like).This can be set by the ChangeLogListener in the prepare() method which is called in the foreground thread.
-
getChanges
Return the bean changes. -
setChanges
Set the bean changes (used by JSON tools).
-