Class EmbeddedStorage
public final class EmbeddedStorage extends Object
 In the simplest case, the following call is enough to setup and start an embedded object graph database:
 EmbeddedStorageManager storage = EmbeddedStorage.start();
 Anything beyond that is optimization and customization. As it should be.
- 
Constructor SummaryConstructors Constructor Description EmbeddedStorage()
- 
Method SummaryModifier and Type Method Description static EmbeddedStorageConnectionFoundation<?>ConnectionFoundation(File directory)Deprecated.replaced byConnectionFoundation(Path)static EmbeddedStorageConnectionFoundation<?>ConnectionFoundation(Path directory)Pseudo-constructor method to create a newEmbeddedStorageConnectionFoundationinstance using the passed directory and default method references provided byPersistence.static EmbeddedStorageConnectionFoundation<?>ConnectionFoundation(PersistenceTypeDictionaryIoHandler typeDictionaryIoHandler)Pseudo-constructor method to create a newEmbeddedStorageConnectionFoundationinstance using the passedPersistenceTypeDictionaryIoHandlerand default method references provided byPersistence.static EmbeddedStorageConnectionFoundation<?>ConnectionFoundation(PersistenceTypeDictionaryIoHandler typeDictionaryIoHandler, PersistenceTypeEvaluator typeEvaluatorPersistable)Pseudo-constructor method to create a newEmbeddedStorageConnectionFoundationinstance using the passed logic instances as its essential parts.static EmbeddedStorageConnectionFoundation<?>ConnectionFoundation(StorageConfiguration configuration, PersistenceTypeEvaluator typeEvaluatorPersistable)static EmbeddedStorageFoundation<?>createFoundation()Creates an instance of anEmbeddedStorageFoundationdefault implementation without any assembly parts set.static PathdefaultStorageDirectory()Returns the default storage directory in the current working directory and with a filename defined byStorageFileProvider.Defaults.defaultStorageDirectory().static EmbeddedStorageFoundation<?>Foundation()Pseudo-constructor method to create a newEmbeddedStorageFoundationinstance usingdefaultStorageDirectory()as its storage directory and default values for itsStorageConfiguration.static EmbeddedStorageFoundation<?>Foundation(File directory)Deprecated.replaced byFoundation(Path)static EmbeddedStorageFoundation<?>Foundation(Path directory)Pseudo-constructor method to create a newEmbeddedStorageFoundationinstance using the passed directory and default values for the remaining parts of itsStorageConfiguration.static EmbeddedStorageFoundation<?>Foundation(StorageConfiguration configuration)Pseudo-constructor method to create a newEmbeddedStorageFoundationinstance using the passedStorageConfiguration.static EmbeddedStorageFoundation<?>Foundation(StorageConfiguration.Builder<?> configuration)Pseudo-constructor method to create a newEmbeddedStorageFoundationinstance using the passedStorageConfiguration.Builderto build itsStorageConfiguration.static EmbeddedStorageFoundation<?>Foundation(StorageConfiguration configuration, EmbeddedStorageConnectionFoundation<?> connectionFoundation)Pseudo-constructor method to create a newEmbeddedStorageFoundationinstance using the passedStorageConfigurationandEmbeddedStorageConnectionFoundation.static EmbeddedStorageManagerstart()Convenience method to configure, create and start aEmbeddedStorageManagerusing purely default values.static EmbeddedStorageManagerstart(File directory)Deprecated.replaced bystart(Path)static EmbeddedStorageManagerstart(Object root)Convenience method to configure, create and start aEmbeddedStorageManagerusing the passed root as the persistent entity graph's root instance and defaults for the remainings values.static EmbeddedStorageManagerstart(Object root, File directory)Deprecated.replaced bystart(Object,Path)static EmbeddedStorageManagerstart(Object root, Path directory)Convenience method to configure, create and start aEmbeddedStorageManagerusing the passed root as the persistent entity graph's root instance, the passed directory as its storage location and defaults for the remainings values.static EmbeddedStorageManagerstart(Object root, StorageConfiguration configuration)Convenience method to configure, create and start aEmbeddedStorageManagerusing the passed root as the persistent entity graph's root instance and the passedStorageConfiguration.static EmbeddedStorageManagerstart(Object root, StorageConfiguration.Builder<?> configuration)Convenience method to configure, create and start aEmbeddedStorageManagerusing the passed root as the persistent entity graph's root instance and the passedStorageConfiguration.Builderto build itsStorageConfiguration.static EmbeddedStorageManagerstart(Object root, StorageConfiguration configuration, EmbeddedStorageConnectionFoundation<?> connectionFoundation)Convenience method to configure, create and start aEmbeddedStorageManagerusing the passed root as the persistent entity graph's root instance,StorageConfigurationandEmbeddedStorageConnectionFoundation.static EmbeddedStorageManagerstart(Path directory)Convenience method to configure, create and start aEmbeddedStorageManagerusing the passed directory as its storage location and defaults for the remainings values.static EmbeddedStorageManagerstart(StorageConfiguration configuration)Convenience method to configure, create and start aEmbeddedStorageManagerusing the passedStorageConfiguration.static EmbeddedStorageManagerstart(StorageConfiguration.Builder<?> configuration)Convenience method to configure, create and start aEmbeddedStorageManagerusing the passedStorageConfiguration.Builderto build itsStorageConfiguration.static EmbeddedStorageManagerstart(StorageConfiguration configuration, EmbeddedStorageConnectionFoundation<?> connectionFoundation)Convenience method to configure, create and start aEmbeddedStorageManagerusing the passedStorageConfigurationandEmbeddedStorageConnectionFoundation.
- 
Constructor Details- 
EmbeddedStoragepublic EmbeddedStorage()
 
