Package io.objectbox.sync
Class SyncChange
- java.lang.Object
-
- io.objectbox.sync.SyncChange
-
@Beta public class SyncChange extends java.lang.ObjectA collection of changes made to one entity type during a sync transaction. Delivered viaSyncChangeListener. IDs of changed objects are available viagetChangedIds()and those of removed objects viagetRemovedIds().
-
-
Constructor Summary
Constructors Constructor Description SyncChange(int entityTypeId, long[] changedIds, long[] removedIds)SyncChange(long entityTypeId, long[] changedIds, long[] removedIds)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long[]getChangedIds()IDs of objects that have been changed; e.g.intgetEntityTypeId()The entity type ID; use methods likeBoxStore.getEntityTypeIdOrThrow(java.lang.Class<?>)to map with classes.long[]getRemovedIds()IDs of objects that have been removed.
-
-
-
Method Detail
-
getEntityTypeId
public int getEntityTypeId()
The entity type ID; use methods likeBoxStore.getEntityTypeIdOrThrow(java.lang.Class<?>)to map with classes.
-
getChangedIds
public long[] getChangedIds()
IDs of objects that have been changed; e.g. have been put/updated/inserted.
-
getRemovedIds
public long[] getRemovedIds()
IDs of objects that have been removed.
-
-