Class LogicalEntityStoreConfig

java.lang.Object
io.vertigo.datastore.impl.entitystore.logical.LogicalEntityStoreConfig

public final class LogicalEntityStoreConfig extends Object
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 Details

    • LogicalEntityStoreConfig

      public LogicalEntityStoreConfig(List<EntityStorePlugin> dataStorePlugins)
      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

      public String getConnectionName(String dataSpace)
      Provides the name of the connection.
      Parameters:
      dataSpace - the dataSpace
      Returns:
      the name of the connection