|
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.impl.datamanager.MemoryStorage<T>
public class MemoryStorage<T>
Memory implementation of Store Store.
| Constructor Summary | |
|---|---|
MemoryStorage(IdGenerator idGenerator)
|
|
| Method Summary | |
|---|---|
StoreType |
getType()
Returns the type of the underlying 'store implementation' |
T |
read(Serializable id)
Reads a specific object/record from the underlying storage system. |
Collection<T> |
readAll()
Reads all the data from the underlying storage system. |
List<T> |
readWithFilter(ReadFilter filter)
Search for objects/records from the underlying storage system. |
void |
remove(Serializable id)
Removes a specific object/record from the underlying storage system. |
void |
reset()
Resets the entire storage system. |
void |
save(T item)
Saves the given object in the underlying storage system. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MemoryStorage(IdGenerator idGenerator)
| Method Detail |
|---|
public StoreType getType()
getType in interface Store<T>public Collection<T> readAll()
readAll in interface Store<T>public T read(Serializable id)
read in interface Store<T>id - id from the desired object
public void save(T item)
Store
save in interface Store<T>item - Object to savepublic void reset()
reset in interface Store<T>public void remove(Serializable id)
remove in interface Store<T>id - Id of item to remotepublic List<T> readWithFilter(ReadFilter filter)
readWithFilter in interface Store<T>filter - a filter to use to fetch an object
IllegalArgumentException - if filter.query has nested objects
|
AeroGear Android Library 1.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||