|
AeroGear Android Library 1.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Store<T>
Represents an abstraction layer for a storage system.
| 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. |
| Method Detail |
|---|
StoreType getType()
Collection<T> readAll()
T read(Serializable id)
id - id from the desired object
List<T> readWithFilter(ReadFilter filter)
filter - a filter to use to fetch an object
void save(T item)
item - Object to savevoid reset()
void remove(Serializable id)
id - Id of item to remote
|
AeroGear Android Library 1.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||