- boxFor
Returns a Box for the given type. Objects are put into (and get from) their
individual Box.
- close
Closes the BoxStore and frees associated resources. This method is useful for
unit tests; most real
- deleteAllFiles
Danger zone! This will delete all files in the given directory! No BoxStore may
be alive using the g
- getVersion
Gets the Version of ObjectBox Java.
- getVersionNative
Gets the Version of ObjectBox Core.
- runInReadTx
Runs the given runnable inside a read(-only) transaction. Multiple read
transactions can occur at th
- subscribe
Like #subscribe(), but wires the supplied @ io.objectbox.reactive.DataObserver
only to the given obj
- beginReadTx
Internal, low level method: use #runInReadTx(Runnable) instead. Begins a
transaction for read access
- beginTx
Internal, low level method: use #runInTx(Runnable) instead.
- callInReadTxWithRetry
Calls #callInReadTx(Callable) and retries in case a DbException is thrown. If
the given amount of at
- callInTx
Like #runInTx(Runnable), but allows returning a value and throwing an exception.
- closeThreadResources
Call this method from a thread that is about to be shutdown or likely not to use
ObjectBox anymore: