1
2
3
4
5
6
7
8 package org.exolab.castor.xml.schema.annotations.jdo.descriptors;
9
10
11
12
13
14 import org.exolab.castor.xml.schema.annotations.jdo.PrimaryKey;
15
16
17
18
19
20
21 public class PrimaryKeyDescriptor extends org.exolab.castor.xml.schema.annotations.jdo.descriptors.PkTypeDescriptor {
22
23
24
25
26
27
28
29
30
31 private boolean _elementDefinition;
32
33
34
35
36 private java.lang.String _nsPrefix;
37
38
39
40
41 private java.lang.String _nsURI;
42
43
44
45
46 private java.lang.String _xmlName;
47
48
49
50
51 private org.exolab.castor.xml.XMLFieldDescriptor _identity;
52
53
54
55
56
57
58 public PrimaryKeyDescriptor() {
59 super();
60 setExtendsWithoutFlatten(new org.exolab.castor.xml.schema.annotations.jdo.descriptors.PkTypeDescriptor());
61 _nsURI = "http://www.castor.org/binding/persistence";
62 _xmlName = "primaryKey";
63 _elementDefinition = true;
64 }
65
66
67
68
69
70
71
72
73
74
75
76 @Override()
77 public org.exolab.castor.mapping.AccessMode getAccessMode(
78 ) {
79 return null;
80 }
81
82
83
84
85
86
87
88 @Override()
89 public org.exolab.castor.mapping.FieldDescriptor getIdentity(
90 ) {
91 if (_identity == null) {
92 return super.getIdentity();
93 }
94 return _identity;
95 }
96
97
98
99
100
101
102 @Override()
103 public java.lang.Class getJavaClass(
104 ) {
105 return org.exolab.castor.xml.schema.annotations.jdo.PrimaryKey.class;
106 }
107
108
109
110
111
112
113 @Override()
114 public java.lang.String getNameSpacePrefix(
115 ) {
116 return _nsPrefix;
117 }
118
119
120
121
122
123
124
125 @Override()
126 public java.lang.String getNameSpaceURI(
127 ) {
128 return _nsURI;
129 }
130
131
132
133
134
135
136
137 @Override()
138 public org.exolab.castor.xml.TypeValidator getValidator(
139 ) {
140 return this;
141 }
142
143
144
145
146
147
148 @Override()
149 public java.lang.String getXMLName(
150 ) {
151 return _xmlName;
152 }
153
154
155
156
157
158
159
160
161 public boolean isElementDefinition(
162 ) {
163 return _elementDefinition;
164 }
165
166 }