![]() |
Quadcap Embeddable Database |
Inheritance diagram for com.quadcap.sql.types.ValueBlob:

Definition at line 74 of file ValueBlob.java.
Public Member Functions | |
| String | show () |
| ValueBlob () | |
| ValueBlob (byte[] bytes) | |
| ValueBlob (Datafile file, long transId, InputStream is, int length) throws IOException | |
| void | init (Datafile file, long transId, InputStream is, int length) throws IOException |
| byte[] | getBytesVal () |
| void | passivate (Datafile file, long transId) throws IOException |
| void | close () |
| void | setDatafile (Datafile file) |
| long | getPermBlock () |
| long | getTempBlock () |
| void | setPermBlock (long block) |
| Value | unop (int op) throws ValueException |
| Value | binop (int op, Value v) throws ValueException |
| Two-level virtual operator dispatch. | |
| Object | asJavaObject () |
| void | fromJavaObject (Object obj) throws ValueException |
| Type | getType () throws SQLException |
| InputStream | getBinaryStream () throws SQLException |
| byte[] | getBytes (long lpos, int length) throws SQLException |
Retrieves all or part of the BLOB value that this Blob object represents, as an array of bytes. | |
| long | length () throws SQLException |
Returns the number of bytes in the BLOB value designated by this Blob object. | |
| long | position (Blob blob, long start) throws SQLException |
| long | position (byte[] pattern, long start) throws SQLException |
| void | readExternal (ObjectInput in) throws IOException, ClassNotFoundException |
| void | writeExternal (ObjectOutput out) throws IOException |
| Value | convert (TypeBlob type) throws ValueException |
| Value | convert (TypeVarBinary type) throws ValueException |
| void | serializeKey (KeyStream out) throws IOException |
| String | toString () |
| int | setBytes (long lpos, byte[] bytes) throws SQLException |
Writes the given array of bytes to the BLOB value that this Blob object represents, starting at position pos, and returns the number of bytes written. | |
| int | setBytes (long lpos, byte[] bytes, int offset, int len) throws SQLException |
Writes all or part of the given byte array to the BLOB value that this Blob object represents and returns the number of bytes written. | |
| java.io.OutputStream | setBinaryStream (long lpos) throws SQLException |
Retrieves a stream that can be used to write to the BLOB value that this Blob object represents. | |
| void | truncate (long len) throws SQLException |
Truncates the BLOB value that this Blob object represents to be len bytes in length. | |
Package Functions | |
| RandomAccess | getRandomAccess () throws SQLException |
| final InputStream | getPositionedStream (int pos) throws SQLException |
| Zero based! | |
Package Attributes | |
| int | mySerial = serial++ |
| Datafile | file |
| long | permBlock = -1 |
| long | tempBlock = -1 |
| RandomAccess | ra |
| byte[] | bytes |
Static Package Attributes | |
| final boolean | trace = false |
| int | serial = 0 |
|
|
Definition at line 98 of file ValueBlob.java. References com.quadcap.sql.types.ValueBlob.show(), and com.quadcap.sql.types.ValueBlob.trace. |
|
|
Definition at line 106 of file ValueBlob.java. References com.quadcap.sql.types.ValueBlob.show(), and com.quadcap.sql.types.ValueBlob.trace. |
|
||||||||||||||||||||
|
Definition at line 115 of file ValueBlob.java. References com.quadcap.sql.types.ValueBlob.file, com.quadcap.sql.types.ValueBlob.init(), and com.quadcap.sql.types.ValueBlob.length(). |
|
|
Implements com.quadcap.sql.types.Value. Reimplemented in com.quadcap.sql.types.ValueClob. Definition at line 229 of file ValueBlob.java. |
|
||||||||||||
|
Two-level virtual operator dispatch. Each subtype implements the same basic template for this abstract function:
Value binop(int op, Value l) { return l.binop(op, this); }
Then, type overloading allows for each type to implement all ops for which it can be the left hand side for all allowed types on the right hand side: Value binop(int op, ValueInteger l); Value binop(int op, ValueLong l); ... Implements com.quadcap.sql.types.Value. Reimplemented in com.quadcap.sql.types.ValueClob. Definition at line 225 of file ValueBlob.java. References com.quadcap.sql.types.ValueBlob.binop(). Referenced by com.quadcap.sql.types.ValueBlob.binop(). |
|
|
Definition at line 200 of file ValueBlob.java. References com.quadcap.sql.types.ValueBlob.file. Referenced by com.quadcap.jdbc.PreparedStatement.setAsciiStream(), com.quadcap.jdbc.PreparedStatement.setBinaryStream(), and com.quadcap.jdbc.PreparedStatement.setCharacterStream(). |
|
|
Reimplemented from com.quadcap.sql.types.Value. Definition at line 364 of file ValueBlob.java. References com.quadcap.sql.types.ValueBlob.length(). |
|
|
Reimplemented from com.quadcap.sql.types.Value. Definition at line 360 of file ValueBlob.java. References com.quadcap.sql.types.ValueBlob.convert(). Referenced by com.quadcap.sql.types.ValueBlob.convert(). |
|
|
Implements com.quadcap.sql.types.Value. Reimplemented in com.quadcap.sql.types.ValueClob. Definition at line 233 of file ValueBlob.java. References com.quadcap.sql.types.ValueBlob.fromJavaObject(). Referenced by com.quadcap.sql.types.ValueBlob.fromJavaObject(). |
|
|
Definition at line 241 of file ValueBlob.java. References com.quadcap.sql.types.ValueBlob.bytes, and com.quadcap.sql.types.ValueBlob.getRandomAccess(). Referenced by com.quadcap.sql.types.ValueClob.getAsciiStream(), and com.quadcap.sql.types.ValueClob.getCharacterStream(). |
|
||||||||||||
|
Retrieves all or part of the
This
Definition at line 284 of file ValueBlob.java. References com.quadcap.sql.types.ValueBlob.bytes, com.quadcap.sql.types.ValueBlob.getBytes(), com.quadcap.sql.types.ValueBlob.getRandomAccess(), com.quadcap.sql.types.ValueBlob.length(), and com.quadcap.sql.file.RandomAccess.read(). Referenced by com.quadcap.sql.types.ValueBlob.getBytes(). |
|
|
Definition at line 163 of file ValueBlob.java. References com.quadcap.sql.types.ValueBlob.bytes. Referenced by com.quadcap.sql.TableOps.holdBlobsInRow(). |
|
|
Definition at line 208 of file ValueBlob.java. References com.quadcap.sql.types.ValueBlob.permBlock. Referenced by com.quadcap.sql.TableOps.freeBlobsInRow(), com.quadcap.sql.TableOps.holdBlobsInRow(), com.quadcap.sql.UpdateRow.redo(), and com.quadcap.sql.InsertRow.redo(). |
|
|
Zero based!
Definition at line 325 of file ValueBlob.java. References com.quadcap.sql.types.ValueBlob.bytes, com.quadcap.sql.types.ValueBlob.getPositionedStream(), com.quadcap.sql.types.ValueBlob.getRandomAccess(), and com.quadcap.sql.file.RandomAccessInputStream.setPosition(). Referenced by com.quadcap.sql.types.ValueBlob.getPositionedStream(). |
|
|
|
Definition at line 209 of file ValueBlob.java. References com.quadcap.sql.types.ValueBlob.tempBlock. |
|
|
Implements com.quadcap.sql.types.Value. Reimplemented in com.quadcap.sql.types.ValueClob. Definition at line 237 of file ValueBlob.java. References com.quadcap.sql.types.ValueBlob.length(). |
|
||||||||||||||||||||
|
|
Returns the number of bytes in the
Reimplemented in com.quadcap.sql.types.ValueClob. Definition at line 307 of file ValueBlob.java. References com.quadcap.sql.types.ValueBlob.bytes, com.quadcap.sql.types.ValueBlob.getRandomAccess(), and com.quadcap.sql.file.RandomAccess.size(). Referenced by com.quadcap.sql.types.ValueBlob.convert(), com.quadcap.sql.types.ValueBlob.getBytes(), com.quadcap.sql.types.ValueBlob.getType(), com.quadcap.sql.types.ValueBlob.init(), com.quadcap.sql.types.ValueBlob.toString(), and com.quadcap.sql.types.ValueBlob.ValueBlob(). |
|
||||||||||||
|
||||||||||||
|
Definition at line 338 of file ValueBlob.java. |
|
||||||||||||
|
Definition at line 316 of file ValueBlob.java. References com.quadcap.sql.types.ValueBlob.position(). Referenced by com.quadcap.sql.types.ValueBlob.position(). |
|
|
Reimplemented in com.quadcap.sql.types.ValueClob. Definition at line 350 of file ValueBlob.java. References com.quadcap.sql.types.ValueBlob.permBlock, and com.quadcap.sql.types.ValueBlob.readExternal(). Referenced by com.quadcap.sql.types.ValueBlob.readExternal(). |
|
|
Implements com.quadcap.sql.types.Value. Definition at line 373 of file ValueBlob.java. References com.quadcap.sql.types.ValueBlob.serializeKey(). Referenced by com.quadcap.sql.types.ValueBlob.serializeKey(). |
|
|
Retrieves a stream that can be used to write to the
The stream begins at position
Definition at line 467 of file ValueBlob.java. References com.quadcap.sql.types.ValueBlob.getRandomAccess(), com.quadcap.sql.types.ValueBlob.setBinaryStream(), and com.quadcap.sql.file.RandomAccessOutputStream.setPosition(). Referenced by com.quadcap.sql.types.ValueBlob.setBinaryStream(). |
|
||||||||||||||||||||
|
Writes all or part of the given
Writing starts at position
Definition at line 441 of file ValueBlob.java. References com.quadcap.sql.types.ValueBlob.bytes, com.quadcap.sql.types.ValueBlob.getRandomAccess(), and com.quadcap.sql.file.RandomAccess.write(). |
|
||||||||||||
|
Writes the given array of bytes to the
Definition at line 408 of file ValueBlob.java. References com.quadcap.sql.types.ValueBlob.bytes, com.quadcap.sql.types.ValueBlob.getRandomAccess(), com.quadcap.sql.types.ValueBlob.setBytes(), and com.quadcap.sql.file.RandomAccess.write(). Referenced by com.quadcap.sql.types.ValueBlob.setBytes(). |
|
|
Reimplemented from com.quadcap.sql.types.Value. Definition at line 204 of file ValueBlob.java. References com.quadcap.sql.file.Datafile.file, and com.quadcap.sql.types.ValueBlob.setDatafile(). Referenced by com.quadcap.sql.types.ValueBlob.setDatafile(). |
|
|
Definition at line 211 of file ValueBlob.java. References com.quadcap.sql.types.ValueBlob.permBlock, and com.quadcap.sql.types.ValueBlob.setPermBlock(). Referenced by com.quadcap.sql.UpdateRow.redo(), com.quadcap.sql.InsertRow.redo(), and com.quadcap.sql.types.ValueBlob.setPermBlock(). |
|
|
Definition at line 85 of file ValueBlob.java. References com.quadcap.sql.types.ValueBlob.mySerial. Referenced by com.quadcap.sql.types.ValueBlob.init(), com.quadcap.sql.types.ValueBlob.passivate(), and com.quadcap.sql.types.ValueBlob.ValueBlob(). |
|
|
Reimplemented in com.quadcap.sql.types.ValueClob. Definition at line 377 of file ValueBlob.java. References com.quadcap.sql.types.ValueBlob.length(). |
|
|
Truncates the
Definition at line 487 of file ValueBlob.java. References com.quadcap.sql.types.ValueBlob.getRandomAccess(), com.quadcap.sql.file.RandomAccess.resize(), and com.quadcap.sql.types.ValueBlob.truncate(). Referenced by com.quadcap.sql.types.ValueBlob.truncate(). |
|
|
Reimplemented from com.quadcap.sql.types.Value. Reimplemented in com.quadcap.sql.types.ValueClob. Definition at line 215 of file ValueBlob.java. References com.quadcap.sql.types.ValueBlob.unop(). Referenced by com.quadcap.sql.types.ValueBlob.unop(). |
|
|
Reimplemented in com.quadcap.sql.types.ValueClob. Definition at line 356 of file ValueBlob.java. References com.quadcap.sql.types.ValueBlob.permBlock, and com.quadcap.sql.types.ValueBlob.writeExternal(). Referenced by com.quadcap.sql.types.ValueBlob.writeExternal(). |
|
|
|
Definition at line 90 of file ValueBlob.java. Referenced by com.quadcap.sql.types.ValueBlob.close(), com.quadcap.sql.types.ValueBlob.getRandomAccess(), com.quadcap.sql.types.ValueBlob.init(), com.quadcap.sql.types.ValueBlob.passivate(), and com.quadcap.sql.types.ValueBlob.ValueBlob(). |
|
|
Definition at line 84 of file ValueBlob.java. Referenced by com.quadcap.sql.types.ValueBlob.show(). |
|
|
|
Definition at line 94 of file ValueBlob.java. Referenced by com.quadcap.sql.types.ValueBlob.getRandomAccess(). |
|
|
Definition at line 83 of file ValueBlob.java. |
|
|
Definition at line 92 of file ValueBlob.java. Referenced by com.quadcap.sql.types.ValueBlob.getTempBlock(), com.quadcap.sql.types.ValueBlob.init(), and com.quadcap.sql.types.ValueBlob.passivate(). |
|
|
Definition at line 82 of file ValueBlob.java. Referenced by com.quadcap.sql.types.ValueBlob.init(), com.quadcap.sql.types.ValueBlob.passivate(), and com.quadcap.sql.types.ValueBlob.ValueBlob(). |