Package 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.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SerializableNClobProxy(java.sql.Clob clob)
Builds a serializableClob
wrapper around the givenClob
.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static java.sql.NClob
generateProxy(java.sql.NClob nclob)
Generates a SerializableNClobProxy proxy wrapping the provided NClob 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)
Deprecated.ORM baselines on JDK 1.6, so optional support for NClob (JDK 1,6 addition) is no longer needed.-
Methods inherited from class org.hibernate.engine.jdbc.SerializableClobProxy
generateProxy, getWrappedClob, invoke
-
-
-
-
Constructor Detail
-
SerializableNClobProxy
protected SerializableNClobProxy(java.sql.Clob clob)
Builds a serializableClob
wrapper around the givenClob
.- Parameters:
clob
- TheClob
to be wrapped.- See Also:
SerializableClobProxy.generateProxy(java.sql.Clob)
-
-
Method Detail
-
isNClob
@Deprecated public static boolean isNClob(java.sql.Clob clob)
Deprecated.ORM baselines on JDK 1.6, so optional support for NClob (JDK 1,6 addition) is no longer needed.Deprecated.- Parameters:
clob
- The possible NClob reference- Returns:
true
if the the Clob is a NClob as well
-
generateProxy
public static java.sql.NClob generateProxy(java.sql.NClob nclob)
Generates a SerializableNClobProxy proxy wrapping the provided NClob object.- Parameters:
nclob
- The NClob 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.
-
-