public class V11InputBlob extends V10InputBlob
FbWireBlob
implementation for the version 11 wire protocol.AbstractFbWireBlob.BlobOpenOperation
AbstractFbBlob.BlobState
FbBlob.SeekMode
exceptionListenerDispatcher
NO_BLOB_ID
Constructor and Description |
---|
V11InputBlob(FbWireDatabase database,
FbWireTransaction transaction,
BlobParameterBuffer blobParameterBuffer,
long blobId) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkBlobOpen()
Checks if the blob is open.
|
byte[] |
getBlobInfo(byte[] requestItems,
int bufferLength)
Request blob info.
|
void |
open()
Opens an existing input blob, or creates an output blob.
|
get, getSegment, seek, sendGetSegment
getBlobId, isOutput, put, putSegment
cancelImpl, closeImpl, getDatabase, getHandle, getXdrIn, getXdrOut, processOpenResponse, receiveOpenResponse, releaseBlob, releaseResources, sendOpen, setHandle, wrapDeferredResponse
addExceptionListener, cancel, checkBlobClosed, checkDatabaseAttached, checkTransactionActive, clearDatabase, clearDeferredException, clearTransaction, close, createBlobLengthProcessor, detached, detaching, errorOccurred, get, get, getBlobInfo, getBlobParameterBuffer, getKnownBlobInfoItems, getMaximumSegmentSize, getState, getTransaction, isEndingTransaction, isEof, isOpen, length, registerDeferredException, removeExceptionListener, resetEof, setEof, setState, throwAndClearDeferredException, transactionStateChanged, transferDeferredExceptionTo, validateBufferLength, warningReceived, withLock
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cancel, close, get, get, getBlobId, getBlobInfo, getDatabase, getHandle, getMaximumSegmentSize, isEof, isOpen, isOutput, length, put, putSegment
addExceptionListener, removeExceptionListener
detached, detaching, warningReceived
public V11InputBlob(FbWireDatabase database, FbWireTransaction transaction, BlobParameterBuffer blobParameterBuffer, long blobId) throws java.sql.SQLException
java.sql.SQLException
public void open() throws java.sql.SQLException
FbBlob
open
in interface FbBlob
open
in class V10InputBlob
java.sql.SQLException
- If the blob is already open, this is a (closed) output blob and it already has a blobId, the
transaction is not active, or a database connection error occurredprotected void checkBlobOpen() throws java.sql.SQLException
AbstractFbBlob
NOTE: Subclasses may perform additional side effects, like queuing a server-side open for a deferred open blob.
checkBlobOpen
in class AbstractFbBlob
java.sql.SQLException
- when the blob is closed.public byte[] getBlobInfo(byte[] requestItems, int bufferLength) throws java.sql.SQLException
FbBlob
getBlobInfo
in interface FbBlob
getBlobInfo
in class AbstractFbWireBlob
requestItems
- Array of info items to requestbufferLength
- Response buffer length to usejava.sql.SQLException
Copyright © 2001-2025 Jaybird (Firebird JDBC) team. All rights reserved.