|
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 java.lang.String |
CLASS_KEY
|
static java.lang.String |
ID_KEY
|
Method Summary | |
---|---|
K |
getPersistentId(ChangeSetBacked entity,
ChangeSet cs)
Return id |
void |
getPersistentState(java.lang.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 java.lang.String ID_KEY
static final java.lang.String CLASS_KEY
Method Detail |
---|
void getPersistentState(java.lang.Class<? extends ChangeSetBacked> entityClass, K key, ChangeSet changeSet) throws org.springframework.dao.DataAccessException, ChangeSetPersister.NotFoundException
org.springframework.dao.DataAccessException
ChangeSetPersister.NotFoundException
K getPersistentId(ChangeSetBacked entity, ChangeSet cs) throws org.springframework.dao.DataAccessException
entity
- cs
-
org.springframework.dao.DataAccessException
K persistState(ChangeSetBacked entity, ChangeSet cs) throws org.springframework.dao.DataAccessException
entity
- cs
- Key may be null if not persistent
org.springframework.dao.DataAccessException
|
Spring Data Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |