Package org.hibernate.engine.jdbc
Class SerializableClobProxy
- java.lang.Object
-
- org.hibernate.engine.jdbc.SerializableClobProxy
-
- All Implemented Interfaces:
Serializable
,InvocationHandler
- Direct Known Subclasses:
SerializableNClobProxy
public class SerializableClobProxy extends Object implements InvocationHandler, Serializable
Manages aspects of proxyingClob
s to add serializability.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SerializableClobProxy(Clob clob)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Clob
generateProxy(Clob clob)
Generates a SerializableClobProxy proxy wrapping the provided Clob object.static ClassLoader
getProxyClassLoader()
Determines the appropriate class loader to which the generated proxy should be scoped.Clob
getWrappedClob()
Access to the wrapped Clob referenceObject
invoke(Object proxy, Method method, Object[] args)
-
-
-
Constructor Detail
-
SerializableClobProxy
protected SerializableClobProxy(Clob clob)
- Parameters:
clob
- TheClob
to be wrapped.- See Also:
generateProxy(Clob)
-
-
Method Detail
-
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 interfaceInvocationHandler
- 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.
-
-