Class EntityInstantiator
- java.lang.Object
-
- org.hibernate.envers.internal.entities.EntityInstantiator
-
public class EntityInstantiator extends Object
-
-
Constructor Summary
Constructors Constructor Description EntityInstantiator(EnversService enversService, AuditReaderImplementor versionsReader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Constructor Detail
-
EntityInstantiator
public EntityInstantiator(EnversService enversService, AuditReaderImplementor versionsReader)
-
-
Method Detail
-
createInstanceFromVersionsEntity
public Object createInstanceFromVersionsEntity(String entityName, Map versionsEntity, Number revision)
Creates an entity instance based on an entry from the versions table.- Parameters:
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.- Returns:
- An entity instance, with versioned properties set as in the versionsEntity map, and proxies created for collections.
-
addInstancesFromVersionsEntities
public void addInstancesFromVersionsEntities(String entityName, Collection addTo, List<Map> versionsEntities, Number revision)
-
getEnversService
public EnversService getEnversService()
-
getAuditReaderImplementor
public AuditReaderImplementor getAuditReaderImplementor()
-
-