Package com.db4o.config
Interface IdSystemConfiguration
-
- All Known Implementing Classes:
IdSystemConfigurationImpl
public interface IdSystemConfigurationInterface to configure the IdSystem.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiduseCustomSystem(IdSystemFactory factory)configures db4o to use a custom ID system.voiduseInMemorySystem()configures db4o to use an in-memory ID system.voidusePointerBasedSystem()configures db4o to store IDs as pointers.voiduseSingleBTreeSystem()configures db4o to use a single BTreeIdSystem on top of an InMemoryIdSystem.voiduseStackedBTreeSystem()configures db4o to use a stack of two BTreeIdSystems on top of an InMemoryIdSystem.
-
-
-
Method Detail
-
usePointerBasedSystem
void usePointerBasedSystem()
configures db4o to store IDs as pointers.
-
useStackedBTreeSystem
void useStackedBTreeSystem()
configures db4o to use a stack of two BTreeIdSystems on top of an InMemoryIdSystem. This setup is scalable for large numbers of IDs. It is the default configuration when new databases are created.
-
useSingleBTreeSystem
void useSingleBTreeSystem()
configures db4o to use a single BTreeIdSystem on top of an InMemoryIdSystem. This setup is suitable for smaller databases with a small number of IDs. For larger numbers of IDs calluseStackedBTreeSystem().
-
useInMemorySystem
void useInMemorySystem()
configures db4o to use an in-memory ID system. All IDs get written to the database file on every commit.
-
useCustomSystem
void useCustomSystem(IdSystemFactory factory)
configures db4o to use a custom ID system. Pass anIdSystemFactorythat creates the IdSystem. Note that this factory has to be configured every time you open a database that you configured to use a custom IdSystem.
-
-