org.hibernate.engine.jdbc
Class SerializableClobProxy

java.lang.Object
  extended by org.hibernate.engine.jdbc.SerializableClobProxy
All Implemented Interfaces:
java.io.Serializable, java.lang.reflect.InvocationHandler
Direct Known Subclasses:
SerializableNClobProxy

public class SerializableClobProxy
extends java.lang.Object
implements java.lang.reflect.InvocationHandler, java.io.Serializable

Manages aspects of proxying Clobs to add serializability.

Author:
Gavin King, Steve Ebersole, Gail Badner
See Also:
Serialized Form

Constructor Summary
protected SerializableClobProxy(java.sql.Clob clob)
          Builds a serializable Clob wrapper around the given Clob.
 
Method Summary
static java.sql.Clob generateProxy(java.sql.Clob clob)
          Generates a SerializableClobProxy proxy wrapping the provided Clob object.
static java.lang.ClassLoader getProxyClassLoader()
          Determines the appropriate class loader to which the generated proxy should be scoped.
 java.sql.Clob getWrappedClob()
           
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializableClobProxy

protected SerializableClobProxy(java.sql.Clob clob)
Builds a serializable Clob wrapper around the given Clob.

Parameters:
clob - The Clob to be wrapped.
See Also:
generateProxy(java.sql.Clob)
Method Detail

getWrappedClob

public java.sql.Clob getWrappedClob()

invoke

public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method method,
                               java.lang.Object[] args)
                        throws java.lang.Throwable

Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Throws:
java.lang.Throwable

generateProxy

public static java.sql.Clob generateProxy(java.sql.Clob clob)
Generates a SerializableClobProxy proxy wrapping the provided Clob object.

Parameters:
clob - The Clob to wrap.
Returns:
The generated proxy.

getProxyClassLoader

public static java.lang.ClassLoader getProxyClassLoader()
Determines the appropriate class loader to which the generated proxy should be scoped.

Returns:
The class loader appropriate for proxy construction.


Copyright © 2010. All Rights Reserved.