1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
14 #include <cppuhelper/compbase.hxx>
16 #include <com/sun/star/io/XInputStream.hpp>
17 #include <com/sun/star/sdbc/XClob.hpp>
18 #include <rtl/ref.hxx>
20 namespace connectivity::firebird
22 typedef ::cppu::WeakComponentImplHelper
< css::sdbc::XClob
>
29 ::osl::Mutex m_aMutex
;
32 * In Firebird Clob (textual Blob) is a subtype of blob,
33 * hence we store the data in a Blob, and the Clob class is
34 * a wrapper around that.
36 rtl::Reference
<connectivity::firebird::Blob
> m_aBlob
;
38 sal_Int64 m_nCharCount
;
41 Clob(isc_db_handle
* pDatabaseHandle
,
42 isc_tr_handle
* pTransactionHandle
,
43 ISC_QUAD
const & aBlobID
);
45 // ---- XClob ----------------------------------------------------
46 virtual sal_Int64 SAL_CALL
48 virtual OUString SAL_CALL
49 getSubString(sal_Int64 aPosition
, sal_Int32 aLength
) override
;
50 virtual css::uno::Reference
< css::io::XInputStream
> SAL_CALL
51 getCharacterStream() override
;
52 virtual sal_Int64 SAL_CALL
53 position(const OUString
& rPattern
,
54 sal_Int32 aStart
) override
;
55 virtual sal_Int64 SAL_CALL
56 positionOfClob(const ::css::uno::Reference
< ::css::sdbc::XClob
>& rPattern
,
57 sal_Int64 aStart
) override
;
58 // ---- OComponentHelper ------------------------------------------
59 virtual void SAL_CALL
disposing() override
;
64 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */