LibreOffice Module dbaccess (master) 1
tablename.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/sdb/tools/XTableName.hpp>
25
27
28#include <memory>
29
30namespace sdbtools
31{
32
33 // TableName
34 typedef ::cppu::WeakImplHelper< css::sdb::tools::XTableName
40 {
41 public:
53 const css::uno::Reference< css::uno::XComponentContext >& _rContext,
54 const css::uno::Reference< css::sdbc::XConnection >& _rxConnection
55 );
56
57 // XTableName
58 virtual OUString SAL_CALL getCatalogName() override;
59 virtual void SAL_CALL setCatalogName( const OUString& _catalogname ) override;
60 virtual OUString SAL_CALL getSchemaName() override;
61 virtual void SAL_CALL setSchemaName( const OUString& _schemaname ) override;
62 virtual OUString SAL_CALL getTableName() override;
63 virtual void SAL_CALL setTableName( const OUString& _tablename ) override;
64 virtual OUString SAL_CALL getNameForSelect() override;
65 virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL getTable() override;
66 virtual void SAL_CALL setTable( const css::uno::Reference< css::beans::XPropertySet >& _table ) override;
67 virtual OUString SAL_CALL getComposedName( ::sal_Int32 Type, sal_Bool Quote ) override;
68 virtual void SAL_CALL setComposedName( const OUString& ComposedName, ::sal_Int32 Type ) override;
69
70 protected:
71 virtual ~TableName() override;
72
73 private:
74 TableName( const TableName& ) = delete;
75 TableName& operator=( const TableName& ) = delete;
76
77 OUString msCatalog;
78 OUString msSchema;
79 OUString msName;
80 };
81
82} // namespace sdbtools
83
84/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
default implementation for XTableName
Definition: tablename.hxx:40
virtual OUString SAL_CALL getNameForSelect() override
Definition: tablename.cxx:100
virtual OUString SAL_CALL getTableName() override
Definition: tablename.cxx:88
TableName & operator=(const TableName &)=delete
virtual void SAL_CALL setComposedName(const OUString &ComposedName, ::sal_Int32 Type) override
Definition: tablename.cxx:207
virtual void SAL_CALL setCatalogName(const OUString &_catalogname) override
Definition: tablename.cxx:70
virtual void SAL_CALL setSchemaName(const OUString &_schemaname) override
Definition: tablename.cxx:82
virtual void SAL_CALL setTable(const css::uno::Reference< css::beans::XPropertySet > &_table) override
Definition: tablename.cxx:133
virtual OUString SAL_CALL getComposedName(::sal_Int32 Type, sal_Bool Quote) override
Definition: tablename.cxx:197
virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL getTable() override
Definition: tablename.cxx:106
virtual OUString SAL_CALL getSchemaName() override
Definition: tablename.cxx:76
TableName(const css::uno::Reference< css::uno::XComponentContext > &_rContext, const css::uno::Reference< css::sdbc::XConnection > &_rxConnection)
constructs the instance
TableName(const TableName &)=delete
virtual OUString SAL_CALL getCatalogName() override
Definition: tablename.cxx:64
virtual void SAL_CALL setTableName(const OUString &_tablename) override
Definition: tablename.cxx:94
virtual ~TableName() override
Definition: tablename.cxx:60
Type
::cppu::WeakImplHelper< css::sdb::tools::XTableName > TableName_Base
Definition: tablename.hxx:35
unsigned char sal_Bool