public class ToOneEntityLoader extends Object
Constructor and Description |
---|
ToOneEntityLoader() |
Modifier and Type | Method and Description |
---|---|
static Object |
createProxy(AuditReaderImplementor versionsReader,
Class<?> entityClass,
String entityName,
Object entityId,
Number revision,
boolean removed,
AuditConfiguration verCfg)
Creates proxy of referenced *-to-one entity.
|
static Object |
createProxyOrLoadImmediate(AuditReaderImplementor versionsReader,
Class<?> entityClass,
String entityName,
Object entityId,
Number revision,
boolean removed,
AuditConfiguration verCfg)
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,
AuditConfiguration verCfg)
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, AuditConfiguration verCfg)
public static Object createProxy(AuditReaderImplementor versionsReader, Class<?> entityClass, String entityName, Object entityId, Number revision, boolean removed, AuditConfiguration verCfg)
public static Object createProxyOrLoadImmediate(AuditReaderImplementor versionsReader, Class<?> entityClass, String entityName, Object entityId, Number revision, boolean removed, AuditConfiguration verCfg)
Copyright © 2018 JBoss by Red Hat. All rights reserved.