16 #ifndef RPL_INFO_TABLE_H
17 #define RPL_INFO_TABLE_H
19 #include "rpl_info_handler.h"
20 #include "rpl_info_table_access.h"
30 enum enum_find_method { FIND_SCAN, FIND_KEY };
34 friend class Rpl_info_factory;
68 bool is_transactional;
71 int do_init_info(uint instance);
72 int do_init_info(enum_find_method method, uint instance);
73 enum_return_check do_check_info();
74 enum_return_check do_check_info(uint instance);
76 int do_flush_info(
const bool force);
91 static bool do_count_info(uint nparam,
const char* param_schema,
92 const char* param_table, uint* counter);
93 static int do_reset_info(uint nparam,
const char* param_schema,
94 const char *param_table);
95 int do_prepare_info_for_read();
96 int do_prepare_info_for_write();
98 bool do_set_info(
const int pos,
const char *value);
99 bool do_set_info(
const int pos,
const uchar *value,
101 bool do_set_info(
const int pos,
const int value);
102 bool do_set_info(
const int pos,
const ulong value);
103 bool do_set_info(
const int pos,
const float value);
104 bool do_set_info(
const int pos,
const Dynamic_ids *value);
105 bool do_get_info(
const int pos,
char *value,
const size_t size,
106 const char *default_value);
107 bool do_get_info(
const int pos, uchar *value,
const size_t size,
108 const uchar *default_value);
109 bool do_get_info(
const int pos,
int *value,
110 const int default_value);
111 bool do_get_info(
const int pos, ulong *value,
112 const ulong default_value);
113 bool do_get_info(
const int pos,
float *value,
114 const float default_value);
115 bool do_get_info(
const int pos,
Dynamic_ids *value,
117 char* do_get_description_info();
119 bool do_is_transactional();
120 bool do_update_is_transactional();
121 uint do_get_rpl_info_type();
124 const char* param_schema,
125 const char *param_table);