Package org.hibernate.engine.jdbc
Class SerializableBlobProxy
- java.lang.Object
-
- org.hibernate.engine.jdbc.SerializableBlobProxy
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.reflect.InvocationHandler
public class SerializableBlobProxy extends java.lang.Object implements java.lang.reflect.InvocationHandler, java.io.Serializable
Manages aspects of proxyingBlobs
to add serializability.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.sql.Blob
generateProxy(java.sql.Blob blob)
Generates a SerializableBlob proxy wrapping the provided Blob object.static java.lang.ClassLoader
getProxyClassLoader()
Determines the appropriate class loader to which the generated proxy should be scoped.java.sql.Blob
getWrappedBlob()
Access to the wrapped Blob referencejava.lang.Object
invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
-
-
-
Method Detail
-
getWrappedBlob
public java.sql.Blob getWrappedBlob()
Access to the wrapped Blob reference- Returns:
- The wrapped Blob 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:
invoke
in interfacejava.lang.reflect.InvocationHandler
- Throws:
java.lang.Throwable
-
generateProxy
public static java.sql.Blob generateProxy(java.sql.Blob blob)
Generates a SerializableBlob proxy wrapping the provided Blob object.- Parameters:
blob
- The Blob 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.
-
-