Class ToOneEntityLoader
- java.lang.Object
-
- org.hibernate.envers.internal.entities.mapper.relation.ToOneEntityLoader
-
public final class ToOneEntityLoader extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Object
createProxy(AuditReaderImplementor versionsReader, Class<?> entityClass, String entityName, Object entityId, Number revision, boolean removed, EnversService enversService)
Creates proxy of referenced *-to-one entity.static Object
createProxyOrLoadImmediate(AuditReaderImplementor versionsReader, Class<?> entityClass, String entityName, Object entityId, Number revision, boolean removed, EnversService enversService)
Creates Hibernate proxy or retrieves the complete object of an entity if proxy is not allowed (e.g.static Object
loadImmediate(AuditReaderImplementor versionsReader, Class<?> entityClass, String entityName, Object entityId, Number revision, boolean removed, EnversService enversService)
Immediately loads historical entity or its current state when excluded from audit process.
-
-
-
Method Detail
-
loadImmediate
public static Object loadImmediate(AuditReaderImplementor versionsReader, Class<?> entityClass, String entityName, Object entityId, Number revision, boolean removed, EnversService enversService)
Immediately loads historical entity or its current state when excluded from audit process. Returnsnull
reference if entity has not been found in the database.
-
createProxy
public static Object createProxy(AuditReaderImplementor versionsReader, Class<?> entityClass, String entityName, Object entityId, Number revision, boolean removed, EnversService enversService)
Creates proxy of referenced *-to-one entity.
-
createProxyOrLoadImmediate
public static Object createProxyOrLoadImmediate(AuditReaderImplementor versionsReader, Class<?> entityClass, String entityName, Object entityId, Number revision, boolean removed, EnversService enversService)
Creates Hibernate proxy or retrieves the complete object of an entity if proxy is not allowed (e.g. @Proxy(lazy=false), final class).
-
-