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 POJOs
-
-
Field Summary
Fields Modifier and Type Field Description protected CompositeType
componentIdType
protected Method
getIdentifierMethod
protected static Object
INVOKE_IMPLEMENTATION
protected boolean
overridesEquals
protected Class<?>
persistentClass
protected Method
setIdentifierMethod
-
Constructor Summary
Constructors Modifier Constructor Description protected
BasicLazyInitializer(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 Object
invoke(Method method, Object[] args, Object proxy)
protected abstract Object
serializableProxy()
-
Methods inherited from class org.hibernate.proxy.AbstractLazyInitializer
getEntityName, getIdentifier, getImplementation, getImplementation, getInternalIdentifier, getSession, 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:LazyInitializer
Get the actual class of the entity. Generally,LazyInitializer.getEntityName()
should be used instead.- Returns:
- The actual entity class.
-
-