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 .
22 #include <connectivity/sdbcx/VTable.hxx>
23 #include <ado/Awrapadox.hxx>
24 #include <ado/ACatalog.hxx>
26 namespace connectivity::ado
28 typedef connectivity::sdbcx::OTable OTable_TYPEDEF
;
29 typedef connectivity::sdbcx::OTableDescriptor_BASE OTableDescriptor_BASE_TYPEDEF
;
31 class OAdoTable
: public OTable_TYPEDEF
37 void fillPropertyValues();
38 virtual void SAL_CALL
setFastPropertyValue_NoBroadcast(sal_Int32 nHandle
,const css::uno::Any
& rValue
) override
;
41 virtual void refreshColumns() override
;
42 virtual void refreshKeys() override
;
43 virtual void refreshIndexes() override
;
45 // ::cppu::OComponentHelper
46 virtual void SAL_CALL
disposing() override
;
49 OAdoTable(sdbcx::OCollection
* _pTables
,bool _bCase
,OCatalog
* _pCatalog
,_ADOTable
* _pTable
);
50 OAdoTable(sdbcx::OCollection
* _pTables
,bool _bCase
,OCatalog
* _pCatalog
);
53 virtual OUString SAL_CALL
getName() override
;
54 OUString
getSchema() const { return m_SchemaName
; }
55 virtual css::uno::Reference
< css::sdbc::XDatabaseMetaData
> getMetaData() const override
;
58 virtual void SAL_CALL
rename( const OUString
& newName
) override
;
61 virtual void SAL_CALL
alterColumnByName( const OUString
& colName
, const css::uno::Reference
< css::beans::XPropertySet
>& descriptor
) override
;
62 virtual void SAL_CALL
alterColumnByIndex( sal_Int32 index
, const css::uno::Reference
< css::beans::XPropertySet
>& descriptor
) override
;
64 WpADOTable
getImpl() const { return m_aTable
;}
65 OCatalog
* getCatalog() const { return m_pCatalog
; }
69 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */