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.Serializable
Convenience base class for the serialized form ofAbstractLazyInitializer
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSerializableProxy()
Deprecated.This constructor was initially intended for serialization only, and is not useful anymore.protected
AbstractSerializableProxy(java.lang.String entityName, java.io.Serializable id, java.lang.Boolean readOnly)
Deprecated.protected
AbstractSerializableProxy(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 void
afterDeserialization(AbstractLazyInitializer li)
Initialize anAbstractLazyInitializer
after deserialization.protected java.lang.String
getEntityName()
protected java.io.Serializable
getId()
protected void
setReadOnlyBeforeAttachedToSession(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 anAbstractLazyInitializer
after deserialization. This method should only be called during deserialization, before associating the AbstractLazyInitializer with a session.- Parameters:
li
- theAbstractLazyInitializer
to initialize.
-
-