Class SerializableBlobProxy

java.lang.Object
org.hibernate.engine.jdbc.proxy.SerializableBlobProxy
All Implemented Interfaces:
Serializable, InvocationHandler

@Internal public class SerializableBlobProxy extends Object implements InvocationHandler, Serializable
Manages aspects of proxying Blobs to add serializability.
See Also:
  • Method Details

    • getWrappedBlob

      public Blob getWrappedBlob()
      Access to the wrapped Blob reference
      Returns:
      The wrapped Blob reference
    • invoke

      public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
      Specified by:
      invoke in interface InvocationHandler
      Throws:
      Throwable
    • generateProxy

      public static Blob generateProxy(Blob blob)
      Generates a SerializableBlob proxy wrapping the provided Blob object.
      Parameters:
      blob - The Blob to wrap.
      Returns:
      The generated proxy.
    • getProxyClassLoader

      public static ClassLoader getProxyClassLoader()
      Determines the appropriate class loader to which the generated proxy should be scoped.
      Returns:
      The class loader appropriate for proxy construction.