Class 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.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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()
      Access to the wrapped Blob reference
      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()
        Access to the wrapped Blob reference
        Returns:
        The wrapped Blob reference
      • 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.