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.TablePattern;
24 import org.asyrinx.joey.gen.model.rdb.TablePatternParam;
25 import org.asyrinx.joey.gen.model.rdb.Unique;
26 import org.asyrinx.joey.gen.model.rdb.visitor.RdbTopDownVisitor;
27 import org.asyrinx.joey.gen.model.rdb.visitor.RdbVisitorAdapter;
28
29 /***
30 * @author akima
31 */
32 public class RdbCommand extends Command implements RdbVisitor {
33
34 /***
35 *
36 */
37 public RdbCommand() {
38 super();
39 }
40
41 public void execute(Element element) {
42 new RdbVisitorAdapter(new RdbTopDownVisitor(this)).visit(element);
43 }
44
45
46
47
48
49
50 public void visit(Column column) {
51
52 }
53
54
55
56
57
58
59 public void visit(Database database) {
60
61 }
62
63
64
65
66
67
68 public void visit(Databases databases) {
69
70 }
71
72
73
74
75
76
77 public void visit(EnumerationEntry enumerationEntry) {
78
79 }
80
81
82
83
84
85
86 public void visit(ForeignKey foreignKey) {
87
88 }
89
90
91
92
93
94
95 public void visit(ForeignKeyEntry foreignKeyEntry) {
96
97 }
98
99
100
101
102
103
104 public void visit(Index index) {
105
106 }
107
108
109
110
111
112
113 public void visit(IndexEntry indexEntry) {
114
115 }
116
117
118
119
120
121
122 public void visit(PrimaryKey primaryKey) {
123
124 }
125
126
127
128
129
130
131 public void visit(RdbEnumeration enumeration) {
132
133 }
134
135
136
137
138
139
140 public void visit(Table table) {
141
142 }
143
144
145
146
147
148
149 public void visit(TablePattern tablePattern) {
150
151 }
152
153
154
155
156
157
158 public void visit(TablePatternParam tablePatternParam) {
159
160 }
161
162
163
164
165
166
167 public void visit(Unique unique) {
168
169 }
170 }