public interface Store<T>
| Modifier and Type | Method and Description |
|---|---|
StoreType |
getType()
Returns the type of the underlying 'store implementation'
|
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(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 remoteboolean isEmpty()
Copyright © 2014 JBoss by Red Hat. All rights reserved.