Package org.hibernate.proxy
Class AbstractSerializableProxy
- java.lang.Object
-
- org.hibernate.proxy.AbstractSerializableProxy
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
SerializableMapProxy,SerializableProxy,SerializableProxy
public abstract class AbstractSerializableProxy extends Object implements Serializable
Convenience base class for the serialized form ofAbstractLazyInitializer.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractSerializableProxy()Deprecated.This constructor was initially intended for serialization only, and is not useful anymore.protectedAbstractSerializableProxy(String entityName, Serializable id, Boolean readOnly)Deprecated.protectedAbstractSerializableProxy(String entityName, Serializable id, Boolean readOnly, String sessionFactoryUuid, boolean allowLoadOutsideTransaction)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidafterDeserialization(AbstractLazyInitializer li)Initialize anAbstractLazyInitializerafter deserialization.protected StringgetEntityName()protected SerializablegetId()protected voidsetReadOnlyBeforeAttachedToSession(AbstractLazyInitializer li)Deprecated.UseafterDeserialization(AbstractLazyInitializer)instead.
-
-
-
Constructor Detail
-
AbstractSerializableProxy
@Deprecated protected AbstractSerializableProxy()
Deprecated.This constructor was initially intended for serialization only, and is not useful anymore. In any case it should not be relied on by user code.
-
AbstractSerializableProxy
@Deprecated protected AbstractSerializableProxy(String entityName, Serializable id, Boolean readOnly)
Deprecated.
-
AbstractSerializableProxy
protected AbstractSerializableProxy(String entityName, Serializable id, Boolean readOnly, String sessionFactoryUuid, boolean allowLoadOutsideTransaction)
-
-
Method Detail
-
getEntityName
protected String getEntityName()
-
getId
protected Serializable getId()
-
setReadOnlyBeforeAttachedToSession
@Deprecated protected void setReadOnlyBeforeAttachedToSession(AbstractLazyInitializer li)
Deprecated.UseafterDeserialization(AbstractLazyInitializer)instead.Set the read-only/modifiable setting from this object in an AbstractLazyInitializer. This method should only be called during deserialization, before associating the AbstractLazyInitializer with a session.- Parameters:
li- the read-only/modifiable setting to use when associated with a session; null indicates that the default should be used.- Throws:
IllegalStateException- if isReadOnlySettingAvailable() == true
-
afterDeserialization
protected void afterDeserialization(AbstractLazyInitializer li)
Initialize anAbstractLazyInitializerafter deserialization. This method should only be called during deserialization, before associating the AbstractLazyInitializer with a session.- Parameters:
li- theAbstractLazyInitializerto initialize.
-
-