Constructor and Description |
---|
ChangeSet()
Default constructor for JSON tools.
|
ChangeSet(String txnId,
long txnBatch)
Construct with a txnId.
|
Modifier and Type | Method and Description |
---|---|
void |
addBeanChange(BeanChange beanChange)
Add a bean change to the change set.
|
List<BeanChange> |
getChanges()
Return the bean changes.
|
String |
getSource()
Return a code that identifies the source of the change (like the name of the application).
|
long |
getTxnBatch()
Returns the batch id.
|
String |
getTxnId()
Return the txnId.
|
TxnState |
getTxnState()
Return the transaction state.
|
Map<String,String> |
getUserContext()
Return a user context value - anything you set yourself in ChangeLogListener prepare().
|
String |
getUserId()
Return the application user Id.
|
String |
getUserIpAddress()
Return the application users ip address.
|
void |
setChanges(List<BeanChange> changes)
Set the bean changes (used by JSON tools).
|
void |
setSource(String source)
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 |
setTxnId(String txnId)
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 |
setUserId(String userId)
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.
|
String |
toString() |
public ChangeSet()
public int size()
public void addBeanChange(BeanChange beanChange)
public long getTxnBatch()
public void setTxnBatch(long txnBatch)
public TxnState getTxnState()
public void setTxnState(TxnState txnState)
public String getSource()
public void setSource(String source)
public void setUserId(String userId)
This can be set by the ChangeLogListener in the prepare() method which is called in the foreground thread.
public String getUserIpAddress()
public void setUserIpAddress(String userIpAddress)
This can be set by the ChangeLogListener in the prepare() method which is called in the foreground thread.
public Map<String,String> getUserContext()
public void setUserContext(Map<String,String> userContext)
This can be set by the ChangeLogListener in the prepare() method which is called in the foreground thread.
public List<BeanChange> getChanges()
public void setChanges(List<BeanChange> changes)
Copyright © 2019. All rights reserved.