Clobs for non-contextual creation, including proxy creation and
handling proxy invocations. We use proxies here solely to avoid JDBC version incompatibilities.
| Modifier and Type | Field and Description |
|---|---|
| private final CharacterStream | |
| private boolean | |
| private static final Class |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static Clob | Returns: The generated proxy.The data to be wrapped as a string)Clob.Generates a |
| public static Clob | Returns: The generated proxy.The character reader reader, long The length of the character reader length)Generates a |
| protected InputStream | |
| protected Reader | |
| protected long | |
| protected static ClassLoader | Returns: The class loader appropriate for proxy construction.Determines the appropriate class loader to which the generated proxy should be scoped. |
| protected String | |
| protected CharacterStream | |
| public Object | invoke(Object
the proxy instance that the method was invoked on proxy, Method the method, Object[] Method instance corresponding to
the interface method invoked on the proxy instance. The declaring
class of the Method object will be the interface that
the method was declared in, which may be a superinterface of the
proxy interface that the proxy class inherits the method through.an array of objects containing the values of the
arguments passed in the method invocation on the proxy instance,
or args)null if interface method takes no arguments.
Arguments of primitive types are wrapped in instances of the
appropriate primitive wrapper class, such as
java.lang.Integer or java.lang.Boolean.Implements java. |
| protected void |
| characterStream | back to summary |
|---|---|
| private final CharacterStream characterStream | |
| needsReset | back to summary |
|---|---|
| private boolean needsReset | |
| PROXY_INTERFACES | back to summary |
|---|---|
| private static final Class<T>[] PROXY_INTERFACES | |
| ClobProxy | back to summary |
|---|---|
| protected ClobProxy(String string) Constructor used to build
| |
| ClobProxy | back to summary |
|---|---|
| protected ClobProxy(Reader reader, long length) Constructor used to build
| |
| generateProxy | back to summary |
|---|---|
| public static Clob generateProxy(String string) Generates a | |
| generateProxy | back to summary |
|---|---|
| public static Clob generateProxy(Reader reader, long length) Generates a | |
| getAsciiStream | back to summary |
|---|---|
| protected InputStream getAsciiStream() throws SQLException | |
| getCharacterStream | back to summary |
|---|---|
| protected Reader getCharacterStream() throws SQLException | |
| getLength | back to summary |
|---|---|
| protected long getLength() | |
| getProxyClassLoader | back to summary |
|---|---|
| protected static ClassLoader getProxyClassLoader() Determines the appropriate class loader to which the generated proxy should be scoped.
| |
| getSubString | back to summary |
|---|---|
| protected String getSubString(long start, int length) | |
| getUnderlyingStream | back to summary |
|---|---|
| protected CharacterStream getUnderlyingStream() throws SQLException | |
| invoke | back to summary |
|---|---|
| public Object invoke(Object proxy, Method method, Object[] args) throws Throwable Implements java. Doc from java. Processes a method invocation on a proxy instance and returns the result. This method will be invoked on an invocation handler when a method is invoked on a proxy instance that it is associated with.
| |
| resetIfNeeded | back to summary |
|---|---|
| protected void resetIfNeeded() throws SQLException | |