public class DataManager extends Object
| Constructor and Description |
|---|
DataManager()
Creates a new DataManager using
DefaultIdGenerator and
DefaultStoreFactory |
DataManager(IdGenerator idGenerator)
Creates a new DataManager using the idGenerator parameter and
DefaultStoreFactory |
DataManager(IdGenerator idGenerator,
StoreFactory storeFactory)
Creates a DataManager using the supplied parameters
|
DataManager(StoreFactory storeFactory)
Creates a new DataManager using the storeFactory parameter and
DefaultIdGenerator |
| Modifier and Type | Method and Description |
|---|---|
Store |
get(String storeName)
Loads a given Store implementation, based on the given storeName argument.
|
Store |
remove(String storeName)
Removes a Store implementation from the DataManager.
|
Store |
store(String storeName)
Creates a new default (in memory) Store implementation.
|
Store |
store(String storeName,
StoreConfig config)
Creates a new Store implementation.
|
public DataManager()
DefaultIdGenerator and
DefaultStoreFactorypublic DataManager(IdGenerator idGenerator)
DefaultStoreFactoryidGenerator - IllegalArgumentException - if idGenerator is nullpublic DataManager(StoreFactory storeFactory)
DefaultIdGeneratorstoreFactory - IllegalArgumentException - if storeFactory is nullpublic DataManager(IdGenerator idGenerator, StoreFactory storeFactory)
idGenerator - storeFactory - IllegalArgumentException - if idGenerator is nullIllegalArgumentException - if storeFactory is nullpublic Store store(String storeName)
storeName - The name of the actual data store object.public Store store(String storeName, StoreConfig config)
storeName - The name of the actual data store object.config - The config object used to build the storepublic Store remove(String storeName)
storeName - The name of the actual data store object.Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.