org.hibernate.proxy
Class AbstractSerializableProxy

java.lang.Object
  extended by org.hibernate.proxy.AbstractSerializableProxy
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
SerializableProxy, SerializableProxy

public abstract class AbstractSerializableProxy
extends java.lang.Object
implements java.io.Serializable

Convenience base class for SerializableProxy.

Author:
Gail Badner
See Also:
Serialized Form

Constructor Summary
protected AbstractSerializableProxy()
          For serialization
protected AbstractSerializableProxy(java.lang.String entityName, java.io.Serializable id, java.lang.Boolean readOnly)
           
 
Method Summary
protected  java.lang.String getEntityName()
           
protected  java.io.Serializable getId()
           
protected  void setReadOnlyBeforeAttachedToSession(AbstractLazyInitializer li)
          Set the read-only/modifiable setting from this object in an AbstractLazyInitializer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSerializableProxy

protected AbstractSerializableProxy()
For serialization


AbstractSerializableProxy

protected AbstractSerializableProxy(java.lang.String entityName,
                                    java.io.Serializable id,
                                    java.lang.Boolean readOnly)
Method Detail

getEntityName

protected java.lang.String getEntityName()

getId

protected java.io.Serializable getId()

setReadOnlyBeforeAttachedToSession

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, - 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


Copyright © 2013. All Rights Reserved.