Top Description Fields Constructors Methods
org.hibernate.proxy.pojo

public abstract Class BasicLazyInitializer

extends AbstractLazyInitializer
Class Inheritance
Known Direct Subclasses
org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor
Imports
java.io.Serializable, java.lang.reflect.Method, org.hibernate.engine.spi.SharedSessionContractImplementor, org.hibernate.internal.util.MarkerObject, org.hibernate.proxy.AbstractLazyInitializer, org.hibernate.type.CompositeType

Lazy initializer for POJOs
Author
Gavin King

Field Summary

Modifier and TypeField and Description
protected final CompositeType
protected final Method
protected static final Object
protected final boolean
protected final Class<T>
private Object
protected final Method

Constructor Summary

AccessConstructor and Description
protected
BasicLazyInitializer(String entityName, Class<T> persistentClass, Serializable id, Method getIdentifierMethod, Method setIdentifierMethod, CompositeType componentIdType, SharedSessionContractImplementor session, boolean overridesEquals)

Method Summary

Modifier and TypeMethod and Description
public final Class<T>
getPersistentClass()

Implements org.hibernate.proxy.LazyInitializer.getPersistentClass.

Get the actual class of the entity.
private Object
protected final Object
invoke(Method method, Object[] args, Object proxy)

protected abstract Object
Inherited from org.hibernate.proxy.AbstractLazyInitializer:
getEntityNamegetIdentifiergetImplementationgetImplementationgetInternalIdentifiergetSessiongetSessionFactoryUuidgetTargetinitializeinitializeWithoutLoadIfPossibleisAllowLoadOutsideTransactionisConnectedToSessionisReadOnlyisReadOnlyBeforeAttachedToSessionisReadOnlySettingAvailableisUninitializedisUnwrappermissiveInitializationprepareForPossibleLoadingOutsideTransactionsetIdentifiersetImplementationsetReadOnlysetSessionsetUnwrapunsetSession

Field Detail

componentIdTypeback to summary
protected final CompositeType componentIdType
getIdentifierMethodback to summary
protected final Method getIdentifierMethod
INVOKE_IMPLEMENTATIONback to summary
protected static final Object INVOKE_IMPLEMENTATION
overridesEqualsback to summary
protected final boolean overridesEquals
persistentClassback to summary
protected final Class<T> persistentClass
replacementback to summary
private Object replacement
setIdentifierMethodback to summary
protected final Method setIdentifierMethod

Constructor Detail

BasicLazyInitializerback to summary
protected BasicLazyInitializer(String entityName, Class<T> persistentClass, Serializable id, Method getIdentifierMethod, Method setIdentifierMethod, CompositeType componentIdType, SharedSessionContractImplementor session, boolean overridesEquals)

Method Detail

getPersistentClassback to summary
public final Class<T> getPersistentClass()

Implements org.hibernate.proxy.LazyInitializer.getPersistentClass.

Doc from org.hibernate.proxy.LazyInitializer.getPersistentClass.

Get the actual class of the entity. Generally, getEntityName() should be used instead.

Returns:Class<T>

The actual entity class.

getReplacementback to summary
private Object getReplacement()
invokeback to summary
protected final Object invoke(Method method, Object[] args, Object proxy) throws Throwable
serializableProxyback to summary
protected abstract Object serializableProxy()