Package org.hibernate.proxy.pojo
Class BasicLazyInitializer
- java.lang.Object
-
- org.hibernate.proxy.AbstractLazyInitializer
-
- org.hibernate.proxy.pojo.BasicLazyInitializer
-
- All Implemented Interfaces:
LazyInitializer
- Direct Known Subclasses:
ByteBuddyInterceptor
public abstract class BasicLazyInitializer extends AbstractLazyInitializer
Lazy initializer for plain Java objects.
-
-
Field Summary
Fields Modifier and Type Field Description protected CompositeTypecomponentIdTypeprotected MethodgetIdentifierMethodprotected static ObjectINVOKE_IMPLEMENTATIONprotected booleanoverridesEqualsprotected Class<?>persistentClassprotected MethodsetIdentifierMethod
-
Constructor Summary
Constructors Modifier Constructor Description protectedBasicLazyInitializer(String entityName, Class<?> persistentClass, Object id, Method getIdentifierMethod, Method setIdentifierMethod, CompositeType componentIdType, SharedSessionContractImplementor session, boolean overridesEquals)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Class<?>getPersistentClass()Get the actual class of the entity.protected Objectinvoke(Method method, Object[] args, Object proxy)protected abstract ObjectserializableProxy()-
Methods inherited from class org.hibernate.proxy.AbstractLazyInitializer
getEntityName, getIdentifier, getImplementation, getImplementation, getInternalIdentifier, getSession, getSessionFactoryName, getSessionFactoryUuid, getTarget, initialize, initializeWithoutLoadIfPossible, isAllowLoadOutsideTransaction, isConnectedToSession, isReadOnly, isReadOnlyBeforeAttachedToSession, isReadOnlySettingAvailable, isUninitialized, isUnwrap, permissiveInitialization, prepareForPossibleLoadingOutsideTransaction, setIdentifier, setImplementation, setReadOnly, setSession, setUnwrap, unsetSession
-
-
-
-
Field Detail
-
INVOKE_IMPLEMENTATION
protected static final Object INVOKE_IMPLEMENTATION
-
persistentClass
protected final Class<?> persistentClass
-
getIdentifierMethod
protected final Method getIdentifierMethod
-
setIdentifierMethod
protected final Method setIdentifierMethod
-
overridesEquals
protected final boolean overridesEquals
-
componentIdType
protected final CompositeType componentIdType
-
-
Constructor Detail
-
BasicLazyInitializer
protected BasicLazyInitializer(String entityName, Class<?> persistentClass, Object id, Method getIdentifierMethod, Method setIdentifierMethod, CompositeType componentIdType, SharedSessionContractImplementor session, boolean overridesEquals)
-
-
Method Detail
-
serializableProxy
protected abstract Object serializableProxy()
-
invoke
protected final Object invoke(Method method, Object[] args, Object proxy) throws Throwable
- Throws:
Throwable
-
getPersistentClass
public final Class<?> getPersistentClass()
Description copied from interface:LazyInitializerGet the actual class of the entity. Generally,LazyInitializer.getEntityName()should be used instead.- Returns:
- The actual entity class.
-
-