Uses of Class
io.objectbox.BoxStoreBuilder
Packages that use BoxStoreBuilder
Package
Description
ObjectBox is an an easy to use, object-oriented lightweight database and a full alternative to SQLite.
ObjectBox Sync allows to automatically synchronize local data with a sync
destination (e.g.
-
Uses of BoxStoreBuilder in io.objectbox
Methods in io.objectbox that return BoxStoreBuilderModifier and TypeMethodDescriptionBoxStoreBuilder.androidContext(Object context) Use on Android to pass a Context for loading the native library and, if not aninMemory(String)database, for creating the base directory for database files in the files directory of the app.BoxStoreBuilder.androidReLinker(Object reLinkerInstance) Pass a custom ReLinkerInstance, for exampleReLinker.log(logger)to use for loading the native library on Android devices.BoxStoreBuilder.baseDirectory(File baseDirectory) In combination withname(String), this lets you specify the location of where the DB files should be stored.static BoxStoreBuilderInternalAccess.clone(BoxStoreBuilder original, String namePostfix) (package private) BoxStoreBuilderBoxStoreBuilder.createClone(String namePostfix) static BoxStoreBuilderBoxStoreBuilder.createDebugWithoutModel()Not for application use, for DebugCursor.BoxStoreBuilder.debugFlags(int debugFlags) Debug flags typically enable additional logging, seeDebugFlagsfor valid values.BoxStoreBuilder.debugRelations()Enables some debug logging for relations.BoxStoreBuilder.debugTransactions()Deprecated.The directory where all database files should be placed in.BoxStoreBuilder.failedReadTxAttemptCallback(TxCallback<?> failedReadTxAttemptCallback) Define a callback for failed read transactions during retires (see alsoqueryAttempts(int)).BoxStoreBuilder.fileMode(int mode) Specify unix-style file permissions for database files.BoxStoreBuilder.initialDbFile(Factory<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.initialDbFile(File initialDbFile) Let's you specify an DB file to be used during initial start of the app (no DB file exists yet).Switches to an in-memory database using the given name as its identifier.BoxStoreBuilder.maxDataSizeInKByte(long maxDataSizeInKByte) Sets the maximum size the data stored in the database can grow to.BoxStoreBuilder.maxReaders(int maxReaders) Sets the maximum number of concurrent readers.BoxStoreBuilder.maxSizeInKByte(long maxSizeInKByte) Sets the maximum size the database file can grow to.(package private) BoxStoreBuilderBoxStoreBuilder.modelUpdate(ModelUpdate modelUpdate) Name of the database, which will be used as a directory for database files.BoxStoreBuilder.noReaderThreadLocals()Disables the usage of thread locals for "readers" related to read transactions.BoxStoreBuilder.queryAttempts(int queryAttempts) For massive concurrent setups (app is using a lot of threads), you can enable automatic retries for queries.BoxStoreBuilder.readOnly()Open the store in read-only mode: no schema update, no write transactions are allowed (would throw).BoxStoreBuilder.usePreviousCommit()Ignores the latest data snapshot (committed transaction state) and uses the previous snapshot instead.BoxStoreBuilder.validateOnOpen(short validateOnOpenModePages) When a database is opened, ObjectBox can perform additional consistency checks on its database structure.BoxStoreBuilder.validateOnOpenKv()When a database is opened, ObjectBox can perform additional consistency checks on its database structure.BoxStoreBuilder.validateOnOpenKv(short mode) When a database is opened, ObjectBox can perform additional consistency checks on its database structure.BoxStoreBuilder.validateOnOpenPageLimit(long limit) To fine-tunevalidateOnOpen(short), you can specify a limit on how much data is looked at.Methods in io.objectbox with parameters of type BoxStoreBuilderModifier and TypeMethodDescriptionstatic BoxStoreBuilderInternalAccess.clone(BoxStoreBuilder original, String namePostfix) Constructors in io.objectbox with parameters of type BoxStoreBuilder -
Uses of BoxStoreBuilder in io.objectbox.sync
Methods in io.objectbox.sync with parameters of type BoxStoreBuilderModifier and TypeMethodDescriptionstatic SyncHybridBuilderSync.hybrid(BoxStoreBuilder storeBuilder, String url, SyncCredentials authenticatorCredentials) Starts building aSyncHybrid, a client/server hybrid typically used for embedded cluster setups.Constructors in io.objectbox.sync with parameters of type BoxStoreBuilderModifierConstructorDescription(package private)SyncHybridBuilder(BoxStoreBuilder storeBuilder, String url, SyncCredentials authenticatorCredentials) Internal API; useSync.hybrid(BoxStoreBuilder, String, SyncCredentials)instead.
debugFlagsinstead.