public interface DataStoreRegistry
| Modifier and Type | Method and Description |
|---|---|
<E,K extends Serializable> |
getDataStore(Class<E> entityType)
Finds the data store for the given entity type
|
boolean |
has(Class<?> entityType)
Used to determine whether or not a data store has been registered that supports the given entity type.
|
<E,K extends Serializable> |
register(DataStore<K,E> dataStore)
Registers a new data store.
|
<E,K extends Serializable> void register(DataStore<K,E> dataStore)
E - the type of the entitiesK - the type of the keysdataStore - the data store<E,K extends Serializable> DataStore<K,E> getDataStore(Class<E> entityType)
E - the type of the entitiesK - the type of the keysentityType - the entity typeDataStoreNotFoundException - if no data store can be found
for the given entity typeboolean has(Class<?> entityType)
entityType - the entity typeCopyright © 2014–2016. All rights reserved.