public class MongoChangeSetPersister extends Object implements ChangeSetPersister<Object>
ChangeSetPersister.NotFoundException
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
log |
CLASS_KEY, ID_KEY
Constructor and Description |
---|
MongoChangeSetPersister() |
Modifier and Type | Method and Description |
---|---|
Object |
getPersistentId(ChangeSetBacked entity,
ChangeSet cs) |
void |
getPersistentState(Class<? extends ChangeSetBacked> entityClass,
Object id,
ChangeSet changeSet) |
Object |
persistState(ChangeSetBacked entity,
ChangeSet cs) |
void |
setEntityManagerFactory(javax.persistence.EntityManagerFactory entityManagerFactory) |
void |
setMongoTemplate(MongoTemplate mongoTemplate) |
public void setMongoTemplate(MongoTemplate mongoTemplate)
public void setEntityManagerFactory(javax.persistence.EntityManagerFactory entityManagerFactory)
public void getPersistentState(Class<? extends ChangeSetBacked> entityClass, Object id, ChangeSet changeSet) throws DataAccessException, ChangeSetPersister.NotFoundException
getPersistentState
in interface ChangeSetPersister<Object>
DataAccessException
ChangeSetPersister.NotFoundException
public Object getPersistentId(ChangeSetBacked entity, ChangeSet cs) throws DataAccessException
getPersistentId
in interface ChangeSetPersister<Object>
DataAccessException
public Object persistState(ChangeSetBacked entity, ChangeSet cs) throws DataAccessException
persistState
in interface ChangeSetPersister<Object>
DataAccessException
Copyright © 2011-2015–2015 Pivotal Software, Inc.. All rights reserved.