Package org.hibernate.proxy
Class AbstractSerializableProxy
java.lang.Object
org.hibernate.proxy.AbstractSerializableProxy
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
SerializableProxy,SerializableProxy
Convenience base class for SerializableProxy.
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFor serializationprotectedAbstractSerializableProxy(String entityName, Serializable id, Boolean readOnly) -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected SerializablegetId()protected voidSet the read-only/modifiable setting from this object in an AbstractLazyInitializer.
-
Constructor Details
-
AbstractSerializableProxy
protected AbstractSerializableProxy()For serialization -
AbstractSerializableProxy
-
-
Method Details
-
getEntityName
-
getId
-
setReadOnlyBeforeAttachedToSession
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:
IllegalStateException- if isReadOnlySettingAvailable() == true
-