类 NClobProxy
- java.lang.Object
-
- org.hibernate.engine.jdbc.ClobProxy
-
- org.hibernate.engine.jdbc.NClobProxy
-
- 所有已实现的接口:
InvocationHandler
public class NClobProxy extends ClobProxy
Manages aspects of proxying java.sql.NClobs for non-contextual creation, including proxy creation and handling proxy invocations. We use proxies here solely to avoid JDBC version incompatibilities. Generated proxies are typed asClob(java.sql.NClob extendsClob) and in JDK 1.6+ environments, they are also typed to java.sql.NClob- 作者:
- Steve Ebersole
-
-
字段概要
字段 修饰符和类型 字段 说明 static Class[]PROXY_INTERFACESThe interfaces used to generate the proxy
-
构造器概要
构造器 限定符 构造器 说明 protectedNClobProxy(Reader reader, long length)protectedNClobProxy(String string)
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static NClobgenerateProxy(Reader reader, long length)Generates aNClobproxy using a character reader of given length.static NClobgenerateProxy(String string)Generates aClobproxy using the string data.protected static ClassLoadergetProxyClassLoader()Determines the appropriate class loader to which the generated proxy should be scoped.-
从类继承的方法 org.hibernate.engine.jdbc.ClobProxy
getAsciiStream, getCharacterStream, getLength, getSubString, getUnderlyingStream, invoke, resetIfNeeded
-
-
-
-
字段详细资料
-
PROXY_INTERFACES
public static final Class[] PROXY_INTERFACES
The interfaces used to generate the proxy
-
-
方法详细资料
-
generateProxy
public static NClob generateProxy(String string)
Generates aClobproxy using the string data.- 参数:
string- The data to be wrapped as aClob.- 返回:
- The generated proxy.
-
generateProxy
public static NClob generateProxy(Reader reader, long length)
Generates aNClobproxy using a character reader of given length.- 参数:
reader- The character readerlength- The length of the character reader- 返回:
- The generated proxy.
-
getProxyClassLoader
protected static ClassLoader getProxyClassLoader()
Determines the appropriate class loader to which the generated proxy should be scoped.- 返回:
- The class loader appropriate for proxy construction.
-
-