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 |
encryptedStore(String storeName,
StoreConfig config,
String passphrase,
Class modelClass)
Creates a new Store implementation.
|
Store |
encryptedStore(String storeName,
String passphrase,
Class modelClass)
Creates a new default encrypted (in memory) Store implementation.
|
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 encryptedStore(String storeName, String passphrase, Class modelClass) throws InvalidKeySpecException
storeName - The name of the actual data store object.passphrase - The passphrase used to create a KeyStoremodelClass - The model class will be encryptedInvalidKeySpecExceptionpublic Store encryptedStore(String storeName, StoreConfig config, String passphrase, Class modelClass) throws InvalidKeySpecException
storeName - The name of the actual data store object.config - The config object used to build the storepassphrase - The passphrase used to create a KeyStoremodelClass - The model class will be encryptedInvalidKeySpecExceptionpublic Store remove(String storeName)
storeName - The name of the actual data store object.Copyright © 2013 JBoss by Red Hat. All Rights Reserved.