Package org.hibernate.engine.jdbc
Class SerializableBlobProxy
- java.lang.Object
-
- org.hibernate.engine.jdbc.SerializableBlobProxy
-
- All Implemented Interfaces:
Serializable,InvocationHandler
public class SerializableBlobProxy extends Object implements InvocationHandler, Serializable
Manages 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 BlobgenerateProxy(Blob blob)Generates a SerializableBlob proxy wrapping the provided Blob object.static ClassLoadergetProxyClassLoader()Determines the appropriate class loader to which the generated proxy should be scoped.BlobgetWrappedBlob()Access to the wrapped Blob referenceObjectinvoke(Object proxy, Method method, Object[] args)
-
-
-
Method Detail
-
getWrappedBlob
public Blob getWrappedBlob()
Access to the wrapped Blob reference- Returns:
- The wrapped Blob reference
-
invoke
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
- Specified by:
invokein interfaceInvocationHandler- Throws:
Throwable
-
generateProxy
public static Blob generateProxy(Blob blob)
Generates a SerializableBlob proxy wrapping the provided Blob object.- Parameters:
blob- The Blob 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.
-
-