LibreOffice Module connectivity (master) 1
HView.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#pragma once
21
23
24#include <com/sun/star/sdbcx/XAlterView.hpp>
25#include <com/sun/star/sdbc/XConnection.hpp>
26
27#include <comphelper/uno3.hxx>
29
30
32{
33
35 typedef ::cppu::ImplHelper1< css::sdbcx::XAlterView > HView_IBASE;
36 class HView :public HView_Base
37 ,public HView_IBASE
38 {
39 public:
40 HView(
41 const css::uno::Reference< css::sdbc::XConnection >& _rxConnection,
42 bool _bCaseSensitive,
43 const OUString& _rSchemaName,
44 const OUString& _rName
45 );
46
47 // UNO
50
51 // XAlterView
52 virtual void SAL_CALL alterCommand( const OUString& NewCommand ) override;
53
54 protected:
55 virtual ~HView() override;
56
57 protected:
58 // OPropertyContainer
59 virtual void SAL_CALL getFastPropertyValue( css::uno::Any& _rValue, sal_Int32 _nHandle ) const override;
60
61 private:
63 OUString impl_getCommand() const;
64
70 OUString impl_getCommand_wrapSQLException() const;
76 OUString impl_getCommand_throwSQLException() const;
77
78 private:
79 css::uno::Reference< css::sdbc::XConnection > m_xConnection;
80 private:
82 };
83
84
85} // namespace connectivity::hsqldb
86
87
88/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void SAL_CALL getFastPropertyValue(css::uno::Any &rValue, sal_Int32 nHandle) const override
OUString impl_getCommand_wrapSQLException() const
retrieves the current command of the View
Definition: HView.cxx:165
virtual void SAL_CALL getFastPropertyValue(css::uno::Any &_rValue, sal_Int32 _nHandle) const override
Definition: HView.cxx:134
virtual ~HView() override
Definition: HView.cxx:63
HView(const css::uno::Reference< css::sdbc::XConnection > &_rxConnection, bool _bCaseSensitive, const OUString &_rSchemaName, const OUString &_rName)
Definition: HView.cxx:55
OUString impl_getCommand_throwSQLException() const
retrieves the current command of the View
Definition: HView.cxx:189
OUString impl_getCommand() const
retrieves the current command of the View
Definition: HView.cxx:147
virtual void SAL_CALL alterCommand(const OUString &NewCommand) override
Definition: HView.cxx:72
css::uno::Reference< css::sdbc::XConnection > m_xConnection
Definition: HView.hxx:79
::cppu::ImplHelper1< css::sdbcx::XAlterView > HView_IBASE
Definition: HView.hxx:35
::connectivity::sdbcx::OView HView_Base
Definition: HView.hxx:34
#define DECLARE_XTYPEPROVIDER()
#define DECLARE_XINTERFACE()