- 
- 
Method Details- 
createFoundationCreates an instance of anEmbeddedStorageFoundationdefault implementation without any assembly parts set.- Returns:
- a new EmbeddedStorageFoundationinstance.
 
- 
ConnectionFoundationpublic static final EmbeddedStorageConnectionFoundation<?> ConnectionFoundation(PersistenceTypeDictionaryIoHandler typeDictionaryIoHandler)Pseudo-constructor method to create a newEmbeddedStorageConnectionFoundationinstance using the passedPersistenceTypeDictionaryIoHandlerand default method references provided byPersistence.Calls ConnectionFoundation(PersistenceTypeDictionaryIoHandler,PersistenceTypeEvaluator)withPersistence.isPersistable(Class)method references as the other parameter.For explanations and customizing values, see ConnectionFoundation(PersistenceTypeDictionaryIoHandler,PersistenceTypeEvaluator).- Parameters:
- typeDictionaryIoHandler- a logic instance to handle a type dictionary's IO operations.
- Returns:
- a new EmbeddedStorageConnectionFoundationinstance.
- See Also:
- ConnectionFoundation(Path),- ConnectionFoundation(PersistenceTypeDictionaryIoHandler,PersistenceTypeEvaluator),- Persistence
 
- 
ConnectionFoundationpublic static final EmbeddedStorageConnectionFoundation<?> ConnectionFoundation(StorageConfiguration configuration, PersistenceTypeEvaluator typeEvaluatorPersistable)
- 
ConnectionFoundation@Deprecated public static final EmbeddedStorageConnectionFoundation<?> ConnectionFoundation(File directory)Deprecated.replaced byConnectionFoundation(Path)
- 
ConnectionFoundationPseudo-constructor method to create a newEmbeddedStorageConnectionFoundationinstance using the passed directory and default method references provided byPersistence.Calls ConnectionFoundation(PersistenceTypeDictionaryIoHandler)with aPersistenceTypeDictionaryIoHandlerinstance constructed from the passed directory.- Parameters:
- directory- the directory where the- PersistenceTypeDictionaryinformation will be stored.
- Returns:
- a new EmbeddedStorageConnectionFoundationinstance.
- See Also:
- PersistenceTypeDictionaryFileHandler.NewInDirectory(Path),- ConnectionFoundation(PersistenceTypeDictionaryIoHandler),- ConnectionFoundation(PersistenceTypeDictionaryIoHandler,PersistenceTypeEvaluator),- Persistence
 
- 
ConnectionFoundationpublic static final EmbeddedStorageConnectionFoundation<?> ConnectionFoundation(PersistenceTypeDictionaryIoHandler typeDictionaryIoHandler, PersistenceTypeEvaluator typeEvaluatorPersistable)Pseudo-constructor method to create a newEmbeddedStorageConnectionFoundationinstance using the passed logic instances as its essential parts.- Parameters:
- typeDictionaryIoHandler- a logic instance to handle a type dictionary's IO operations.
- typeEvaluatorPersistable- evaluator function to determine if instances of a type are persistable.
- Returns:
- a new EmbeddedStorageConnectionFoundationinstance.
- See Also:
- ConnectionFoundation(PersistenceTypeDictionaryIoHandler),- ConnectionFoundation(Path)
 
- 
defaultStorageDirectoryReturns the default storage directory in the current working directory and with a filename defined byStorageFileProvider.Defaults.defaultStorageDirectory().- Returns:
- the default storage directory located in the current working directory.
 
- 
FoundationPseudo-constructor method to create a newEmbeddedStorageFoundationinstance usingdefaultStorageDirectory()as its storage directory and default values for itsStorageConfiguration.Calls ConnectionFoundation(Path)withdefaultStorageDirectory().- Returns:
- a new all-default EmbeddedStorageFoundationinstance.
- See Also:
- Foundation(Path),- Foundation(StorageConfiguration),- Foundation(StorageConfiguration.Builder),- #Foundation(Path,StorageConfiguration.Builder),- Foundation(StorageConfiguration,EmbeddedStorageConnectionFoundation)
 
