1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_CONNECTIVITY_SDBCX_VVIEW_HXX
21 #define INCLUDED_CONNECTIVITY_SDBCX_VVIEW_HXX
23 #include <com/sun/star/sdbcx/XDataDescriptorFactory.hpp>
24 #include <com/sun/star/lang/XServiceInfo.hpp>
25 #include <comphelper/broadcasthelper.hxx>
26 #include <connectivity/CommonTools.hxx>
27 #include <com/sun/star/container/XNamed.hpp>
28 #include <connectivity/sdbcx/VDescriptor.hxx>
29 #include <connectivity/dbtoolsdllapi.hxx>
30 #include <comphelper/IdPropArrayHelper.hxx>
31 #include <cppuhelper/implbase.hxx>
33 namespace com::sun::star::sdbc
{ class XDatabaseMetaData
; }
35 namespace connectivity
40 typedef ::cppu::WeakImplHelper
< css::lang::XServiceInfo
,
41 css::container::XNamed
> OView_BASE
;
44 class OOO_DLLPUBLIC_DBTOOLS OView
:
45 public ::comphelper::OMutexAndBroadcastHelper
,
47 public ::comphelper::OIdPropertyArrayUsageHelper
<OView
>,
51 OUString m_CatalogName
;
52 OUString m_SchemaName
;
54 sal_Int32 m_CheckOption
;
55 // need for the getName method
56 css::uno::Reference
< css::sdbc::XDatabaseMetaData
> m_xMetaData
;
58 // OPropertyArrayUsageHelper
59 virtual ::cppu::IPropertyArrayHelper
* createArrayHelper( sal_Int32 _nId
) const override
;
61 virtual ::cppu::IPropertyArrayHelper
& SAL_CALL
getInfoHelper() override
;
64 DECLARE_SERVICE_INFO();
66 OView(bool _bCase
,const css::uno::Reference
< css::sdbc::XDatabaseMetaData
>& _xMetaData
);
68 const OUString
& _rName
,
69 const css::uno::Reference
< css::sdbc::XDatabaseMetaData
>& _xMetaData
,
70 const OUString
& _rCommand
= OUString(),
71 const OUString
& _rSchemaName
= OUString(),
72 const OUString
& _rCatalogName
= OUString());
73 virtual ~OView() override
;
76 virtual void construct() override
;
79 virtual css::uno::Any SAL_CALL
queryInterface( const css::uno::Type
& rType
) override
;
80 virtual void SAL_CALL
acquire() throw() override
;
81 virtual void SAL_CALL
release() throw() override
;
83 virtual css::uno::Sequence
< css::uno::Type
> SAL_CALL
getTypes( ) override
;
85 virtual css::uno::Reference
< css::beans::XPropertySetInfo
> SAL_CALL
getPropertySetInfo( ) override
;
87 virtual OUString SAL_CALL
getName( ) override
;
88 virtual void SAL_CALL
setName( const OUString
& ) override
;
93 #endif // INCLUDED_CONNECTIVITY_SDBCX_VVIEW_HXX
95 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */