CUBRID Engine
latest
Main Page
Namespaces
Classes
Files
File List
File Members
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
*/
41
struct
trigger_description
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_
trigger_description::trigger_description
trigger_description()
Definition:
trigger_description.cpp:45
print_output
Definition:
printer.hpp:34
trigger_description::init
int init(const char *name)
Definition:
trigger_description.cpp:61
trigger_description::comment
const char * comment
Definition:
trigger_description.hpp:54
tr_dump_selective_triggers
int tr_dump_selective_triggers(print_output &output_ctx, DB_OBJLIST *classes)
Definition:
trigger_description.cpp:343
trigger_description::event
const char * event
Definition:
trigger_description.hpp:44
db_object
Definition:
work_space.h:118
trigger_description::name
char * name
Definition:
trigger_description.hpp:43
trigger_description::status
const char * status
Definition:
trigger_description.hpp:48
trigger_description::action
char * action
Definition:
trigger_description.hpp:53
db_objlist
Definition:
dbtype_def.h:440
trigger_description
Definition:
trigger_description.hpp:41
dbtype_def.h
trigger_description::condition
char * condition
Definition:
trigger_description.hpp:51
trigger_description::fprint
void fprint(FILE *file)
Definition:
trigger_description.cpp:189
tr_dump_trigger
int tr_dump_trigger(print_output &output_ctx, DB_OBJECT *trigger_object)
Definition:
trigger_description.cpp:238
trigger_description::condition_time
const char * condition_time
Definition:
trigger_description.hpp:50
trigger_description::~trigger_description
~trigger_description()
Definition:
trigger_description.cpp:163
trigger_description::class_name
char * class_name
Definition:
trigger_description.hpp:45
trigger_description::full_event
char * full_event
Definition:
trigger_description.hpp:47
trigger_description::attribute
char * attribute
Definition:
trigger_description.hpp:46
trigger_description::priority
char * priority
Definition:
trigger_description.hpp:49
trigger_description::action_time
const char * action_time
Definition:
trigger_description.hpp:52
src
object
trigger_description.hpp
Generated by
1.8.11