Top Inners Constructors Methods
org.hibernate.bytecode.enhance.spi.interceptor

public Class EnhancementHelper

extends Object
Class Inheritance
Imports
java.util.Locale, java.util.function.BiFunction, org.hibernate.FlushMode, .LazyInitializationException, org.hibernate.engine.spi.SessionFactoryImplementor, .SharedSessionContractImplementor, org.hibernate.internal.SessionFactoryRegistry, org.hibernate.mapping.Collection, .ManyToOne, .Property, .ToOne, .Value

Author
Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static enum
public static interface

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static boolean
includeInBaseFetchGroup(Property bootMapping, boolean isEnhanced, EnhancementHelper.InheritanceChecker inheritanceChecker, boolean collectionsInDefaultFetchGroupEnabled)

Should the given property be included in the owner's base fetch group?

private static SharedSessionContractImplementor
openTemporarySessionForLoading(BytecodeLazyAttributeInterceptor interceptor, String entityName, String attributeName)

Deprecated as a consequence of BytecodeLazyAttributeInterceptor being deprecated.
public static <T> T
performWork(BytecodeLazyAttributeInterceptor interceptor, BiFunction<SharedSessionContractImplementor, Boolean, T> work, String entityName, String attributeName)

Deprecated as a consequence of BytecodeLazyAttributeInterceptor being deprecated.
private static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

EnhancementHelperback to summary
public EnhancementHelper()

Method Detail

includeInBaseFetchGroupback to summary
public static boolean includeInBaseFetchGroup(Property bootMapping, boolean isEnhanced, EnhancementHelper.InheritanceChecker inheritanceChecker, boolean collectionsInDefaultFetchGroupEnabled)

Should the given property be included in the owner's base fetch group?

openTemporarySessionForLoadingback to summary
private static SharedSessionContractImplementor openTemporarySessionForLoading(BytecodeLazyAttributeInterceptor interceptor, String entityName, String attributeName)

Deprecated

as a consequence of BytecodeLazyAttributeInterceptor being deprecated. See corresponding docs for further information.

performWorkback to summary
public static <T> T performWork(BytecodeLazyAttributeInterceptor interceptor, BiFunction<SharedSessionContractImplementor, Boolean, T> work, String entityName, String attributeName)

Deprecated

as a consequence of BytecodeLazyAttributeInterceptor being deprecated. See corresponding docs for further information.

throwLazyInitializationExceptionback to summary
private static void throwLazyInitializationException(EnhancementHelper.Cause cause, String entityName, String attributeName)
org.hibernate.bytecode.enhance.spi.interceptor back to summary

pack-priv final Enum EnhancementHelper.Cause

extends Enum<EnhancementHelper.Cause>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final EnhancementHelper.Cause
public static final EnhancementHelper.Cause
public static final EnhancementHelper.Cause
public static final EnhancementHelper.Cause

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static EnhancementHelper.Cause
public static EnhancementHelper.Cause[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

CLOSED_SESSIONback to summary
public static final EnhancementHelper.Cause CLOSED_SESSION
DISCONNECTED_SESSIONback to summary
public static final EnhancementHelper.Cause DISCONNECTED_SESSION
NO_SESSIONback to summary
public static final EnhancementHelper.Cause NO_SESSION
NO_SF_UUIDback to summary
public static final EnhancementHelper.Cause NO_SF_UUID

Constructor Detail

Causeback to summary
private Cause()

Method Detail

valueOfback to summary
public static EnhancementHelper.Cause valueOf(String name)
valuesback to summary
public static EnhancementHelper.Cause[] values()
org.hibernate.bytecode.enhance.spi.interceptor back to summary

public Interface EnhancementHelper.InheritanceChecker

Annotations
@FunctionalInterface

Method Summary

Modifier and TypeMethod and Description
public boolean
hasSubclasses(String entityName)

Method Detail

hasSubclassesback to summary
public boolean hasSubclasses(String entityName)