Package io.ebean.event.changelog
Class BeanChange
- 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 String
getData()
Return the change data in JSON form.ChangeType
getEvent()
Return the change type (INSERT, UPDATE or DELETE).long
getEventTime()
Return the event time in epoch millis.Object
getId()
Return the object id.String
getOldData()
Return the old data in JSON form.Object
getTenantId()
Return the tenant id.String
getType()
Return the object type (typically table name).String
toString()
-
-
-
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
-
getTenantId
public Object getTenantId()
Return the tenant id.
-
getEvent
public ChangeType getEvent()
Return the change type (INSERT, UPDATE or DELETE).
-
getEventTime
public long getEventTime()
Return the event time in epoch millis.
-
getOldData
public String getOldData()
Return the old data in JSON form.
-
-