Package io.objectbox

Class InternalAccess


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

      • InternalAccess

        public InternalAccess()
    • Method Detail

      • getActiveTx

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

        @Internal
        public static long getHandle​(io.objectbox.Transaction tx)
      • 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.