Package io.ebean.event.changelog
Class BeanChange
java.lang.Object
io.ebean.event.changelog.BeanChange
A bean insert, update or delete change sent as part of a ChangeSet.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor 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
Modifier and TypeMethodDescriptiongetData()Return the change data in JSON form.getEvent()Return the change type (INSERT, UPDATE or DELETE).longReturn the event time in epoch millis.getId()Return the object id.Return the old data in JSON form.Return the tenant id.getType()Return the object type (typically table name).toString()
-
Constructor Details
-
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
Construct with change as JSON.
-
-
Method Details
-
toString
-
getType
Return the object type (typically table name). -
getTenantId
Return the tenant id. -
getId
Return the object id. -
getEvent
Return the change type (INSERT, UPDATE or DELETE). -
getEventTime
Return the event time in epoch millis. -
getData
Return the change data in JSON form. -
getOldData
Return the old data in JSON form.
-