- 
FoundationDeprecated.replaced byFoundation(Path)
- 
FoundationPseudo-constructor method to create a newEmbeddedStorageFoundationinstance using the passed directory and default values for the remaining parts of itsStorageConfiguration.Calls Foundation(StorageConfiguration)with a newly createdStorageConfigurationusing the passed directory as its storage location.- Parameters:
- directory- the directory where the storage will be located.
- Returns:
- a new EmbeddedStorageFoundationinstance using the passed storage directory.
- See Also:
- Foundation(),- Foundation(StorageConfiguration),- Foundation(StorageConfiguration.Builder),- #Foundation(Path,StorageConfiguration.Builder),- Foundation(StorageConfiguration,EmbeddedStorageConnectionFoundation)
 
- 
FoundationPseudo-constructor method to create a newEmbeddedStorageFoundationinstance using the passedStorageConfiguration.- Parameters:
- configuration- the- StorageConfigurationto be used.
- Returns:
- a new EmbeddedStorageFoundationinstance using the passed configuration.
- See Also:
- Foundation(),- Foundation(Path),- Foundation(StorageConfiguration.Builder),- Foundation(StorageConfiguration,EmbeddedStorageConnectionFoundation)
 
- 
Foundationpublic static final EmbeddedStorageFoundation<?> Foundation(StorageConfiguration.Builder<?> configuration)Pseudo-constructor method to create a newEmbeddedStorageFoundationinstance using the passedStorageConfiguration.Builderto build itsStorageConfiguration.This is merely a convenience alias for Foundation(configuration.createConfiguration());- Parameters:
- configuration- the- StorageConfiguration.Builderto be used.
- Returns:
- a new EmbeddedStorageFoundationinstance using the passed directory and configuration.
- See Also:
- Foundation(),- Foundation(Path),- Foundation(StorageConfiguration),- Foundation(StorageConfiguration,EmbeddedStorageConnectionFoundation)
 
- 
Foundationpublic static final EmbeddedStorageFoundation<?> Foundation(StorageConfiguration configuration, EmbeddedStorageConnectionFoundation<?> connectionFoundation)Pseudo-constructor method to create a newEmbeddedStorageFoundationinstance using the passedStorageConfigurationandEmbeddedStorageConnectionFoundation.- Parameters:
- configuration- the- StorageConfigurationto be used.
- connectionFoundation- the- EmbeddedStorageConnectionFoundationinstance to be used for creating new connections, i.e. the context for issuing commands and storing and loading data.
- Returns:
- a new EmbeddedStorageFoundationinstance using the passed configuration.
- See Also:
- Foundation(),- Foundation(Path),- Foundation(StorageConfiguration),- Foundation(StorageConfiguration.Builder)
 
- 
startConvenience method to configure, create and start aEmbeddedStorageManagerusing purely default values.See Foundation()variants for more practical/configurable alternatives.- Returns:
- an EmbeddedStorageManagerinstance connected to an actively running database.
- See Also:
- start(Path),- start(StorageConfiguration),- start(StorageConfiguration.Builder),- #start(Path,StorageConfiguration.Builder),- start(StorageConfiguration,EmbeddedStorageConnectionFoundation)
 
- 
startDeprecated.replaced bystart(Path)
- 
startConvenience method to configure, create and start aEmbeddedStorageManagerusing the passed directory as its storage location and defaults for the remainings values.See Foundation()variants for more practical/configurable alternatives.- Parameters:
- directory- the directory where the storage will be located.
- Returns:
- an EmbeddedStorageManagerinstance connected to an actively running database.
- See Also:
- start(),- start(StorageConfiguration),- start(StorageConfiguration.Builder),- #start(Path,StorageConfiguration.Builder),- start(StorageConfiguration,EmbeddedStorageConnectionFoundation)
 
- 
startConvenience method to configure, create and start aEmbeddedStorageManagerusing the passedStorageConfiguration.See Foundation()variants for more practical/configurable alternatives.- Parameters:
- configuration- the- StorageConfigurationto be used.
- Returns:
- an EmbeddedStorageManagerinstance connected to an actively running database.
- See Also:
- start(),- start(Path),- start(StorageConfiguration.Builder),- #start(Path,StorageConfiguration.Builder),- start(StorageConfiguration,EmbeddedStorageConnectionFoundation)
 
- 
startConvenience method to configure, create and start aEmbeddedStorageManagerusing the passedStorageConfiguration.Builderto build itsStorageConfiguration.See Foundation()variants for more practical/configurable alternatives.- Parameters:
- configuration- the- StorageConfiguration.Builderto be used.
- Returns:
- an EmbeddedStorageManagerinstance connected to an actively running database.
- See Also:
- start(),- start(Path),- start(StorageConfiguration),- #start(Path,StorageConfiguration.Builder),- start(StorageConfiguration,EmbeddedStorageConnectionFoundation)
 
