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 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 persistentDataAccessException
Copyright © 2011-2016–2016 Pivotal Software, Inc.. All rights reserved.