LibreOffice Module connectivity (master) 1
ATable.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#include <ado/Awrapadox.hxx>
24#include <ado/ACatalog.hxx>
25
26namespace connectivity::ado
27{
30
32 {
35
36 protected:
37 void fillPropertyValues();
38 virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const css::uno::Any& rValue) override;
39
40 public:
41 virtual void refreshColumns() override;
42 virtual void refreshKeys() override;
43 virtual void refreshIndexes() override;
44
45 // ::cppu::OComponentHelper
46 virtual void SAL_CALL disposing() override;
47
48 public:
49 OAdoTable(sdbcx::OCollection* _pTables,bool _bCase,OCatalog* _pCatalog,_ADOTable* _pTable);
50 OAdoTable(sdbcx::OCollection* _pTables,bool _bCase,OCatalog* _pCatalog);
51
52
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;
56
57 // XRename
58 virtual void SAL_CALL rename( const OUString& newName ) override;
59
60 // XAlterTable
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;
63
64 WpADOTable getImpl() const { return m_aTable;}
65 OCatalog* getCatalog() const { return m_pCatalog; }
66 };
67}
68
69/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void SAL_CALL disposing() override
Definition: ATable.cxx:73
virtual css::uno::Reference< css::sdbc::XDatabaseMetaData > getMetaData() const override
Definition: ATable.cxx:142
WpADOTable getImpl() const
Definition: ATable.hxx:64
virtual void refreshColumns() override
Definition: ATable.cxx:79
virtual void SAL_CALL alterColumnByName(const OUString &colName, const css::uno::Reference< css::beans::XPropertySet > &descriptor) override
Definition: ATable.cxx:148
virtual void SAL_CALL rename(const OUString &newName) override
Definition: ATable.cxx:131
virtual void refreshKeys() override
Definition: ATable.cxx:96
virtual OUString SAL_CALL getName() override
Definition: ATable.cxx:211
OCatalog * getCatalog() const
Definition: ATable.hxx:65
OAdoTable(sdbcx::OCollection *_pTables, bool _bCase, OCatalog *_pCatalog, _ADOTable *_pTable)
Definition: ATable.cxx:52
virtual void SAL_CALL alterColumnByIndex(sal_Int32 index, const css::uno::Reference< css::beans::XPropertySet > &descriptor) override
Definition: ATable.cxx:168
virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, const css::uno::Any &rValue) override
Definition: ATable.cxx:179
OUString getSchema() const
Definition: ATable.hxx:54
virtual void refreshIndexes() override
Definition: ATable.cxx:113
connectivity::sdbcx::OTable OTable_TYPEDEF
Definition: ATable.hxx:28
connectivity::sdbcx::OTableDescriptor_BASE OTableDescriptor_BASE_TYPEDEF
Definition: ATable.hxx:29
::cppu::WeakComponentImplHelper< css::sdbcx::XColumnsSupplier, css::sdbcx::XKeysSupplier, css::container::XNamed, css::lang::XServiceInfo > OTableDescriptor_BASE
Definition: VTable.hxx:46