org.hibernate.proxy.pojo

Class BasicLazyInitializer

Implemented Interfaces:
LazyInitializer
Known Direct Subclasses:
CGLIBLazyInitializer, JavassistLazyInitializer

public abstract class BasicLazyInitializer
extends AbstractLazyInitializer

Lazy initializer for POJOs
Author:
Gavin King

Field Summary

protected static Object
INVOKE_IMPLEMENTATION
protected AbstractComponentType
componentIdType
protected Method
getIdentifierMethod
protected boolean
overridesEquals
protected Class
persistentClass
protected Method
setIdentifierMethod

Constructor Summary

BasicLazyInitializer(String entityName, Class persistentClass, Serializable id, Method getIdentifierMethod, Method setIdentifierMethod, AbstractComponentType componentIdType, SessionImplementor session)

Method Summary

Class
getPersistentClass()
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, getSession, getTarget, initialize, isConnectedToSession, isUninitialized, isUnwrap, setIdentifier, setImplementation, setSession, setUnwrap

Field Details

INVOKE_IMPLEMENTATION

protected static final Object INVOKE_IMPLEMENTATION

componentIdType

protected AbstractComponentType componentIdType

getIdentifierMethod

protected Method getIdentifierMethod

overridesEquals

protected boolean overridesEquals

persistentClass

protected Class persistentClass

setIdentifierMethod

protected Method setIdentifierMethod

Constructor Details

BasicLazyInitializer

protected BasicLazyInitializer(String entityName,
                               Class persistentClass,
                               Serializable id,
                               Method getIdentifierMethod,
                               Method setIdentifierMethod,
                               AbstractComponentType componentIdType,
                               SessionImplementor session)

Method Details

getPersistentClass

public final Class getPersistentClass()
Specified by:
getPersistentClass in interface LazyInitializer

invoke

protected final Object invoke(Method method,
                              Object[] args,
                              Object proxy)
            throws Throwable

serializableProxy

protected abstract Object serializableProxy()