public final class ToOneEntityLoader extends Object
Modifier and Type | Method and 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.
|
public static Object loadImmediate(AuditReaderImplementor versionsReader, Class<?> entityClass, String entityName, Object entityId, Number revision, boolean removed, EnversService enversService)
null
reference if entity has not been found in the database.public static Object createProxy(AuditReaderImplementor versionsReader, Class<?> entityClass, String entityName, Object entityId, Number revision, boolean removed, EnversService enversService)
public static Object createProxyOrLoadImmediate(AuditReaderImplementor versionsReader, Class<?> entityClass, String entityName, Object entityId, Number revision, boolean removed, EnversService enversService)
Copyright © 2017 JBoss by Red Hat. All rights reserved.