Top Description Fields Constructors Methods
org.hibernate.engine.jdbc

public Class NClobProxy

extends ClobProxy
Class Inheritance
Imports
java.sql.Clob, java.io.Reader, java.lang.reflect.Proxy

Manages aspects of proxying java.sql.NClobs for non-contextual creation, including proxy creation and handling proxy invocations.

Generated proxies are typed as java.sql.Clob (java.sql.NClob extends java.sql.Clob) and in JDK 1.6 environments, they are also typed to java.sql.NClob

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
public static final Class<T>[]

Constructor Summary

AccessConstructor and Description
protected
protected
NClobProxy(Reader reader, long length)

Method Summary

Modifier and TypeMethod and Description
private static Class<T>
public static Clob

Returns:

The generated proxy.
generateProxy
(String
The data to be wrapped as a java.sql.Clob.
string
)

Hides org.hibernate.engine.jdbc.ClobProxy.generateProxy.

Generates a java.sql.Clob proxy using the string data.
public static Clob

Returns:

The generated proxy.
generateProxy
(Reader
The character reader
reader
,
long
The length of the character reader
length
)

Hides org.hibernate.engine.jdbc.ClobProxy.generateProxy.

Generates a Clob proxy using a character reader of given length.
protected static ClassLoader

Returns:

The class loader appropriate for proxy construction.
getProxyClassLoader
()

Hides org.hibernate.engine.jdbc.ClobProxy.getProxyClassLoader.

Determines the appropriate class loader to which the generated proxy should be scoped.
Inherited from org.hibernate.engine.jdbc.ClobProxy:
getAsciiStreamgetCharacterStreamgetLengthgetSubStringinvokeresetIfNeeded

Field Detail

PROXY_INTERFACESback to summary
public static final Class<T>[] PROXY_INTERFACES

Hides org.hibernate.engine.jdbc.ClobProxy.PROXY_INTERFACES.

Constructor Detail

NClobProxyback to summary
protected NClobProxy(String string)
NClobProxyback to summary
protected NClobProxy(Reader reader, long length)

Method Detail

determineNClobInterfaceback to summary
private static Class<T> determineNClobInterface()
generateProxyback to summary
public static Clob generateProxy(String string)

Hides org.hibernate.engine.jdbc.ClobProxy.generateProxy.

Generates a java.sql.Clob proxy using the string data.

Parameters
string:String

The data to be wrapped as a java.sql.Clob.

Returns:Clob

The generated proxy.

generateProxyback to summary
public static Clob generateProxy(Reader reader, long length)

Hides org.hibernate.engine.jdbc.ClobProxy.generateProxy.

Generates a Clob proxy using a character reader of given length.

Parameters
reader:Reader

The character reader

length:long

The length of the character reader

Returns:Clob

The generated proxy.

getProxyClassLoaderback to summary
protected static ClassLoader getProxyClassLoader()

Hides org.hibernate.engine.jdbc.ClobProxy.getProxyClassLoader.

Determines the appropriate class loader to which the generated proxy should be scoped.

Returns:ClassLoader

The class loader appropriate for proxy construction.