1
2
3
4
5
6
7 package org.asyrinx.joey.gen.model.rdb;
8
9 import org.asyrinx.joey.gen.model.Element;
10 import org.asyrinx.joey.gen.model.ElementSet;
11
12 /***
13 * @author takeshi
14 */
15 public class PrimaryKey extends ElementSet {
16
17 /***
18 * @param parent
19 */
20 public PrimaryKey(Element parent) {
21 super(parent);
22 }
23
24 /***
25 * @param parent
26 * @param name
27 */
28 public PrimaryKey(Element parent, String name) {
29 super(parent, name);
30 }
31
32 /***
33 * @param parent
34 * @param name
35 * @param label
36 */
37 public PrimaryKey(Element parent, String name, String label) {
38 super(parent, name, label);
39 }
40
41 /***
42 * @param name
43 */
44 public PrimaryKey(String name) {
45 super(name);
46 }
47
48
49
50
51
52
53 public boolean isEntity() {
54 return true;
55 }
56
57
58
59
60
61
62 public void add(PrimaryKeyEntry entry) {
63 super.add(entry);
64 }
65
66
67
68
69
70
71 public boolean contains(PrimaryKeyEntry entry) {
72 return super.contains(entry);
73 }
74
75
76
77
78
79
80 public PrimaryKeyEntry getEntry(int index) {
81 return (PrimaryKeyEntry) super.getElement(index);
82 }
83
84
85
86
87
88
89 public PrimaryKeyEntry getEntry(String name) {
90 return (PrimaryKeyEntry) super.getElement(name);
91 }
92
93
94
95
96
97
98 public PrimaryKeyEntry removeEntry(String name) {
99 return (PrimaryKeyEntry) super.removeElement(name);
100 }
101
102 }