org.hibernate.engine.jdbc
Class SerializableBlobProxy

java.lang.Object
  extended by org.hibernate.engine.jdbc.SerializableBlobProxy
All Implemented Interfaces:
java.io.Serializable, java.lang.reflect.InvocationHandler

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

Manages aspects of proxying Blobs to add serializability.

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

Method Summary
static java.sql.Blob generateProxy(java.sql.Blob blob)
          Generates a SerializableBlob proxy wrapping the provided Blob object.
static java.lang.ClassLoader getProxyClassLoader()
          Determines the appropriate class loader to which the generated proxy should be scoped.
 java.sql.Blob getWrappedBlob()
           
 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
 

Method Detail

getWrappedBlob

public java.sql.Blob getWrappedBlob()

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.Blob generateProxy(java.sql.Blob blob)
Generates a SerializableBlob proxy wrapping the provided Blob object.

Parameters:
blob - The Blob 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 © 2011. All Rights Reserved.