1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: LResultSet.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _CONNECTIVITY_EVOAB_LRESULTSET_HXX_
32 #define _CONNECTIVITY_EVOAB_LRESULTSET_HXX_
34 #include "file/FResultSet.hxx"
35 #include <com/sun/star/sdbcx/XRowLocate.hpp>
36 #include <cppuhelper/implbase1.hxx>
38 namespace connectivity
42 class OEvoabResultSet
;
43 // these typedef's are only necessary for the compiler
44 typedef ::cppu::ImplHelper1
< ::com::sun::star::sdbcx::XRowLocate
> OEvoabResultSet_BASE
;
45 typedef file::OResultSet OEvoabResultSet_BASE2
;
46 typedef ::comphelper::OPropertyArrayUsageHelper
<OEvoabResultSet
> OEvoabResultSet_BASE3
;
49 class OEvoabResultSet
: public OEvoabResultSet_BASE2
,
50 public OEvoabResultSet_BASE
,
51 public OEvoabResultSet_BASE3
53 sal_Bool m_bBookmarkable
;
55 // OPropertyArrayUsageHelper
56 virtual ::cppu::IPropertyArrayHelper
* createArrayHelper( ) const;
58 virtual ::cppu::IPropertyArrayHelper
& SAL_CALL
getInfoHelper();
60 DECLARE_SERVICE_INFO();
62 OEvoabResultSet( file::OStatement_Base
* pStmt
,connectivity::OSQLParseTreeIterator
& _aSQLIterator
);
65 virtual ::com::sun::star::uno::Any SAL_CALL
queryInterface( const ::com::sun::star::uno::Type
& rType
) throw(::com::sun::star::uno::RuntimeException
);
66 virtual void SAL_CALL
acquire() throw();
67 virtual void SAL_CALL
release() throw();
69 virtual ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Type
> SAL_CALL
getTypes( ) throw(::com::sun::star::uno::RuntimeException
);
71 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySetInfo
> SAL_CALL
getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException
);
74 virtual ::com::sun::star::uno::Any SAL_CALL
getBookmark( ) throw(::com::sun::star::sdbc::SQLException
, ::com::sun::star::uno::RuntimeException
);
75 virtual sal_Bool SAL_CALL
moveToBookmark( const ::com::sun::star::uno::Any
& bookmark
) throw(::com::sun::star::sdbc::SQLException
, ::com::sun::star::uno::RuntimeException
);
76 virtual sal_Bool SAL_CALL
moveRelativeToBookmark( const ::com::sun::star::uno::Any
& bookmark
, sal_Int32 rows
) throw(::com::sun::star::sdbc::SQLException
, ::com::sun::star::uno::RuntimeException
);
77 virtual sal_Int32 SAL_CALL
compareBookmarks( const ::com::sun::star::uno::Any
& first
, const ::com::sun::star::uno::Any
& second
) throw(::com::sun::star::sdbc::SQLException
, ::com::sun::star::uno::RuntimeException
);
78 virtual sal_Bool SAL_CALL
hasOrderedBookmarks( ) throw(::com::sun::star::sdbc::SQLException
, ::com::sun::star::uno::RuntimeException
);
79 virtual sal_Int32 SAL_CALL
hashBookmark( const ::com::sun::star::uno::Any
& bookmark
) throw(::com::sun::star::sdbc::SQLException
, ::com::sun::star::uno::RuntimeException
);
83 #endif //_CONNECTIVITY_EVOAB_LRESULTSET_HXX_