public class EhcacheDatastoreProvider extends BaseDatastoreProvider implements Startable, Stoppable, ServiceRegistryAwareService, Configurable
| Modifier and Type | Class and Description |
|---|---|
static class |
EhcacheDatastoreProvider.OgmTransactionManagerLookupDelegate |
| Constructor and Description |
|---|
EhcacheDatastoreProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Map map) |
LocalCacheManager<?,?,?> |
getCacheManager() |
Class<? extends GridDialect> |
getDefaultDialect()
Returns the
GridDialect type for the underlying datastore. |
KeyProvider<?,?,?> |
getKeyProvider() |
Class<? extends SchemaDefiner> |
getSchemaDefinerType()
Returns the type of the
SchemaDefiner of this datastore. |
void |
initializePersistenceStrategy(CacheMappingType cacheMappingType,
Set<EntityKeyMetadata> entityTypes,
Set<AssociationKeyMetadata> associationTypes,
Set<IdSourceKeyMetadata> idSourceTypes)
Initializes the persistence strategy to be used when accessing the datastore.
|
void |
injectServices(ServiceRegistryImplementor serviceRegistryImplementor) |
void |
start() |
void |
stop() |
allowsTransactionEmulation, getDefaultQueryParserServiceType, getTransactionCoordinatorBuilderpublic void configure(Map map)
configure in interface Configurablepublic Class<? extends GridDialect> getDefaultDialect()
DatastoreProviderGridDialect type for the underlying datastore.getDefaultDialect in interface DatastoreProviderGridDialect type; Never null.public void injectServices(ServiceRegistryImplementor serviceRegistryImplementor)
injectServices in interface ServiceRegistryAwareServicepublic void initializePersistenceStrategy(CacheMappingType cacheMappingType, Set<EntityKeyMetadata> entityTypes, Set<AssociationKeyMetadata> associationTypes, Set<IdSourceKeyMetadata> idSourceTypes)
cacheMappingType - the CacheMappingType to be usedentityTypes - meta-data of all the entity types registered with the current session factoryassociationTypes - meta-data of all the association types registered with the current session factoryidSourceTypes - meta-data of all the id source types registered with the current session factorypublic LocalCacheManager<?,?,?> getCacheManager()
public KeyProvider<?,?,?> getKeyProvider()
public Class<? extends SchemaDefiner> getSchemaDefinerType()
DatastoreProviderSchemaDefiner of this datastore. An instance of this type will be added to the
service registry using the SchemaDefiner service role.getSchemaDefinerType in interface DatastoreProvidergetSchemaDefinerType in class BaseDatastoreProviderCopyright © 2010-2017 Red Hat, Inc., Emmanuel Bernard and various contributors. All Rights Reserved.