public abstract class AbstractFbWireOutputBlob extends AbstractFbWireBlob
FbBlob.SeekModeexceptionListenerDispatcherNO_BLOB_ID| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFbWireOutputBlob(FbWireDatabase database,
FbWireTransaction transaction,
BlobParameterBuffer blobParameterBuffer) |
| Modifier and Type | Method and Description |
|---|---|
long |
getBlobId() |
byte[] |
getSegment(int sizeRequested)
Gets a segment of blob data.
|
boolean |
isOutput() |
void |
seek(int offset,
FbBlob.SeekMode seekMode)
Performs a seek on a blob with the specified
seekMode and offset. |
protected void |
setBlobId(long blobId)
Sets the blob id.
|
cancelImpl, closeImpl, getBlobInfo, getDatabase, getHandle, releaseBlob, releaseResources, setHandleaddExceptionListener, cancel, checkBlobClosed, checkBlobOpen, checkDatabaseAttached, checkTransactionActive, clearDatabase, clearTransaction, close, createBlobLengthProcessor, detached, detaching, getBlobInfo, getBlobParameterBuffer, getMaximumSegmentSize, getSynchronizationObject, getTransaction, isEndingTransaction, isEof, isOpen, length, removeExceptionListener, resetEof, setEof, setOpen, transactionStateChanged, warningReceivedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancel, close, getBlobInfo, getMaximumSegmentSize, getSynchronizationObject, isEof, isOpen, length, open, putSegmentaddExceptionListener, removeExceptionListenerprotected AbstractFbWireOutputBlob(FbWireDatabase database, FbWireTransaction transaction, BlobParameterBuffer blobParameterBuffer)
public final long getBlobId()
protected final void setBlobId(long blobId)
throws java.sql.SQLException
blobId - Blob id.java.sql.SQLException - If this is an input blob, or if this is an output blob whose blobId was already set.public final boolean isOutput()
true if this is an output blob (write only), false if this is an
input blob (read only)public final byte[] getSegment(int sizeRequested)
throws java.sql.SQLException
FbBlob
When sizeRequested exceeds FbBlob.getMaximumSegmentSize() it is silently reduced to the maximum
segment size.
sizeRequested - Requested segment size (> 0).java.sql.SQLException - If this is an output blob, the blob is closed, the transaction is not active, or a database connection
error occurred.public final void seek(int offset,
FbBlob.SeekMode seekMode)
throws java.sql.SQLException
FbBlobseekMode and offset.
Firebird only supports seek on stream blobs.
offset - Offset of the seek, effect depends on value of seekModeseekMode - Value of FbBlob.SeekModejava.sql.SQLException - If the blob is closed, the transaction is not active, or a database error occurred.Copyright © 2001-2021 Jaybird (Firebird JDBC/JCA) team. All rights reserved.