Class LogicalEntityStoreConfig
java.lang.Object
io.vertigo.datastore.impl.entitystore.logical.LogicalEntityStoreConfig
This class defines how the dataSpaces are mapped to the physical stores.
A dataSpace is a set of collections.
A dataSpace has a name.
A dataSpace can have one dataStore.
- Author:
- pchretien, npiedeloup
-
Constructor Summary
ConstructorsConstructorDescriptionLogicalEntityStoreConfig(List<EntityStorePlugin> dataStorePlugins) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetConnectionName(String dataSpace) Provides the name of the connection.getPhysicalDataStore(io.vertigo.datamodel.data.definitions.DataDefinition dataDefinition) Provides a 'DataStorePlugin' for the specified 'DtDefinition'.
-
Constructor Details
-
LogicalEntityStoreConfig
Constructor.- Parameters:
dataStorePlugins- DataStore plugins
-
-
Method Details
-
getPhysicalDataStore
public EntityStorePlugin getPhysicalDataStore(io.vertigo.datamodel.data.definitions.DataDefinition dataDefinition) Provides a 'DataStorePlugin' for the specified 'DtDefinition'. Each DtDefinition is mapped to a collection.- Parameters:
dataDefinition- the DtDefinition- Returns:
- the dataStore used for the specified 'DtDefinition'
-
getConnectionName
Provides the name of the connection.- Parameters:
dataSpace- the dataSpace- Returns:
- the name of the connection
-