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 proxyingBlob
s to add serializability.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Blob
generateProxy(Blob blob)
Generates a SerializableBlob proxy wrapping the provided Blob object.static ClassLoader
getProxyClassLoader()
Determines the appropriate class loader to which the generated proxy should be scoped.Blob
getWrappedBlob()
Access to the wrapped Blob referenceObject
invoke(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:
invoke
in 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.
-
-