My Project
|
00001 /* Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved. 00002 00003 This program is free software; you can redistribute it and/or modify 00004 it under the terms of the GNU General Public License as published by 00005 the Free Software Foundation; version 2 of the License. 00006 00007 This program is distributed in the hope that it will be useful, 00008 but WITHOUT ANY WARRANTY; without even the implied warranty of 00009 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00010 GNU General Public License for more details. 00011 00012 You should have received a copy of the GNU General Public License 00013 along with this program; if not, write to the Free Software 00014 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ 00015 00016 #ifndef RPL_INFO_DUMMY_H 00017 #define RPL_INFO_DUMMY_H 00018 00019 #include <my_global.h> 00020 #include <sql_priv.h> 00021 #include "rpl_info_handler.h" 00022 00030 class Rpl_info_dummy : public Rpl_info_handler 00031 { 00032 public: 00033 Rpl_info_dummy(const int nparam); 00034 virtual ~Rpl_info_dummy() { }; 00035 00036 private: 00037 int do_init_info(); 00038 int do_init_info(uint instance); 00039 enum_return_check do_check_info(); 00040 enum_return_check do_check_info(uint instance); 00041 void do_end_info(); 00042 int do_flush_info(const bool force); 00043 int do_remove_info(); 00044 int do_clean_info(); 00045 static int do_reset_info(const int nparam); 00046 00047 int do_prepare_info_for_read(); 00048 int do_prepare_info_for_write(); 00049 bool do_set_info(const int pos, const char *value); 00050 bool do_set_info(const int pos, const uchar *value, 00051 const size_t size); 00052 bool do_set_info(const int pos, const int value); 00053 bool do_set_info(const int pos, const ulong value); 00054 bool do_set_info(const int pos, const float value); 00055 bool do_set_info(const int pos, const Dynamic_ids *value); 00056 bool do_get_info(const int pos, char *value, const size_t size, 00057 const char *default_value); 00058 bool do_get_info(const int pos, uchar *value, const size_t size, 00059 const uchar *default_value); 00060 bool do_get_info(const int pos, int *value, 00061 const int default_value); 00062 bool do_get_info(const int pos, ulong *value, 00063 const ulong default_value); 00064 bool do_get_info(const int pos, float *value, 00065 const float default_value); 00066 bool do_get_info(const int pos, Dynamic_ids *value, 00067 const Dynamic_ids *default_value); 00068 char* do_get_description_info(); 00069 bool do_is_transactional(); 00070 bool do_update_is_transactional(); 00071 uint do_get_rpl_info_type(); 00072 00073 static const bool abort= FALSE; 00074 00075 Rpl_info_dummy& operator=(const Rpl_info_dummy& info); 00076 Rpl_info_dummy(const Rpl_info_dummy& info); 00077 }; 00078 #endif /* RPL_INFO_DUMMY_H */