| Modifier and Type | Field and Description |
|---|---|
protected String |
beanType
The type of the bean(s) read.
|
protected String |
bindLog
The bind log when the query was executed.
|
protected long |
eventTime
The time the bean change was created.
|
protected Object |
id
The id of the bean read.
|
protected List<Object> |
ids
The ids of the beans read.
|
protected String |
queryKey
The query key (relative to the bean type).
|
protected String |
source
User defined 'source' such as the application name.
|
protected Map<String,String> |
userContext
Arbitrary user context information expected to be optionally populated by ChangeLogPrepare.
|
protected String |
userId
Application user id expected to be optionally populated by ChangeLogPrepare.
|
protected String |
userIpAddress
Application user ip address expected to be optionally populated by ChangeLogPrepare.
|
| Modifier | Constructor and Description |
|---|---|
|
ReadEvent()
Constructor for JSON tools.
|
|
ReadEvent(String beanType)
Construct for many future list query.
|
protected |
ReadEvent(String beanType,
String queryKey,
String bindLog)
Common constructor for single bean and multi-bean read events.
|
|
ReadEvent(String beanType,
String queryKey,
String bindLog,
List<Object> ids)
Construct for many beans read.
|
|
ReadEvent(String beanType,
String queryKey,
String bindLog,
Object id)
Construct for a single bean read.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getBeanType()
Return the type of bean read.
|
String |
getBindLog()
Return the bind log used when executing the query.
|
long |
getEventTime()
Return the event date time.
|
Object |
getId()
Return the id of the bean read.
|
List<Object> |
getIds()
Return the ids of the beans read.
|
String |
getQueryKey()
Return the query key (relative to the bean type).
|
String |
getSource()
Return a code that identifies the source of the change (like the name of the application).
|
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 |
setBeanType(String beanType)
Set the type of bean read.
|
void |
setBindLog(String bindLog)
Set the bind log used when executing the query.
|
void |
setEventTime(long eventTime)
Set the event date time.
|
void |
setId(Object id)
Set the id of the bean read.
|
void |
setIds(List<Object> ids)
Set the ids of the beans read.
|
void |
setQueryKey(String queryKey)
Set the query key (relative to the bean type).
|
void |
setSource(String source)
Set the source of the change (like the name of the application).
|
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.
|
protected String userId
protected String userIpAddress
protected Map<String,String> userContext
protected long eventTime
protected ReadEvent(String beanType, String queryKey, String bindLog)
public ReadEvent(String beanType, String queryKey, String bindLog, Object id)
public ReadEvent(String beanType, String queryKey, String bindLog, List<Object> ids)
public ReadEvent()
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 String getBeanType()
public void setBeanType(String beanType)
public String getQueryKey()
public void setQueryKey(String queryKey)
public String getBindLog()
public void setBindLog(String bindLog)
public long getEventTime()
public void setEventTime(long eventTime)
Copyright © 2016. All rights reserved.