K
- entity keypublic interface ChangeSetPersister<K>
Modifier and Type | Interface and Description |
---|---|
static class |
ChangeSetPersister.NotFoundException
Exception thrown in alternate control flow if getPersistentState finds no entity data.
|
Modifier and Type | Field and Description |
---|---|
static String |
CLASS_KEY |
static String |
ID_KEY |
Modifier and Type | Method and Description |
---|---|
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
|
static final String ID_KEY
static final String CLASS_KEY
void getPersistentState(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 persistentorg.springframework.dao.DataAccessException
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.