Package io.objectbox
Class InternalAccess
- java.lang.Object
-
- io.objectbox.InternalAccess
-
@Internal public class InternalAccess extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description InternalAccess()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> voidcommitWriter(Box<T> box, io.objectbox.Cursor<T> writer)static voidenableCreationStackTracking()Makes creation more expensive, but lets Finalizers show the creation stack for dangling resources.static io.objectbox.TransactiongetActiveTx(BoxStore boxStore)static <T> io.objectbox.Cursor<T>getActiveTxCursor(Box<T> box)static <T> longgetActiveTxCursorHandle(Box<T> box)static longgetHandle(BoxStore boxStore)static longgetHandle(io.objectbox.Cursor reader)static longgetHandle(io.objectbox.Transaction tx)static <T> io.objectbox.Cursor<T>getReader(Box<T> box)static <T> io.objectbox.Cursor<T>getWriter(Box<T> box)static <T> voidreleaseReader(Box<T> box, io.objectbox.Cursor<T> reader)static <T> voidreleaseWriter(Box<T> box, io.objectbox.Cursor<T> writer)static voidsetSyncClient(BoxStore boxStore, SyncClient syncClient)
-
-
-
Method Detail
-
getReader
public static <T> io.objectbox.Cursor<T> getReader(Box<T> box)
-
getHandle
public static long getHandle(BoxStore boxStore)
-
getActiveTx
public static io.objectbox.Transaction getActiveTx(BoxStore boxStore)
-
getHandle
public static long getHandle(io.objectbox.Cursor reader)
-
getHandle
public static long getHandle(io.objectbox.Transaction tx)
-
setSyncClient
public static void setSyncClient(BoxStore boxStore, @Nullable SyncClient syncClient)
-
releaseReader
public static <T> void releaseReader(Box<T> box, io.objectbox.Cursor<T> reader)
-
getWriter
public static <T> io.objectbox.Cursor<T> getWriter(Box<T> box)
-
getActiveTxCursor
public static <T> io.objectbox.Cursor<T> getActiveTxCursor(Box<T> box)
-
getActiveTxCursorHandle
public static <T> long getActiveTxCursorHandle(Box<T> box)
-
releaseWriter
public static <T> void releaseWriter(Box<T> box, io.objectbox.Cursor<T> writer)
-
commitWriter
public static <T> void commitWriter(Box<T> box, io.objectbox.Cursor<T> writer)
-
enableCreationStackTracking
public static void enableCreationStackTracking()
Makes creation more expensive, but lets Finalizers show the creation stack for dangling resources.
-
-