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.
<p/>
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
| Modifier and Type | Field and Description |
|---|---|
static Class[] |
PROXY_INTERFACES
The interfaces used to generate the proxy
|
| Modifier | Constructor and Description |
|---|---|
protected |
NClobProxy(Reader reader,
long length) |
protected |
NClobProxy(String string) |
| Modifier and Type | Method and Description |
|---|---|
static NClob |
generateProxy(Reader reader,
long length)
Generates a
NClob proxy using a character reader of given length. |
static NClob |
generateProxy(String string)
Generates a
Clob proxy using the string data. |
protected static ClassLoader |
getProxyClassLoader()
Determines the appropriate class loader to which the generated proxy
should be scoped.
|
getAsciiStream, getCharacterStream, getLength, getSubString, getUnderlyingStream, invoke, resetIfNeededpublic static final Class[] PROXY_INTERFACES
The interfaces used to generate the proxy
protected NClobProxy(String string)
protected NClobProxy(Reader reader, long length)
public static NClob generateProxy(String string)
Generates a Clob proxy using the string data.
string - The data to be wrapped as a Clob.public static NClob generateProxy(Reader reader, long length)
Generates a NClob proxy using a character reader of given length.
reader - The character readerlength - The length of the character readerprotected static ClassLoader getProxyClassLoader()
Determines the appropriate class loader to which the generated proxy should be scoped.
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.