Package org.hibernate.engine.jdbc.proxy
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
Clob
s to add serializability.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Clob
generateProxy
(Clob clob) Generates a SerializableClobProxy proxy wrapping the provided Clob object.static ClassLoader
Determines the appropriate class loader to which the generated proxy should be scoped.Access to the wrapped Clob reference
-
Constructor Details
-
SerializableClobProxy
- Parameters:
clob
- TheClob
to be wrapped.- See Also:
-
-
Method Details
-
getWrappedClob
Access to the wrapped Clob reference- Returns:
- The wrapped Clob reference
-
invoke
- Specified by:
invoke
in interfaceInvocationHandler
- Throws:
Throwable
-
generateProxy
Generates a SerializableClobProxy proxy wrapping the provided Clob object.- Parameters:
clob
- The Clob to wrap.- Returns:
- The generated proxy.
-
getProxyClassLoader
Determines the appropriate class loader to which the generated proxy should be scoped.- Returns:
- The class loader appropriate for proxy construction.
-