public abstract class AbstractSerializableProxy
extends java.lang.Object
implements java.io.Serializable
AbstractLazyInitializer
.Modifier | Constructor 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 |
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) |
Modifier and Type | Method and Description |
---|---|
protected void |
afterDeserialization(AbstractLazyInitializer li)
Initialize an
AbstractLazyInitializer after deserialization. |
protected java.lang.String |
getEntityName() |
protected java.io.Serializable |
getId() |
protected void |
setReadOnlyBeforeAttachedToSession(AbstractLazyInitializer li)
Deprecated.
Use
afterDeserialization(AbstractLazyInitializer) instead. |
@Deprecated protected AbstractSerializableProxy()
@Deprecated protected AbstractSerializableProxy(java.lang.String entityName, java.io.Serializable id, java.lang.Boolean readOnly)
AbstractSerializableProxy(String, Serializable, Boolean, String, boolean)
instead.protected AbstractSerializableProxy(java.lang.String entityName, java.io.Serializable id, java.lang.Boolean readOnly, java.lang.String sessionFactoryUuid, boolean allowLoadOutsideTransaction)
protected java.lang.String getEntityName()
protected java.io.Serializable getId()
@Deprecated protected void setReadOnlyBeforeAttachedToSession(AbstractLazyInitializer li)
afterDeserialization(AbstractLazyInitializer)
instead.li
- the read-only/modifiable setting to use when
associated with a session; null indicates that the default should be used.java.lang.IllegalStateException
- if isReadOnlySettingAvailable() == trueprotected void afterDeserialization(AbstractLazyInitializer li)
AbstractLazyInitializer
after deserialization.
This method should only be called during deserialization,
before associating the AbstractLazyInitializer with a session.li
- the AbstractLazyInitializer
to initialize.Copyright © 2001-2019 Red Hat, Inc. All Rights Reserved.