|
AeroGear Android Library 1.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.aerogear.android.DataManager
public class DataManager
Represents an abstraction layer for a storage system.
As a note, you should NOT extend this class for production or application purposes. This class is made non-final ONLY for testing/mocking/academic purposes.
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataManager()
DefaultIdGenerator and
DefaultStoreFactory
public DataManager(IdGenerator idGenerator)
DefaultStoreFactory
idGenerator -
IllegalArgumentException - if idGenerator is nullpublic DataManager(StoreFactory storeFactory)
DefaultIdGenerator
storeFactory -
IllegalArgumentException - if storeFactory is null
public DataManager(IdGenerator idGenerator,
StoreFactory storeFactory)
idGenerator - storeFactory -
IllegalArgumentException - if idGenerator is null
IllegalArgumentException - if storeFactory is null| Method Detail |
|---|
public 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.public Store get(String storeName)
storeName - The name of the actual data store object.
|
AeroGear Android Library 1.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||