|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.engine.jdbc.BlobProxy
public class BlobProxy
Manages aspects of proxying Blob references for non-contextual creation, including proxy creation and
handling proxy invocations. We use proxies here solely to avoid JDBC version incompatibilities.
| Method Summary | |
|---|---|
static Blob |
generateProxy(byte[] bytes)
Generates a BlobImpl proxy using byte data. |
static Blob |
generateProxy(InputStream stream,
long length)
Generates a BlobImpl proxy using a given number of bytes from an InputStream. |
Object |
invoke(Object proxy,
Method method,
Object[] args)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public Object invoke(Object proxy,
Method method,
Object[] args)
throws Throwable
invoke in interface InvocationHandlerUnsupportedOperationException - if any methods other than
Blob.length(), BlobImplementer.getUnderlyingStream(),
Blob.getBinaryStream(), Blob.getBytes(long, int), Blob.free(),
or toString/equals/hashCode are invoked.
Throwablepublic static Blob generateProxy(byte[] bytes)
bytes - The data to be created as a Blob.
public static Blob generateProxy(InputStream stream,
long length)
stream - The input stream of bytes to be created as a Blob.length - The number of bytes from stream to be written to the Blob.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||