Blobs for non-contextual creation, including proxy creation and
handling proxy invocations.
| Modifier and Type | Field and Description |
|---|---|
| private long | |
| private boolean | |
| private static final Class | |
| private InputStream |
| Access | Constructor and Description |
|---|---|
| private | |
| private | BlobProxy(InputStream
The binary stream stream, long The length of the stream length)Constructor used to build |
| Modifier and Type | Method and Description |
|---|---|
| public static Blob | Returns: The generated proxy.The data to be created as a Blob. bytes)Generates a BlobImpl proxy using byte data. |
| public static Blob | Returns: The generated proxy.The input stream of bytes to be created as a Blob. stream, long The number of bytes from stream to be written to the Blob. length)Generates a BlobImpl proxy using a given number of bytes from an InputStream. |
| private long | |
| private static ClassLoader | Returns: The class loader appropriate for proxy construction.Determines the appropriate class loader to which the generated proxy should be scoped. |
| private InputStream | |
| 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. |
| length | back to summary |
|---|---|
| private long length | |
| needsReset | back to summary |
|---|---|
| private boolean needsReset | |
| PROXY_INTERFACES | back to summary |
|---|---|
| private static final Class<T>[] PROXY_INTERFACES | |
| stream | back to summary |
|---|---|
| private InputStream stream | |
| BlobProxy | back to summary |
|---|---|
| private BlobProxy(byte[] bytes) Constructor used to build
| |
| BlobProxy | back to summary |
|---|---|
| private BlobProxy(InputStream stream, long length) Constructor used to build
| |
| generateProxy | back to summary |
|---|---|
| public static Blob generateProxy(byte[] bytes) Generates a BlobImpl proxy using byte data.
| |
| generateProxy | back to summary |
|---|---|
| public static Blob generateProxy(InputStream stream, long length) Generates a BlobImpl proxy using a given number of bytes from an InputStream.
| |
| getLength | back to summary |
|---|---|
| private long getLength() | |
| getProxyClassLoader | back to summary |
|---|---|
| private static ClassLoader getProxyClassLoader() Determines the appropriate class loader to which the generated proxy should be scoped.
| |
| getStream | back to summary |
|---|---|
| private InputStream getStream() 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.
| |