MySQL 8.0.29
Source Code Documentation
view_table.h
Go to the documentation of this file.
1/* Copyright (c) 2014, 2021, Oracle and/or its affiliates.
2
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License, version 2.0,
5 as published by the Free Software Foundation.
6
7 This program is also distributed with certain software (including
8 but not limited to OpenSSL) that is licensed under separate terms,
9 as designated in a particular file or component or in included license
10 documentation. The authors of MySQL hereby grant you an additional
11 permission to link the program and your derivative works with the
12 separately licensed software that they have included with MySQL.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License, version 2.0, for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
22
23#ifndef DD__VIEW_TABLE_INCLUDED
24#define DD__VIEW_TABLE_INCLUDED
25
26#include "sql/dd/types/weak_object.h" // dd::Weak_object
27
28namespace dd {
29
30///////////////////////////////////////////////////////////////////////////
31
32class View;
33class View_table_impl;
34
35namespace tables {
36class View_table_usage;
37}
38
39///////////////////////////////////////////////////////////////////////////
40
41class View_table : virtual public Weak_object {
42 public:
45
46 public:
47 ~View_table() override = default;
48
49 /////////////////////////////////////////////////////////////////////////
50 // View table catalog name.
51 // XXX: do we need it now?
52 /////////////////////////////////////////////////////////////////////////
53
54 virtual const String_type &table_catalog() const = 0;
56
57 /////////////////////////////////////////////////////////////////////////
58 // View table schema name.
59 /////////////////////////////////////////////////////////////////////////
60
61 virtual const String_type &table_schema() const = 0;
62 virtual void set_table_schema(const String_type &table_schema) = 0;
63
64 /////////////////////////////////////////////////////////////////////////
65 // View table name.
66 /////////////////////////////////////////////////////////////////////////
67
68 virtual const String_type &table_name() const = 0;
69 virtual void set_table_name(const String_type &table_name) = 0;
70
71 /////////////////////////////////////////////////////////////////////////
72 // Parent view.
73 /////////////////////////////////////////////////////////////////////////
74
75 virtual const View &view() const = 0;
76
77 virtual View &view() = 0;
78};
79
80///////////////////////////////////////////////////////////////////////////
81
82} // namespace dd
83
84#endif // DD__VIEW_TABLE_INCLUDED
Definition: view_table_impl.h:47
Definition: view_table.h:41
~View_table() override=default
virtual const String_type & table_schema() const =0
virtual View & view()=0
virtual const String_type & table_catalog() const =0
virtual const String_type & table_name() const =0
virtual void set_table_schema(const String_type &table_schema)=0
virtual const View & view() const =0
virtual void set_table_catalog(const String_type &table_catalog)=0
tables::View_table_usage DD_table
Definition: view_table.h:44
View_table_impl Impl
Definition: view_table.h:43
virtual void set_table_name(const String_type &table_name)=0
Definition: view.h:38
Base class for all data dictionary objects.
Definition: weak_object.h:41
Definition: view_table_usage.h:37
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:42
Char_string_template< String_type_allocator > String_type
Definition: string_type.h:50