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.SerializableManages aspects of proxyingBlobsto add serializability.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.sql.BlobgenerateProxy(java.sql.Blob blob)Generates a SerializableBlob proxy wrapping the provided Blob object.static java.lang.ClassLoadergetProxyClassLoader()Determines the appropriate class loader to which the generated proxy should be scoped.java.sql.BlobgetWrappedBlob()Access to the wrapped Blob referencejava.lang.Objectinvoke(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:
invokein 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.
-
-