1
2
3
4
5
6
7 package org.asyrinx.joey.gen.command.rdb;
8
9 import org.asyrinx.joey.gen.model.Element;
10 import org.asyrinx.joey.gen.model.EnumerationEntry;
11 import org.asyrinx.joey.gen.model.command.Command;
12 import org.asyrinx.joey.gen.model.rdb.Column;
13 import org.asyrinx.joey.gen.model.rdb.Database;
14 import org.asyrinx.joey.gen.model.rdb.Databases;
15 import org.asyrinx.joey.gen.model.rdb.ForeignKey;
16 import org.asyrinx.joey.gen.model.rdb.ForeignKeyEntry;
17 import org.asyrinx.joey.gen.model.rdb.Index;
18 import org.asyrinx.joey.gen.model.rdb.IndexEntry;
19 import org.asyrinx.joey.gen.model.rdb.PrimaryKey;
20 import org.asyrinx.joey.gen.model.rdb.RdbEnumeration;
21 import org.asyrinx.joey.gen.model.rdb.RdbVisitor;
22 import org.asyrinx.joey.gen.model.rdb.Table;
23 import org.asyrinx.joey.gen.model.rdb.Unique;
24 import org.asyrinx.joey.gen.model.rdb.visitor.RdbTopDownVisitor;
25 import org.asyrinx.joey.gen.model.rdb.visitor.RdbVisitorAdapter;
26
27 /***
28 * @author akima
29 */
30 public class RdbCommand extends Command implements RdbVisitor {
31
32 /***
33 *
34 */
35 public RdbCommand() {
36 super();
37 }
38
39 public void execute(Element element) {
40 new RdbVisitorAdapter(new RdbTopDownVisitor(this)).visit(element);
41 }
42
43
44
45
46
47
48 public void visit(Column column) {
49
50 }
51
52
53
54
55
56
57 public void visit(Database database) {
58
59 }
60
61
62
63
64
65
66 public void visit(Databases databases) {
67
68 }
69
70
71
72
73
74
75 public void visit(EnumerationEntry enumerationEntry) {
76
77 }
78
79
80
81
82
83
84 public void visit(ForeignKey foreignKey) {
85
86 }
87
88
89
90
91
92
93 public void visit(ForeignKeyEntry foreignKeyEntry) {
94
95 }
96
97
98
99
100
101
102 public void visit(Index index) {
103
104 }
105
106
107
108
109
110
111 public void visit(IndexEntry indexEntry) {
112
113 }
114
115
116
117
118
119
120 public void visit(PrimaryKey primaryKey) {
121
122 }
123
124
125
126
127
128
129 public void visit(RdbEnumeration enumeration) {
130
131 }
132
133
134
135
136
137
138 public void visit(Table table) {
139
140 }
141
142
143
144
145
146
147 public void visit(Unique unique) {
148
149 }
150 }