Top Description Fields Constructors Methods
org.hibernate.proxy

public abstract Class AbstractSerializableProxy

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Known Direct Subclasses
org.hibernate.proxy.map.SerializableMapProxy, org.hibernate.proxy.pojo.bytebuddy.SerializableProxy
Imports
java.io.Serializable

Convenience base class for the serialized form of AbstractLazyInitializer.
Author
Gail Badner

Field Summary

Modifier and TypeField and Description
private boolean
private String
private Serializable
private Boolean
private String

Constructor Summary

AccessConstructor and Description
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.
protected
protected
AbstractSerializableProxy(String entityName, Serializable id, Boolean readOnly, String sessionFactoryUuid, boolean allowLoadOutsideTransaction)

Method Summary

Modifier and TypeMethod and Description
protected void
afterDeserialization(AbstractLazyInitializer
the AbstractLazyInitializer to initialize.
li
)

Initialize an AbstractLazyInitializer after deserialization.

protected String
protected Serializable
protected void
setReadOnlyBeforeAttachedToSession(AbstractLazyInitializer
the read-only/modifiable setting to use when associated with a session; null indicates that the default should be used.
li
)

Set the read-only/modifiable setting from this object in an AbstractLazyInitializer.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

allowLoadOutsideTransactionback to summary
private boolean allowLoadOutsideTransaction
entityNameback to summary
private String entityName
idback to summary
private Serializable id
readOnlyback to summary
private Boolean readOnly
sessionFactoryUuidback to summary
private String sessionFactoryUuid

Constructor Detail

AbstractSerializableProxyback to summary
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.

Annotations
@Deprecated
AbstractSerializableProxyback to summary
protected AbstractSerializableProxy(String entityName, Serializable id, Boolean readOnly)
Annotations
@Deprecated
AbstractSerializableProxyback to summary
protected AbstractSerializableProxy(String entityName, Serializable id, Boolean readOnly, String sessionFactoryUuid, boolean allowLoadOutsideTransaction)

Method Detail

afterDeserializationback to summary
protected void afterDeserialization(AbstractLazyInitializer li)

Initialize an AbstractLazyInitializer after deserialization. This method should only be called during deserialization, before associating the AbstractLazyInitializer with a session.

Parameters
li:AbstractLazyInitializer

the AbstractLazyInitializer to initialize.

getEntityNameback to summary
protected String getEntityName()
getIdback to summary
protected Serializable getId()
setReadOnlyBeforeAttachedToSessionback to summary
protected void setReadOnlyBeforeAttachedToSession(AbstractLazyInitializer li)

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:AbstractLazyInitializer

the read-only/modifiable setting to use when associated with a session; null indicates that the default should be used.

Annotations
@Deprecated
Exceptions
IllegalStateException:
if isReadOnlySettingAvailable() == true