public class

NClobProxy

extends ClobProxy
java.lang.Object
   ↳ org.hibernate.engine.jdbc.ClobProxy
     ↳ org.hibernate.engine.jdbc.NClobProxy

Class Overview

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

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

Summary

Fields
public static final Class[] PROXY_INTERFACES
Protected Constructors
NClobProxy(String string)
NClobProxy(Reader reader, long length)
Public Methods
static Clob generateProxy(String string)
Generates a Clob proxy using the string data.
static Clob generateProxy(Reader reader, long length)
Generates a Clob proxy using a character reader of given length.
Protected Methods
static ClassLoader getProxyClassLoader()
Determines the appropriate class loader to which the generated proxy should be scoped.
[Expand]
Inherited Methods
From class org.hibernate.engine.jdbc.ClobProxy
From class java.lang.Object
From interface java.lang.reflect.InvocationHandler

Fields

public static final Class[] PROXY_INTERFACES

Protected Constructors

protected NClobProxy (String string)

protected NClobProxy (Reader reader, long length)

Public Methods

public static Clob generateProxy (String string)

Generates a Clob proxy using the string data.

Parameters
string The data to be wrapped as a Clob.
Returns
  • The generated proxy.

public static Clob generateProxy (Reader reader, long length)

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

Parameters
reader The character reader
length The length of the character reader
Returns
  • The generated proxy.

Protected Methods

protected static ClassLoader getProxyClassLoader ()

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

Returns
  • The class loader appropriate for proxy construction.