Package com.db4o.internal.config
Class IdSystemConfigurationImpl
- java.lang.Object
-
- com.db4o.internal.config.IdSystemConfigurationImpl
-
- All Implemented Interfaces:
IdSystemConfiguration
public class IdSystemConfigurationImpl extends java.lang.Object implements IdSystemConfiguration
-
-
Constructor Summary
Constructors Constructor Description IdSystemConfigurationImpl(Config4Impl config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
useCustomSystem(IdSystemFactory factory)
configures db4o to use a custom ID system.void
useInMemorySystem()
configures db4o to use an in-memory ID system.void
usePointerBasedSystem()
configures db4o to store IDs as pointers.void
useSingleBTreeSystem()
configures db4o to use a single BTreeIdSystem on top of an InMemoryIdSystem.void
useStackedBTreeSystem()
configures db4o to use a stack of two BTreeIdSystems on top of an InMemoryIdSystem.
-
-
-
Constructor Detail
-
IdSystemConfigurationImpl
public IdSystemConfigurationImpl(Config4Impl config)
-
-
Method Detail
-
usePointerBasedSystem
public void usePointerBasedSystem()
Description copied from interface:IdSystemConfiguration
configures db4o to store IDs as pointers.- Specified by:
usePointerBasedSystem
in interfaceIdSystemConfiguration
-
useStackedBTreeSystem
public void useStackedBTreeSystem()
Description copied from interface:IdSystemConfiguration
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.- Specified by:
useStackedBTreeSystem
in interfaceIdSystemConfiguration
-
useInMemorySystem
public void useInMemorySystem()
Description copied from interface:IdSystemConfiguration
configures db4o to use an in-memory ID system. All IDs get written to the database file on every commit.- Specified by:
useInMemorySystem
in interfaceIdSystemConfiguration
-
useCustomSystem
public void useCustomSystem(IdSystemFactory factory)
Description copied from interface:IdSystemConfiguration
configures db4o to use a custom ID system. Pass anIdSystemFactory
that 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.- Specified by:
useCustomSystem
in interfaceIdSystemConfiguration
-
useSingleBTreeSystem
public void useSingleBTreeSystem()
Description copied from interface:IdSystemConfiguration
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 callIdSystemConfiguration.useStackedBTreeSystem()
.- Specified by:
useSingleBTreeSystem
in interfaceIdSystemConfiguration
-
-