Class SerializableClobProxy

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

@Internal public class SerializableClobProxy extends Object implements InvocationHandler, Serializable
Manages aspects of proxying Clobs to add serializability.
See Also:
  • Constructor Details

    • SerializableClobProxy

      protected SerializableClobProxy(Clob clob)
      Builds a serializable Clob wrapper around the given Clob.
      Parameters:
      clob - The Clob to be wrapped.
      See Also:
  • Method Details

    • getWrappedClob

      public Clob getWrappedClob()
      Access to the wrapped Clob reference
      Returns:
      The wrapped Clob reference
    • invoke

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

      public static Clob generateProxy(Clob clob)
      Generates a SerializableClobProxy proxy wrapping the provided Clob object.
      Parameters:
      clob - The Clob 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.