CUBRID Engine  latest
trigger_description.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 2008 Search Solution Corporation
3  * Copyright 2016 CUBRID Corporation
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18 
19 /*
20  * trigger_description.hpp
21  */
22 
23 #ifndef _TRIGGER_DESCRIPTION_HPP_
24 #define _TRIGGER_DESCRIPTION_HPP_
25 
26 #if defined(SERVER_MODE)
27 #error Does not belong to server module
28 #endif //defined(SERVER_MODE)
29 
30 #include <stdio.h>
31 #include "dbtype_def.h"
32 struct db_object;
33 class print_output;
34 
35 /*
36  * TRIGGER_HELP
37  *
38  * Note :
39  * This structure contains a description of a trigger object.
40  */
42 {
43  char *name;
44  const char *event;
45  char *class_name;
46  char *attribute;
47  char *full_event;
48  const char *status;
49  char *priority;
50  const char *condition_time;
51  char *condition;
52  const char *action_time;
53  char *action;
54  const char *comment;
55 
56  trigger_description (); //former obj_print_make_trigger_help()
57  ~trigger_description (); //former help_free_trigger()
58 
59  int init (const char *name); //former help_trigger_name()
60  int init (struct db_object *trobj); //former help_trigger()
61 
62  void fprint (FILE *file);
63 };
64 
65 int tr_dump_trigger (print_output &output_ctx, DB_OBJECT *trigger_object);
66 int tr_dump_selective_triggers (print_output &output_ctx, DB_OBJLIST *classes);
67 
68 #endif // _TRIGGER_DESCRIPTION_HPP_
int init(const char *name)
int tr_dump_selective_triggers(print_output &output_ctx, DB_OBJLIST *classes)
int tr_dump_trigger(print_output &output_ctx, DB_OBJECT *trigger_object)