Package io.objectbox

Class InternalAccess

java.lang.Object
io.objectbox.InternalAccess

@Internal public class InternalAccess extends Object
Exposes internal APIs to tests and code in other packages.
  • Constructor Details

    • InternalAccess

      public InternalAccess()
  • Method Details

    • getActiveTx

      @Internal public static io.objectbox.Transaction getActiveTx(BoxStore boxStore)
    • getHandle

      @Internal public static long getHandle(io.objectbox.Transaction tx)
    • setSyncClient

      @Internal public static void setSyncClient(BoxStore boxStore, @Nullable SyncClient syncClient)
    • getWriter

      @Internal public static <T> io.objectbox.Cursor<T> getWriter(Box<T> box)
    • getActiveTxCursor

      @Internal public static <T> io.objectbox.Cursor<T> getActiveTxCursor(Box<T> box)
    • getActiveTxCursorHandle

      @Internal public static <T> long getActiveTxCursorHandle(Box<T> box)
    • commitWriter

      @Internal public static <T> void commitWriter(Box<T> box, io.objectbox.Cursor<T> writer)
    • enableCreationStackTracking

      @Internal public static void enableCreationStackTracking()
      Makes creation more expensive, but lets Finalizers show the creation stack for dangling resources.

      Currently used by integration tests.

    • clone

      @Internal public static BoxStoreBuilder clone(BoxStoreBuilder original, String namePostfix)