Package org.hibernate.engine.jdbc
Class SerializableClobProxy
- java.lang.Object
-
- org.hibernate.engine.jdbc.SerializableClobProxy
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.reflect.InvocationHandler
- Direct Known Subclasses:
SerializableNClobProxy
public class SerializableClobProxy extends java.lang.Object implements java.lang.reflect.InvocationHandler, java.io.SerializableManages aspects of proxyingClobsto add serializability.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSerializableClobProxy(java.sql.Clob clob)Builds a serializableClobwrapper around the givenClob.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.sql.ClobgenerateProxy(java.sql.Clob clob)Generates a SerializableClobProxy proxy wrapping the provided Clob object.static java.lang.ClassLoadergetProxyClassLoader()Determines the appropriate class loader to which the generated proxy should be scoped.java.sql.ClobgetWrappedClob()Access to the wrapped Clob referencejava.lang.Objectinvoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
-
-
-
Constructor Detail
-
SerializableClobProxy
protected SerializableClobProxy(java.sql.Clob clob)
Builds a serializableClobwrapper around the givenClob.- Parameters:
clob- TheClobto be wrapped.- See Also:
generateProxy(java.sql.Clob)
-
-
Method Detail
-
getWrappedClob
public java.sql.Clob getWrappedClob()
Access to the wrapped Clob reference- Returns:
- The wrapped Clob 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:
invokein interfacejava.lang.reflect.InvocationHandler- Throws:
java.lang.Throwable
-
generateProxy
public static java.sql.Clob generateProxy(java.sql.Clob clob)
Generates a SerializableClobProxy proxy wrapping the provided Clob object.- Parameters:
clob- The Clob 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.
-
-