org.hibernate.engine.jdbc
Class SerializableNClobProxy
java.lang.Object
org.hibernate.engine.jdbc.SerializableClobProxy
org.hibernate.engine.jdbc.SerializableNClobProxy
- All Implemented Interfaces:
- java.io.Serializable, java.lang.reflect.InvocationHandler
public class SerializableNClobProxy
- extends SerializableClobProxy
Manages aspects of proxying java.sql.NClobs to add serializability.
- Author:
- Steve Ebersole
- See Also:
- Serialized Form
Constructor Summary |
protected |
SerializableNClobProxy(java.sql.Clob clob)
Builds a serializable Clob wrapper around the given Clob . |
Method Summary |
static java.sql.Clob |
generateProxy(java.sql.Clob clob)
Generates a SerializableClobProxy proxy wrapping the provided Clob object. |
static java.lang.ClassLoader |
getProxyClassLoader()
Determines the appropriate class loader to which the generated proxy
should be scoped. |
static boolean |
isNClob(java.sql.Clob clob)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SerializableNClobProxy
protected SerializableNClobProxy(java.sql.Clob clob)
- Builds a serializable
Clob
wrapper around the given Clob
.
- Parameters:
clob
- The Clob
to be wrapped.- See Also:
generateProxy(java.sql.Clob)
isNClob
public static boolean isNClob(java.sql.Clob clob)
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.
Copyright © 2012. All Rights Reserved.