LibreOffice Module connectivity (master) 1
|
#include <Blob.hxx>
Public Member Functions | |
Blob (isc_db_handle *pDatabaseHandle, isc_tr_handle *pTransactionHandle, ISC_QUAD const &aBlobID) | |
bool | readOneSegment (std::vector< char > &rDataOut) |
virtual sal_Int64 SAL_CALL | length () override |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getBytes (sal_Int64 aPosition, sal_Int32 aLength) override |
virtual css::uno::Reference< css::io::XInputStream > SAL_CALL | getBinaryStream () override |
virtual sal_Int64 SAL_CALL | position (const css::uno::Sequence< sal_Int8 > &rPattern, sal_Int64 aStart) override |
virtual sal_Int64 SAL_CALL | positionOfBlob (const css::uno::Reference< css::sdbc::XBlob > &rPattern, sal_Int64 aStart) override |
virtual sal_Int32 SAL_CALL | readBytes (css::uno::Sequence< sal_Int8 > &rDataOut, sal_Int32 nBytes) override |
virtual sal_Int32 SAL_CALL | readSomeBytes (css::uno::Sequence< sal_Int8 > &rDataOut, sal_Int32 nMaximumBytes) override |
virtual void SAL_CALL | skipBytes (sal_Int32 nBytes) override |
virtual sal_Int32 SAL_CALL | available () override |
virtual void SAL_CALL | closeInput () override |
virtual void SAL_CALL | disposing () override |
Protected Member Functions | |
void | ensureBlobIsOpened () |
void | closeBlob () |
Closes the blob and cleans up resources – can be used to reset the blob if we e.g. More... | |
sal_uInt16 | getMaximumSegmentSize () |
Protected Attributes | |
::osl::Mutex | m_aMutex |
isc_db_handle * | m_pDatabaseHandle |
isc_tr_handle * | m_pTransactionHandle |
ISC_QUAD | m_blobID |
isc_blob_handle | m_blobHandle |
bool | m_bBlobOpened |
sal_Int64 | m_nBlobLength |
sal_uInt16 | m_nMaxSegmentSize |
sal_Int64 | m_nBlobPosition |
ISC_STATUS_ARRAY | m_statusVector |
Definition at line 27 of file drivers/firebird/Blob.hxx.
Blob::Blob | ( | isc_db_handle * | pDatabaseHandle, |
isc_tr_handle * | pTransactionHandle, | ||
ISC_QUAD const & | aBlobID | ||
) |
Definition at line 34 of file firebird/Blob.cxx.
|
overridevirtual |
Definition at line 332 of file firebird/Blob.cxx.
References a, connectivity::firebird::checkDisposed(), ensureBlobIsOpened(), Exception, cppu::getCaughtException(), m_aMutex, m_nBlobLength, and m_nBlobPosition.
|
protected |
Closes the blob and cleans up resources – can be used to reset the blob if we e.g.
want to read from the beginning again.
css::sdbc::SQLException |
Definition at line 155 of file firebird/Blob.cxx.
References connectivity::firebird::evaluateStatusVector(), m_aMutex, m_bBlobOpened, m_blobHandle, m_statusVector, and u.
Referenced by closeInput(), disposing(), and getBytes().
|
overridevirtual |
Definition at line 364 of file firebird/Blob.cxx.
References a, closeBlob(), Exception, and cppu::getCaughtException().
|
overridevirtual |
Definition at line 176 of file firebird/Blob.cxx.
References closeBlob(), and TOOLS_WARN_EXCEPTION.
|
protected |
css::sdbc::SQLException |
Definition at line 53 of file firebird/Blob.cxx.
References connectivity::firebird::evaluateStatusVector(), m_aMutex, m_bBlobOpened, m_blobHandle, m_blobID, m_nBlobLength, m_nBlobPosition, m_nMaxSegmentSize, m_pDatabaseHandle, m_pTransactionHandle, m_statusVector, and u.
Referenced by available(), getBytes(), getMaximumSegmentSize(), length(), readBytes(), and readOneSegment().
|
overridevirtual |
Definition at line 229 of file firebird/Blob.cxx.
|
overridevirtual |
Definition at line 200 of file firebird/Blob.cxx.
References connectivity::firebird::checkDisposed(), closeBlob(), ensureBlobIsOpened(), m_aMutex, m_nBlobLength, m_nBlobPosition, readBytes(), and skipBytes().
|
protected |
Definition at line 118 of file firebird/Blob.cxx.
References ensureBlobIsOpened(), and m_nMaxSegmentSize.
Referenced by readOneSegment().
|
overridevirtual |
Definition at line 191 of file firebird/Blob.cxx.
References connectivity::firebird::checkDisposed(), ensureBlobIsOpened(), m_aMutex, and m_nBlobLength.
|
overridevirtual |
Definition at line 234 of file firebird/Blob.cxx.
References dbtools::throwFeatureNotImplementedSQLException().
|
overridevirtual |
Definition at line 241 of file firebird/Blob.cxx.
References dbtools::throwFeatureNotImplementedSQLException().
|
overridevirtual |
Definition at line 250 of file firebird/Blob.cxx.
References a, connectivity::firebird::checkDisposed(), ensureBlobIsOpened(), Exception, cppu::getCaughtException(), connectivity::firebird::IndicatesError(), m_aMutex, m_blobHandle, m_nBlobLength, m_nBlobPosition, m_statusVector, SAL_MAX_UINT16, connectivity::firebird::StatusVectorToString(), and u.
Referenced by getBytes(), readSomeBytes(), and skipBytes().
bool Blob::readOneSegment | ( | std::vector< char > & | rDataOut | ) |
Definition at line 125 of file firebird/Blob.cxx.
References connectivity::firebird::checkDisposed(), ensureBlobIsOpened(), getMaximumSegmentSize(), connectivity::firebird::IndicatesError(), m_blobHandle, m_nBlobPosition, m_statusVector, connectivity::firebird::StatusVectorToString(), and u.
|
overridevirtual |
Definition at line 315 of file firebird/Blob.cxx.
References readBytes().
|
overridevirtual |
|
protected |
Definition at line 31 of file drivers/firebird/Blob.hxx.
Referenced by available(), closeBlob(), ensureBlobIsOpened(), getBytes(), length(), and readBytes().
|
protected |
Definition at line 41 of file drivers/firebird/Blob.hxx.
Referenced by closeBlob(), and ensureBlobIsOpened().
|
protected |
Definition at line 39 of file drivers/firebird/Blob.hxx.
Referenced by closeBlob(), ensureBlobIsOpened(), readBytes(), and readOneSegment().
|
protected |
Definition at line 38 of file drivers/firebird/Blob.hxx.
Referenced by ensureBlobIsOpened().
|
protected |
Definition at line 42 of file drivers/firebird/Blob.hxx.
Referenced by available(), ensureBlobIsOpened(), getBytes(), length(), and readBytes().
|
protected |
Definition at line 44 of file drivers/firebird/Blob.hxx.
Referenced by available(), ensureBlobIsOpened(), getBytes(), readBytes(), and readOneSegment().
|
protected |
Definition at line 43 of file drivers/firebird/Blob.hxx.
Referenced by ensureBlobIsOpened(), and getMaximumSegmentSize().
|
protected |
Definition at line 33 of file drivers/firebird/Blob.hxx.
Referenced by ensureBlobIsOpened().
|
protected |
Definition at line 34 of file drivers/firebird/Blob.hxx.
Referenced by ensureBlobIsOpened().
|
protected |
Definition at line 46 of file drivers/firebird/Blob.hxx.
Referenced by closeBlob(), ensureBlobIsOpened(), readBytes(), and readOneSegment().