Package org.hibernate.proxy
Class AbstractSerializableProxy
- java.lang.Object
-
- org.hibernate.proxy.AbstractSerializableProxy
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
SerializableMapProxy,SerializableProxy,SerializableProxy
public abstract class AbstractSerializableProxy extends java.lang.Object implements java.io.SerializableConvenience 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(java.lang.String entityName, java.io.Serializable id, java.lang.Boolean readOnly)Deprecated.protectedAbstractSerializableProxy(java.lang.String entityName, java.io.Serializable id, java.lang.Boolean readOnly, java.lang.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 java.lang.StringgetEntityName()protected java.io.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(java.lang.String entityName, java.io.Serializable id, java.lang.Boolean readOnly)Deprecated.
-
AbstractSerializableProxy
protected AbstractSerializableProxy(java.lang.String entityName, java.io.Serializable id, java.lang.Boolean readOnly, java.lang.String sessionFactoryUuid, boolean allowLoadOutsideTransaction)
-
-
Method Detail
-
getEntityName
protected java.lang.String getEntityName()
-
getId
protected java.io.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:
java.lang.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.
-
-