- 
startpublic static final EmbeddedStorageManager start(StorageConfiguration configuration, EmbeddedStorageConnectionFoundation<?> connectionFoundation)Convenience method to configure, create and start aEmbeddedStorageManagerusing the passedStorageConfigurationandEmbeddedStorageConnectionFoundation.See Foundation()variants for more practical/configurable alternatives.- Parameters:
- configuration- the- StorageConfigurationto be used.
- connectionFoundation- the- EmbeddedStorageConnectionFoundationto be used instead of a generically created one.
- Returns:
- an EmbeddedStorageManagerinstance connected to an actively running database.
- See Also:
- start(),- start(Path),- start(StorageConfiguration),- start(StorageConfiguration.Builder),- #start(Path,StorageConfiguration.Builder)
 
- 
startConvenience method to configure, create and start aEmbeddedStorageManagerusing the passed root as the persistent entity graph's root instance and defaults for the remainings values.See Foundation()variants for more practical/configurable alternatives.- Parameters:
- root- the explicitely defined root instance of the persistent entity graph.
- Returns:
- an EmbeddedStorageManagerinstance connected to an actively running database.
- See Also:
- start(Object,Path),- start(Object,StorageConfiguration),- start(Object,StorageConfiguration.Builder),- #start(Object,Path,StorageConfiguration.Builder),- start(Object,StorageConfiguration,EmbeddedStorageConnectionFoundation)
 
- 
startDeprecated.replaced bystart(Object,Path)
- 
startConvenience method to configure, create and start aEmbeddedStorageManagerusing the passed root as the persistent entity graph's root instance, the passed directory as its storage location and defaults for the remainings values.See Foundation()variants for more practical/configurable alternatives.- Parameters:
- root- the explicitely defined root instance of the persistent entity graph.
- directory- the directory where the storage will be located.
- Returns:
- an EmbeddedStorageManagerinstance connected to an actively running database.
- See Also:
- start(Object),- start(Object,StorageConfiguration),- start(Object,StorageConfiguration.Builder),- #start(Object,Path,StorageConfiguration.Builder),- start(Object,StorageConfiguration,EmbeddedStorageConnectionFoundation)
 
- 
startConvenience method to configure, create and start aEmbeddedStorageManagerusing the passed root as the persistent entity graph's root instance and the passedStorageConfiguration.See Foundation()variants for more practical/configurable alternatives.- Parameters:
- root- the explicitely defined root instance of the persistent entity graph.
- configuration- the- StorageConfigurationto be used.
- Returns:
- an EmbeddedStorageManagerinstance connected to an actively running database.
- See Also:
- start(Object),- start(Object,Path),- start(Object,StorageConfiguration.Builder),- #start(Object,Path,StorageConfiguration.Builder),- start(Object,StorageConfiguration,EmbeddedStorageConnectionFoundation)
 
- 
startpublic static final EmbeddedStorageManager start(Object root, StorageConfiguration.Builder<?> configuration)Convenience method to configure, create and start aEmbeddedStorageManagerusing the passed root as the persistent entity graph's root instance and the passedStorageConfiguration.Builderto build itsStorageConfiguration.See Foundation()variants for more practical/configurable alternatives.- Parameters:
- root- the explicitely defined root instance of the persistent entity graph.
- configuration- the- StorageConfiguration.Builderto be used.
- Returns:
- an EmbeddedStorageManagerinstance connected to an actively running database.
- See Also:
- start(Object),- start(Object,Path),- start(Object,StorageConfiguration),- #start(Object,Path,StorageConfiguration.Builder),- start(Object,StorageConfiguration,EmbeddedStorageConnectionFoundation)
 
- 
startpublic static final EmbeddedStorageManager start(Object root, StorageConfiguration configuration, EmbeddedStorageConnectionFoundation<?> connectionFoundation)Convenience method to configure, create and start aEmbeddedStorageManagerusing the passed root as the persistent entity graph's root instance,StorageConfigurationandEmbeddedStorageConnectionFoundation.See Foundation()variants for more practical/configurable alternatives.- Parameters:
- root- the explicitely defined root instance of the persistent entity graph.
- configuration- the- StorageConfigurationto be used.
- connectionFoundation- the- EmbeddedStorageConnectionFoundationto be used instead of agenerically created one.
- Returns:
- an EmbeddedStorageManagerinstance connected to an actively running database.
- See Also:
- start(Object),- start(Object,Path),- start(Object,StorageConfiguration),- start(Object,StorageConfiguration.Builder),- #start(Object,Path,StorageConfiguration.Builder)
 
 
-