public interface BackingStore<T,PK>
| Modifier and Type | Method and Description |
|---|---|
void |
add(PK primaryKey,
T obj)
Adds object to the backing store.
|
Iterable<T> |
load() |
T |
load(PK primaryKey)
This method is invoked only if the object store
getByPrimaryKey() is invoked and the primary key is not
present in the object store.
|
void |
remove(PK primaryKey,
T obj)
Removes object from the backing store.
|
void |
update(PK primaryKey,
T obj)
Updates object in the backing store.
|
T load(PK primaryKey)
primaryKey - void add(PK primaryKey, T obj)
primaryKey - Primary key value, if object store is configured
with primary key extractor, null otherwise.obj - Object to store.void remove(PK primaryKey, T obj)
primaryKey - Primary key value, if object store is configured
with primary key extractor, null otherwise.obj - Object to remove.