|
Spring Data Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
K
- entity keypublic interface ChangeSetPersister<K>
Interface to be implemented by classes that can synchronize between data stores and ChangeSets.
Nested Class Summary | |
---|---|
static class |
ChangeSetPersister.NotFoundException
Exception thrown in alternate control flow if getPersistentState finds no entity data. |
Field Summary | |
---|---|
static String |
CLASS_KEY
|
static String |
ID_KEY
|
Method Summary | |
---|---|
K |
getPersistentId(ChangeSetBacked entity,
ChangeSet cs)
Return id |
void |
getPersistentState(Class<? extends ChangeSetBacked> entityClass,
K key,
ChangeSet changeSet)
TODO how to tell when not found? |
K |
persistState(ChangeSetBacked entity,
ChangeSet cs)
Return key |
Field Detail |
---|
static final String ID_KEY
static final String CLASS_KEY
Method Detail |
---|
void getPersistentState(Class<? extends ChangeSetBacked> entityClass, K key, ChangeSet changeSet) throws DataAccessException, ChangeSetPersister.NotFoundException
DataAccessException
ChangeSetPersister.NotFoundException
K getPersistentId(ChangeSetBacked entity, ChangeSet cs) throws DataAccessException
entity
- cs
-
DataAccessException
K persistState(ChangeSetBacked entity, ChangeSet cs) throws DataAccessException
entity
- cs
- Key may be null if not persistent
DataAccessException
|
Spring Data Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |