public class EntityInstantiator extends Object
Constructor and Description |
---|
EntityInstantiator(EnversService enversService,
AuditReaderImplementor versionsReader) |
Modifier and Type | Method and Description |
---|---|
void |
addInstancesFromVersionsEntities(String entityName,
Collection addTo,
List<Map> versionsEntities,
Number revision) |
Object |
createInstanceFromVersionsEntity(String entityName,
Map versionsEntity,
Number revision)
Creates an entity instance based on an entry from the versions table.
|
AuditReaderImplementor |
getAuditReaderImplementor() |
EnversService |
getEnversService() |
public EntityInstantiator(EnversService enversService, AuditReaderImplementor versionsReader)
public Object createInstanceFromVersionsEntity(String entityName, Map versionsEntity, Number revision)
entityName
- Name of the entity, which instances should be readversionsEntity
- An entry in the versions table, from which data should be mapped.revision
- Revision at which this entity was read.public void addInstancesFromVersionsEntities(String entityName, Collection addTo, List<Map> versionsEntities, Number revision)
public EnversService getEnversService()
public AuditReaderImplementor getAuditReaderImplementor()
Copyright © 2016 JBoss by Red Hat. All rights reserved.