public interface Store<T>
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEmpty()
Checks if the storage system contains no stored elements.
|
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(org.jboss.aerogear.android.core.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(Collection<T> items)
Saves the given objects in the underlying storage system.
|
void |
save(T item)
Saves the given object in the underlying storage system.
|
Collection<T> readAll()
T read(Serializable id)
id - id from the desired objectList<T> readWithFilter(org.jboss.aerogear.android.core.ReadFilter filter)
filter - a filter to use to fetch an objectvoid save(T item)
item - Object to savevoid save(Collection<T> items)
items - List of objects to savevoid reset()
void remove(Serializable id)
id - Id of item to remoteboolean isEmpty()
Copyright © 2016 JBoss by Red Hat. All rights reserved.