Package io.objectbox.sync
Class SyncChange
java.lang.Object
io.objectbox.sync.SyncChange
A collection of changes made to one entity type during a sync transaction.
Delivered via
SyncChangeListener
.
IDs of changed objects are available via getChangedIds()
and those of removed objects via
getRemovedIds()
.-
Constructor Summary
ConstructorsConstructorDescriptionSyncChange
(int entityTypeId, long[] changedIds, long[] removedIds) SyncChange
(long entityTypeId, long[] changedIds, long[] removedIds) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionlong[]
IDs of objects that have been changed; e.g.int
The entity type ID; use methods likeBoxStore.getEntityTypeIdOrThrow(java.lang.Class<?>)
to map with classes.long[]
IDs of objects that have been removed.
-
Constructor Details
-
SyncChange
public SyncChange(int entityTypeId, long[] changedIds, long[] removedIds) -
SyncChange
Deprecated.
-
-
Method Details
-
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.
-