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: HView.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_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 //====================================================================
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
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
66 DECLARE_XTYPEPROVIDER()
69 virtual void SAL_CALL
alterCommand( const ::rtl::OUString
& NewCommand
) throw (::com::sun::star::sdbc::SQLException
, ::com::sun::star::uno::RuntimeException
);
76 virtual void SAL_CALL
getFastPropertyValue( ::com::sun::star::uno::Any
& _rValue
, sal_Int32 _nHandle
) const;
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;
91 ::com::sun::star::uno::Reference
< ::com::sun::star::sdbc::XConnection
> m_xConnection
;
93 using HView_Base::getFastPropertyValue
;
96 //........................................................................
97 } } // namespace connectivity::hsqldb
98 //........................................................................
100 #endif // CONNECTIVITY_HVIEW_HXX