Package io.ebean.event.readaudit
Class ReadEvent
- java.lang.Object
- 
- io.ebean.event.readaudit.ReadEvent
 
- 
- 
Constructor SummaryConstructors Constructor Description ReadEvent()Constructor for JSON tools.ReadEvent(String beanType)Construct for many future list query.ReadEvent(String beanType, String queryKey, String bindLog, Object id)Construct for a single bean read.ReadEvent(String beanType, String queryKey, String bindLog, List<Object> ids)Construct for many beans read.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBeanType()Return the type of bean read.StringgetBindLog()Return the bind log used when executing the query.longgetEventTime()Return the event date time.ObjectgetId()Return the id of the bean read.List<Object>getIds()Return the ids of the beans read.StringgetQueryKey()Return the query key (relative to the bean type).StringgetSource()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().StringgetUserId()Return the application user Id.StringgetUserIpAddress()Return the application users ip address.voidsetBeanType(String beanType)Set the type of bean read.voidsetBindLog(String bindLog)Set the bind log used when executing the query.voidsetEventTime(long eventTime)Set the event date time.voidsetId(Object id)Set the id of the bean read.voidsetIds(List<Object> ids)Set the ids of the beans read.voidsetQueryKey(String queryKey)Set the query key (relative to the bean type).voidsetSource(String source)Set the source of the change (like the name of the application).voidsetUserContext(Map<String,String> userContext)Set a user context value (anything you like).voidsetUserId(String userId)Set the application user Id.voidsetUserIpAddress(String userIpAddress)Set the application users ip address.
 
- 
- 
- 
Constructor Detail- 
ReadEventpublic ReadEvent(String beanType, String queryKey, String bindLog, Object id) Construct for a single bean read.
 - 
ReadEventpublic ReadEvent(String beanType, String queryKey, String bindLog, List<Object> ids) Construct for many beans read.
 - 
ReadEventpublic ReadEvent() Constructor for JSON tools.
 
- 
 - 
Method Detail- 
getSourcepublic String getSource() Return a code that identifies the source of the change (like the name of the application).
 - 
setSourcepublic void setSource(String source) Set the source of the change (like the name of the application).
 - 
setUserIdpublic void setUserId(String userId) Set the application user Id.This can be set by the ChangeLogListener in the prepare() method which is called in the foreground thread. 
 - 
getUserIpAddresspublic String getUserIpAddress() Return the application users ip address.
 - 
setUserIpAddresspublic void setUserIpAddress(String userIpAddress) Set the application users ip address.This can be set by the ChangeLogListener in the prepare() method which is called in the foreground thread. 
 - 
getUserContextpublic Map<String,String> getUserContext() Return a user context value - anything you set yourself in ChangeLogListener prepare().
 - 
setUserContextpublic void setUserContext(Map<String,String> userContext) 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. 
 - 
getBeanTypepublic String getBeanType() Return the type of bean read.
 - 
setBeanTypepublic void setBeanType(String beanType) Set the type of bean read.
 - 
getQueryKeypublic String getQueryKey() Return the query key (relative to the bean type).
 - 
setQueryKeypublic void setQueryKey(String queryKey) Set the query key (relative to the bean type).
 - 
getBindLogpublic String getBindLog() Return the bind log used when executing the query.
 - 
setBindLogpublic void setBindLog(String bindLog) Set the bind log used when executing the query.
 - 
getEventTimepublic long getEventTime() Return the event date time.
 - 
setEventTimepublic void setEventTime(long eventTime) Set the event date time.
 
- 
 
-