public abstract class AbstractFbWireBlob extends AbstractFbBlob implements FbWireBlob
FbBlob.SeekMode
exceptionListenerDispatcher
NO_BLOB_ID
Modifier | Constructor and Description |
---|---|
protected |
AbstractFbWireBlob(FbWireDatabase database,
FbWireTransaction transaction,
BlobParameterBuffer blobParameterBuffer) |
Modifier and Type | Method and Description |
---|---|
protected void |
cancelImpl()
Internal implementation of
AbstractFbBlob.cancel() . |
protected void |
closeImpl()
Internal implementation of
AbstractFbBlob.close() . |
byte[] |
getBlobInfo(byte[] requestItems,
int bufferLength)
Request blob info.
|
FbWireDatabase |
getDatabase() |
int |
getHandle() |
protected void |
releaseBlob(int releaseOperation)
Release this blob with the specified operation.
|
protected void |
releaseResources()
Release Java resources held.
|
protected void |
setHandle(int blobHandle) |
addExceptionListener, 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, warningReceived
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cancel, close, getBlobId, getBlobInfo, getMaximumSegmentSize, getSegment, getSynchronizationObject, isEof, isOpen, isOutput, length, open, putSegment, seek
addExceptionListener, removeExceptionListener
protected AbstractFbWireBlob(FbWireDatabase database, FbWireTransaction transaction, BlobParameterBuffer blobParameterBuffer)
public FbWireDatabase getDatabase()
getDatabase
in interface FbBlob
getDatabase
in class AbstractFbBlob
public final int getHandle()
protected final void setHandle(int blobHandle)
blobHandle
- The Firebird blob handle identifierprotected void releaseBlob(int releaseOperation) throws java.sql.SQLException
Implementations should only do the operation and not perform any further clean up or checks on attached database and active transaction, as those checks and clean up should be done by the caller.
releaseOperation
- Either WireProtocolConstants.op_close_blob
or WireProtocolConstants.op_cancel_blob
java.sql.SQLException
- For database communication errors.protected void closeImpl() throws java.sql.SQLException
AbstractFbBlob
AbstractFbBlob.close()
. The implementation does not need
to check for attached database and active transaction, nor does it need to mark this blob as closed.closeImpl
in class AbstractFbBlob
java.sql.SQLException
protected void cancelImpl() throws java.sql.SQLException
AbstractFbBlob
AbstractFbBlob.cancel()
. The implementation does not need
to check for attached database and active transaction, nor does it need to mark this blob as closed.cancelImpl
in class AbstractFbBlob
java.sql.SQLException
protected void releaseResources()
AbstractFbBlob
releaseResources
in class AbstractFbBlob
public byte[] getBlobInfo(byte[] requestItems, int bufferLength) throws java.sql.SQLException
FbBlob
getBlobInfo
in interface FbBlob
requestItems
- Array of info items to requestbufferLength
- Response buffer length to usejava.sql.SQLException
Copyright © 2001-2021 Jaybird (Firebird JDBC/JCA) team. All rights reserved.