- java.lang.Object
-
- io.ebean.event.changelog.BeanChange
-
public class BeanChange extends Object
A bean insert, update or delete change sent as part of a ChangeSet.
-
-
Constructor Summary
Constructors Constructor Description BeanChange()Constructor for JSON tools.BeanChange(String table, Object tenantId, Object id, ChangeType event, String data)Construct with change as JSON.BeanChange(String type, Object tenantId, Object id, ChangeType event, String data, String oldData)Construct with change as JSON.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetData()Return the change data in JSON form.ChangeTypegetEvent()Return the change type (INSERT, UPDATE or DELETE).longgetEventTime()Return the event time in epoch millis.ObjectgetId()Return the object id.StringgetOldData()Return the old data in JSON form.ObjectgetTenantId()Return the tenant id.StringgetType()Return the object type (typically table name).StringtoString()
-
-
-
Constructor Detail
-
BeanChange
public BeanChange()
Constructor for JSON tools.
-
BeanChange
public BeanChange(String type, Object tenantId, Object id, ChangeType event, String data, String oldData)
Construct with change as JSON.
-
BeanChange
public BeanChange(String table, Object tenantId, Object id, ChangeType event, String data)
Construct with change as JSON.
-
-
Method Detail
-
getType
public String getType()
Return the object type (typically table name).
-
getTenantId
public Object getTenantId()
Return the tenant id.
-
getId
public Object getId()
Return the object id.
-
getEvent
public ChangeType getEvent()
Return the change type (INSERT, UPDATE or DELETE).
-
getEventTime
public long getEventTime()
Return the event time in epoch millis.
-
getData
public String getData()
Return the change data in JSON form.
-
getOldData
public String getOldData()
Return the old data in JSON form.
-
-