20#include <com/sun/star/sdbcx/CompareBookmark.hpp>
22#include <com/sun/star/beans/PropertyAttribute.hpp>
36using namespace ::
cppu;
45 ,m_bBookmarkable(true)
50OUString SAL_CALL ODbaseResultSet::getImplementationName( )
52 return "com.sun.star.sdbcx.dbase.ResultSet";
57 return {
"com.sun.star.sdbc.ResultSet",
"com.sun.star.sdbcx.ResultSet" };
60sal_Bool SAL_CALL ODbaseResultSet::supportsService(
const OUString& _rServiceName )
68 return aRet.hasValue() ? aRet : OResultSet::queryInterface(rType);
80 ::osl::MutexGuard aGuard(
m_aMutex );
89 ::osl::MutexGuard aGuard(
m_aMutex );
100 ::osl::MutexGuard aGuard(
m_aMutex );
114 sal_Int32 nFirst(0),nSecond(0),nResult(0);
115 if ( !( lhs >>= nFirst ) || !( rhs >>= nSecond ) )
123 nResult = CompareBookmark::LESS;
124 else if(nFirst > nSecond)
125 nResult = CompareBookmark::GREATER;
127 nResult = CompareBookmark::EQUAL;
139 ::osl::MutexGuard aGuard(
m_aMutex );
149 ::osl::MutexGuard aGuard(
m_aMutex );
161 std::unique_ptr<dbase::OIndexIterator> pIter = pIndex->
createIterator();
165 sal_uInt32 nRec = pIter->First();
169 nRec = pIter->Next();
187 return new ::cppu::OPropertyArrayHelper(aProps);
202 return ::cppu::OPropertySetHelper::createPropertySetInfo(
getInfoHelper());
::cppu::IPropertyArrayHelper * getArrayHelper()
void describeProperties(css::uno::Sequence< css::beans::Property > &_rProps) const
void registerProperty(const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, void *_pPointerToMember, const css::uno::Type &_rMemberType)
helper class for accessing resources shared by different libraries in the connectivity module
OUString getResourceString(TranslateId pResId) const
loads a string from the shared resource file
std::unique_ptr< OIndexIterator > createIterator()
virtual sal_Bool SAL_CALL moveToBookmark(const css::uno::Any &bookmark) override
virtual bool fillIndexValues(const css::uno::Reference< css::sdbcx::XColumnsSupplier > &_xIndex) override
virtual css::uno::Sequence< sal_Int32 > SAL_CALL deleteRows(const css::uno::Sequence< css::uno::Any > &rows) override
sal_Int32 getCurrentFilePos() const
virtual sal_Int32 SAL_CALL hashBookmark(const css::uno::Any &bookmark) override
virtual css::uno::Any SAL_CALL getBookmark() override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual ::cppu::IPropertyArrayHelper * createArrayHelper() const override
virtual sal_Int32 SAL_CALL compareBookmarks(const css::uno::Any &first, const css::uno::Any &second) override
virtual void SAL_CALL acquire() noexcept override
virtual sal_Bool SAL_CALL moveRelativeToBookmark(const css::uno::Any &bookmark, sal_Int32 rows) override
virtual void SAL_CALL release() noexcept override
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
virtual sal_Bool SAL_CALL hasOrderedBookmarks() override
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType) override
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper() override
virtual sal_Bool SAL_CALL relative(sal_Int32 rows) override
const ORowSetValue & getValue(sal_Int32 columnIndex)
rtl::Reference< OFileTable > m_pTable
virtual void SAL_CALL release() noexcept override
::rtl::Reference< OKeySet > m_pFileSet
virtual void SAL_CALL acquire() noexcept override
bool Move(IResultSetHelper::Movement eCursorPosition, sal_Int32 nOffset, bool bRetrieveData)
mutable::osl::Mutex m_aMutex
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() SAL_OVERRIDE
virtual css::uno::Any SAL_CALL queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
sal_Int32 getINT32(const Any &_rAny)
void checkDisposed(bool _bThrow)
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
#define PROPERTY_ID_ISBOOKMARKABLE