public interface Store<T>
| Modifier and Type | Method and Description |
|---|---|
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.
|
StoreType getType()
Collection<T> readAll()
T read(Serializable id)
id - id from the desired objectList<T> readWithFilter(ReadFilter filter)
filter - a filter to use to fetch an objectvoid save(T item)
item - Object to savevoid reset()
void remove(Serializable id)
id - Id of item to remoteCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.