MySQL 8.0.32
Source Code Documentation
view_routine.h
Go to the documentation of this file.
1/* Copyright (c) 2016, 2022, 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_ROUTINE_INCLUDED
24#define DD__VIEW_ROUTINE_INCLUDED
25
26#include "sql/dd/types/weak_object.h" // dd::Weak_object
27
28namespace dd {
29
30///////////////////////////////////////////////////////////////////////////
31
32class View;
33class View_routine_impl;
34
35namespace tables {
36class View_routine_usage;
37}
38
39///////////////////////////////////////////////////////////////////////////
40
41class View_routine : virtual public Weak_object {
42 public:
45
46 public:
47 ~View_routine() override = default;
48
49 /////////////////////////////////////////////////////////////////////////
50 // View routine catalog name.
51 /////////////////////////////////////////////////////////////////////////
52
53 virtual const String_type &routine_catalog() const = 0;
54 virtual void set_routine_catalog(const String_type &sf_catalog) = 0;
55
56 ///////////////////////////////////////////////////////////////////////// View
57 // View routine schema name.
58 /////////////////////////////////////////////////////////////////////////
59
60 virtual const String_type &routine_schema() const = 0;
61 virtual void set_routine_schema(const String_type &sf_schema) = 0;
62
63 /////////////////////////////////////////////////////////////////////////
64 // View routine name.
65 /////////////////////////////////////////////////////////////////////////
66
67 virtual const String_type &routine_name() const = 0;
68 virtual void set_routine_name(const String_type &sf_name) = 0;
69
70 /////////////////////////////////////////////////////////////////////////
71 // Parent view.
72 /////////////////////////////////////////////////////////////////////////
73
74 virtual const View &view() const = 0;
75
76 virtual View &view() = 0;
77};
78
79///////////////////////////////////////////////////////////////////////////
80
81} // namespace dd
82
83#endif // DD__VIEW_ROUTINE_INCLUDED
Definition: view_routine_impl.h:47
Definition: view_routine.h:41
virtual const View & view() const =0
~View_routine() override=default
virtual void set_routine_catalog(const String_type &sf_catalog)=0
View_routine_impl Impl
Definition: view_routine.h:43
tables::View_routine_usage DD_table
Definition: view_routine.h:44
virtual void set_routine_schema(const String_type &sf_schema)=0
virtual const String_type & routine_catalog() const =0
virtual View & view()=0
virtual void set_routine_name(const String_type &sf_name)=0
virtual const String_type & routine_name() const =0
virtual const String_type & routine_schema() const =0
Definition: view.h:38
Base class for all data dictionary objects.
Definition: weak_object.h:41
Definition: view_routine_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