BoxStoreBuilder |
BoxStoreBuilder.androidContext(java.lang.Object context) |
|
BoxStoreBuilder |
BoxStoreBuilder.androidReLinker(java.lang.Object reLinkerInstance) |
Pass a custom ReLinkerInstance, for example ReLinker.log(logger) to use for loading the native library
on Android devices.
|
BoxStoreBuilder |
BoxStoreBuilder.baseDirectory(java.io.File baseDirectory) |
In combination with name(String), this lets you specify the location of where the DB files should be
stored.
|
static BoxStoreBuilder |
InternalAccess.clone(BoxStoreBuilder original,
java.lang.String namePostfix) |
|
(package private) BoxStoreBuilder |
BoxStoreBuilder.createClone(java.lang.String namePostfix) |
|
static BoxStoreBuilder |
BoxStoreBuilder.createDebugWithoutModel() |
Not for application use, for DebugCursor.
|
BoxStoreBuilder |
BoxStoreBuilder.debugFlags(int debugFlags) |
Debug flags typically enable additional logging, see DebugFlags for valid values.
|
BoxStoreBuilder |
BoxStoreBuilder.debugRelations() |
Enables some debug logging for relations.
|
BoxStoreBuilder |
BoxStoreBuilder.debugTransactions() |
Deprecated.
|
BoxStoreBuilder |
BoxStoreBuilder.directory(java.io.File directory) |
The directory where all database files should be placed in.
|
BoxStoreBuilder |
BoxStoreBuilder.failedReadTxAttemptCallback(TxCallback<?> failedReadTxAttemptCallback) |
Define a callback for failed read transactions during retires (see also queryAttempts(int)).
|
BoxStoreBuilder |
BoxStoreBuilder.fileMode(int mode) |
|
BoxStoreBuilder |
BoxStoreBuilder.initialDbFile(Factory<java.io.InputStream> initialDbFileFactory) |
Let's you specify a provider for a DB file to be used during initial start of the app (no DB file exists yet).
|
BoxStoreBuilder |
BoxStoreBuilder.initialDbFile(java.io.File initialDbFile) |
Let's you specify an DB file to be used during initial start of the app (no DB file exists yet).
|
BoxStoreBuilder |
BoxStoreBuilder.inMemory(java.lang.String identifier) |
Switches to an in-memory database using the given name as its identifier.
|
BoxStoreBuilder |
BoxStoreBuilder.maxDataSizeInKByte(long maxDataSizeInKByte) |
Sets the maximum size the data stored in the database can grow to.
|
BoxStoreBuilder |
BoxStoreBuilder.maxReaders(int maxReaders) |
Sets the maximum number of concurrent readers.
|
BoxStoreBuilder |
BoxStoreBuilder.maxSizeInKByte(long maxSizeInKByte) |
Sets the maximum size the database file can grow to.
|
(package private) BoxStoreBuilder |
BoxStoreBuilder.modelUpdate(ModelUpdate modelUpdate) |
|
BoxStoreBuilder |
BoxStoreBuilder.name(java.lang.String name) |
Name of the database, which will be used as a directory for database files.
|
BoxStoreBuilder |
BoxStoreBuilder.noReaderThreadLocals() |
Disables the usage of thread locals for "readers" related to read transactions.
|
BoxStoreBuilder |
BoxStoreBuilder.queryAttempts(int queryAttempts) |
For massive concurrent setups (app is using a lot of threads), you can enable automatic retries for queries.
|
BoxStoreBuilder |
BoxStoreBuilder.readOnly() |
Open the store in read-only mode: no schema update, no write transactions are allowed (would throw).
|
BoxStoreBuilder |
BoxStoreBuilder.usePreviousCommit() |
Ignores the latest data snapshot (committed transaction state) and uses the previous snapshot instead.
|
BoxStoreBuilder |
BoxStoreBuilder.validateOnOpen(short validateOnOpenModePages) |
When a database is opened, ObjectBox can perform additional consistency checks on its database structure.
|
BoxStoreBuilder |
BoxStoreBuilder.validateOnOpenKv() |
When a database is opened, ObjectBox can perform additional consistency checks on its database structure.
|
BoxStoreBuilder |
BoxStoreBuilder.validateOnOpenKv(short mode) |
When a database is opened, ObjectBox can perform additional consistency checks on its database structure.
|
BoxStoreBuilder |
BoxStoreBuilder.validateOnOpenPageLimit(long limit) |
|