|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.message.TraceObject
org.h2.jdbc.JdbcBlob
public class JdbcBlob
Represents a BLOB value.
| Field Summary |
|---|
| Fields inherited from class org.h2.message.TraceObject |
|---|
ARRAY, BLOB, CALLABLE_STATEMENT, CLOB, CONNECTION, DATA_SOURCE, DATABASE_META_DATA, PARAMETER_META_DATA, PREPARED_STATEMENT, RESULT_SET, RESULT_SET_META_DATA, SAVEPOINT, SQL_EXCEPTION, STATEMENT, trace, XA_DATA_SOURCE, XA_RESOURCE, XID |
| Constructor Summary | |
|---|---|
JdbcBlob(JdbcConnection conn,
Value value,
int id)
INTERNAL |
|
| Method Summary | |
|---|---|
void |
free()
Release all resources of this object. |
java.io.InputStream |
getBinaryStream()
Returns the input stream. |
java.io.InputStream |
getBinaryStream(long pos,
long length)
[Not supported] Returns the input stream, starting from an offset. |
byte[] |
getBytes(long pos,
int length)
Returns some bytes of the object. |
long |
length()
Returns the length. |
long |
position(java.sql.Blob blobPattern,
long start)
[Not supported] Searches a pattern and return the position. |
long |
position(byte[] pattern,
long start)
[Not supported] Searches a pattern and return the position. |
java.io.OutputStream |
setBinaryStream(long pos)
Get a writer to update the Blob. |
int |
setBytes(long pos,
byte[] bytes)
Fills the Blob. |
int |
setBytes(long pos,
byte[] bytes,
int offset,
int len)
[Not supported] Sets some bytes of the object. |
java.lang.String |
toString()
INTERNAL |
void |
truncate(long len)
[Not supported] Truncates the object. |
| Methods inherited from class org.h2.message.TraceObject |
|---|
debugCode, debugCodeAssign, debugCodeCall, debugCodeCall, debugCodeCall, getNextId, getTrace, getTraceId, getTraceObjectName, isDebugEnabled, isInfoEnabled, logAndConvert, quote, quoteArray, quoteBigDecimal, quoteBytes, quoteDate, quoteIntArray, quoteMap, quoteTime, quoteTimestamp, setTrace, unsupported |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JdbcBlob(JdbcConnection conn,
Value value,
int id)
| Method Detail |
|---|
public long length()
throws java.sql.SQLException
length in interface java.sql.Blobjava.sql.SQLException
public void truncate(long len)
throws java.sql.SQLException
truncate in interface java.sql.Bloblen - the new length
java.sql.SQLException
public byte[] getBytes(long pos,
int length)
throws java.sql.SQLException
getBytes in interface java.sql.Blobpos - the index, the first byte is at position 1length - the number of bytes
java.sql.SQLException
public int setBytes(long pos,
byte[] bytes)
throws java.sql.SQLException
setBytes in interface java.sql.Blobpos - where to start writing (the first byte is at position 1)bytes - the bytes to set
java.sql.SQLException
public int setBytes(long pos,
byte[] bytes,
int offset,
int len)
throws java.sql.SQLException
setBytes in interface java.sql.Blobpos - the write positionbytes - the bytes to setoffset - the bytes offsetlen - the number of bytes to write
java.sql.SQLException
public java.io.InputStream getBinaryStream()
throws java.sql.SQLException
getBinaryStream in interface java.sql.Blobjava.sql.SQLException
public java.io.OutputStream setBinaryStream(long pos)
throws java.sql.SQLException
setBinaryStream in interface java.sql.Blobpos - where to start writing (the first byte is at position 1)
java.sql.SQLException
public long position(byte[] pattern,
long start)
throws java.sql.SQLException
position in interface java.sql.Blobpattern - the pattern to searchstart - the index, the first byte is at position 1
java.sql.SQLException
public long position(java.sql.Blob blobPattern,
long start)
throws java.sql.SQLException
position in interface java.sql.BlobblobPattern - the pattern to searchstart - the index, the first byte is at position 1
java.sql.SQLExceptionpublic void free()
public java.io.InputStream getBinaryStream(long pos,
long length)
throws java.sql.SQLException
pos - where to start readinglength - the number of bytes that will be read
java.sql.SQLExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||