MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
rpl_info_dummy.h
1 /* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
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 as published by
5  the Free Software Foundation; version 2 of the License.
6 
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  GNU General Public License for more details.
11 
12  You should have received a copy of the GNU General Public License
13  along with this program; if not, write to the Free Software
14  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */
15 
16 #ifndef RPL_INFO_DUMMY_H
17 #define RPL_INFO_DUMMY_H
18 
19 #include <my_global.h>
20 #include <sql_priv.h>
21 #include "rpl_info_handler.h"
22 
30 class Rpl_info_dummy : public Rpl_info_handler
31 {
32 public:
33  Rpl_info_dummy(const int nparam);
34  virtual ~Rpl_info_dummy() { };
35 
36 private:
37  int do_init_info();
38  int do_init_info(uint instance);
39  enum_return_check do_check_info();
40  enum_return_check do_check_info(uint instance);
41  void do_end_info();
42  int do_flush_info(const bool force);
43  int do_remove_info();
44  int do_clean_info();
45  static int do_reset_info(const int nparam);
46 
47  int do_prepare_info_for_read();
48  int do_prepare_info_for_write();
49  bool do_set_info(const int pos, const char *value);
50  bool do_set_info(const int pos, const uchar *value,
51  const size_t size);
52  bool do_set_info(const int pos, const int value);
53  bool do_set_info(const int pos, const ulong value);
54  bool do_set_info(const int pos, const float value);
55  bool do_set_info(const int pos, const Dynamic_ids *value);
56  bool do_get_info(const int pos, char *value, const size_t size,
57  const char *default_value);
58  bool do_get_info(const int pos, uchar *value, const size_t size,
59  const uchar *default_value);
60  bool do_get_info(const int pos, int *value,
61  const int default_value);
62  bool do_get_info(const int pos, ulong *value,
63  const ulong default_value);
64  bool do_get_info(const int pos, float *value,
65  const float default_value);
66  bool do_get_info(const int pos, Dynamic_ids *value,
67  const Dynamic_ids *default_value);
68  char* do_get_description_info();
69  bool do_is_transactional();
70  bool do_update_is_transactional();
71  uint do_get_rpl_info_type();
72 
73  static const bool abort= FALSE;
74 
75  Rpl_info_dummy& operator=(const Rpl_info_dummy& info);
76  Rpl_info_dummy(const Rpl_info_dummy& info);
77 };
78 #endif /* RPL_INFO_DUMMY_H */