Class SyncChange

java.lang.Object
io.objectbox.sync.SyncChange

@Beta public class SyncChange extends Object
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 Details

    • SyncChange

      public SyncChange(int entityTypeId, long[] changedIds, long[] removedIds)
    • SyncChange

      @Deprecated public SyncChange(long entityTypeId, long[] changedIds, long[] removedIds)
      Deprecated.
  • Method Details

    • getEntityTypeId

      public int getEntityTypeId()
      The entity type ID; use methods like BoxStore.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.