update dev300-m58
[ooovba.git] / connectivity / source / inc / hsqldb / HView.hxx
blob4e820fe2d3638efb66e3d123edfce9c9a02cec14
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: HView.hxx,v $
10 * $Revision: 1.3 $
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_HVIEW_HXX
32 #define CONNECTIVITY_HVIEW_HXX
34 #include "connectivity/sdbcx/VView.hxx"
36 /** === begin UNO includes === **/
37 #include <com/sun/star/sdbcx/XAlterView.hpp>
38 /** === end UNO includes === **/
40 #include <comphelper/uno3.hxx>
41 #include <cppuhelper/implbase1.hxx>
43 //........................................................................
44 namespace connectivity { namespace hsqldb
46 //........................................................................
48 //====================================================================
49 //= HView
50 //====================================================================
51 typedef ::connectivity::sdbcx::OView HView_Base;
52 typedef ::cppu::ImplHelper1< ::com::sun::star::sdbcx::XAlterView > HView_IBASE;
53 class HView :public HView_Base
54 ,public HView_IBASE
56 public:
57 HView(
58 const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _rxConnection,
59 sal_Bool _bCaseSensitive,
60 const ::rtl::OUString& _rSchemaName,
61 const ::rtl::OUString& _rName
64 // UNO
65 DECLARE_XINTERFACE()
66 DECLARE_XTYPEPROVIDER()
68 // XAlterView
69 virtual void SAL_CALL alterCommand( const ::rtl::OUString& NewCommand ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
71 protected:
72 virtual ~HView();
74 protected:
75 // OPropertyContainer
76 virtual void SAL_CALL getFastPropertyValue( ::com::sun::star::uno::Any& _rValue, sal_Int32 _nHandle ) const;
78 private:
79 /** retrieves the current command of the View
81 @throws ::com::sun::star::lang::WrappedTargetException
82 if an error occurs while retrieving the command from the database and
83 <arg>_bAllowSQLExceptin</arg> is <FALSE/>
84 @throws ::com::sun::star::sdbc::SQLException
85 if an error occurs while retrieving the command from the database and
86 <arg>_bAllowSQLException</arg> is <TRUE/>
88 ::rtl::OUString impl_getCommand_throw( bool _bAllowSQLException ) const;
90 private:
91 ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > m_xConnection;
92 private:
93 using HView_Base::getFastPropertyValue;
96 //........................................................................
97 } } // namespace connectivity::hsqldb
98 //........................................................................
100 #endif // CONNECTIVITY_HVIEW_HXX