MySQL  8.0.23
Source Code Documentation
view_routine.h
Go to the documentation of this file.
1 /* Copyright (c) 2016, 2020, 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 
28 namespace dd {
29 
30 ///////////////////////////////////////////////////////////////////////////
31 
32 class View;
33 class View_routine_impl;
34 
35 namespace tables {
36 class View_routine_usage;
37 }
38 
39 ///////////////////////////////////////////////////////////////////////////
40 
41 class View_routine : virtual public Weak_object {
42  public:
45 
46  public:
47  ~View_routine() override {}
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
dd::View_routine_impl
Definition: view_routine_impl.h:47
dd::View_routine::set_routine_schema
virtual void set_routine_schema(const String_type &sf_schema)=0
dd::String_type
Char_string_template< String_type_allocator > String_type
Definition: string_type.h:50
dd::View_routine::DD_table
tables::View_routine_usage DD_table
Definition: view_routine.h:44
dd::tables::View_routine_usage
Definition: view_routine_usage.h:37
dd::View_routine::~View_routine
~View_routine() override
Definition: view_routine.h:47
dd
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:40
dd::View_routine::routine_catalog
virtual const String_type & routine_catalog() const =0
dd::View_routine::set_routine_name
virtual void set_routine_name(const String_type &sf_name)=0
dd::View_routine::Impl
View_routine_impl Impl
Definition: view_routine.h:43
dd::View_routine
Definition: view_routine.h:41
dd::View_routine::routine_name
virtual const String_type & routine_name() const =0
dd::View_routine::view
virtual const View & view() const =0
dd::View
Definition: view.h:38
dd::View_routine::routine_schema
virtual const String_type & routine_schema() const =0
dd::View_routine::set_routine_catalog
virtual void set_routine_catalog(const String_type &sf_catalog)=0
dd::Weak_object
Base class for all data dictionary objects.
Definition: weak_object.h:41
dd::View_routine::view
virtual View & view()=0
weak_object.h