public abstract class AbstractSerializableProxy extends Object implements 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(String entityName,
Serializable id,
Boolean readOnly)
Deprecated.
|
protected |
AbstractSerializableProxy(String entityName,
Serializable id,
Boolean readOnly,
String sessionFactoryUuid,
boolean allowLoadOutsideTransaction) |
Modifier and Type | Method and Description |
---|---|
protected void |
afterDeserialization(AbstractLazyInitializer li)
Initialize an
AbstractLazyInitializer after deserialization. |
protected String |
getEntityName() |
protected Serializable |
getId() |
protected void |
setReadOnlyBeforeAttachedToSession(AbstractLazyInitializer li)
Deprecated.
Use
afterDeserialization(AbstractLazyInitializer) instead. |
@Deprecated protected AbstractSerializableProxy()
@Deprecated protected AbstractSerializableProxy(String entityName, Serializable id, Boolean readOnly)
AbstractSerializableProxy(String, Serializable, Boolean, String, boolean)
instead.protected AbstractSerializableProxy(String entityName, Serializable id, Boolean readOnly, String sessionFactoryUuid, boolean allowLoadOutsideTransaction)
protected String getEntityName()
protected 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.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-2022 Red Hat, Inc. All Rights Reserved.