merge the formfield patch from ooo-build
[ooovba.git] / connectivity / source / inc / adabas / BStatement.hxx
blob765aefdbff8a8d647d88cda8fed0b909590891ee
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: BStatement.hxx,v $
10 * $Revision: 1.6 $
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 ************************************************************************/
30 #ifndef CONNECTIVITY_ADABAS_STATEMENT_HXX
31 #define CONNECTIVITY_ADABAS_STATEMENT_HXX
33 #include "odbc/OStatement.hxx"
34 #include "adabas/BConnection.hxx"
35 #ifndef _CONNECTIVITY_COMMONTOOLS_HXX_
36 #include "connectivity/commontools.hxx"
37 #endif
38 #include <vos/ref.hxx>
40 namespace connectivity
42 namespace adabas
44 class OAdabasStatement : public ::connectivity::odbc::OStatement
46 OAdabasConnection* m_pOwnConnection;
47 ::vos::ORef<OSQLColumns> m_aSelectColumns;
48 protected:
49 virtual odbc::OResultSet* createResulSet();
50 virtual void setResultSetConcurrency(sal_Int32 _par0);
51 virtual void setResultSetType(sal_Int32 _par0) ;
52 virtual void setUsingBookmarks(sal_Bool _bUseBookmark);
53 public:
54 OAdabasStatement( OAdabasConnection* _pConnection)
55 : ::connectivity::odbc::OStatement( _pConnection )
56 ,m_pOwnConnection(_pConnection)
59 virtual sal_Bool SAL_CALL execute( const ::rtl::OUString& sql ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
64 #endif // CONNECTIVITY_ADABAS_STATEMENT_HXX