Subversion Repository Public Repository

litesoft

Diff Revisions 947 vs 948 for /trunk/Java/DATT/src/org/litesoft/datt/client/boviews/StoryViewMetaDataGO.java

Diff revisions: vs.
  @@ -7,384 +7,313 @@
7 7
8 8 public abstract class StoryViewMetaDataGO
9 9 extends AbstractVoMetaData<StoryView>
10 - implements StoryViewNames
11 - {
12 - public static synchronized StoryViewMetaData getInstance()
13 - {
14 - if ( sInstance == null )
15 - {
10 + implements StoryViewNames {
11 + public static synchronized StoryViewMetaData getInstance() {
12 + if ( sInstance == null ) {
16 13 sInstance = new StoryViewMetaData();
17 14 }
18 15 return sInstance;
19 16 }
20 17
21 18 @Override
22 - public StoryView createViewObject( boolean pNew, TransactionSet pTransactionSet )
23 - {
19 + public StoryView createViewObject( boolean pNew, TransactionSet pTransactionSet ) {
24 20 return new StoryView( pNew, pTransactionSet );
25 21 }
26 22
27 23 @Override
28 - public String getDerivedFromRegisteredObjectType()
29 - {
24 + public String getDerivedFromRegisteredObjectType() {
30 25 return "Story";
31 26 }
32 27
33 28 @Override
34 - public ObjectUniqueKey createObjectUniqueKey( BoAccessor pBoAccessor )
35 - {
29 + public ObjectUniqueKey createObjectUniqueKey( BoAccessor pBoAccessor ) {
36 30 StoryView zView = (StoryView) pBoAccessor;
37 31 return zView.isNew() ? createNewObjectUniqueKey( pBoAccessor ) : ObjectUniqueKey.createExisting( zView.getID() );
38 32 }
39 33
40 34 @Override
41 - public String getDisplayValueFormat()
42 - {
35 + public String getDisplayValueFormat() {
43 36 return null;
44 37 }
45 38
46 39 private static StoryViewMetaData sInstance = null;
47 40
48 - protected StoryViewMetaDataGO()
49 - {
41 + protected StoryViewMetaDataGO() {
50 42 super( StoryView.class, createLocals() );
51 43 }
52 44
53 - private static VoAttributeList<StoryView> createLocals()
54 - {
45 + private static VoAttributeList<StoryView> createLocals() {
55 46 VoAttribute[] zAttributes = //
56 47 { //
57 - new SimpleVoAttribute<StoryView>( aID, false, _Long.AddOnly() )
58 - {
48 + new SimpleVoAttribute<StoryView>( aID, false, _Long.AddOnly() ) {
59 49 @Override
60 - public String getDerivedFromAttributePath()
61 - {
50 + public String getDerivedFromAttributePath() {
62 51 return null;
63 52 }
64 53
65 54 @Override
66 - public boolean isQueryViewAttribute()
67 - {
55 + public boolean isQueryViewAttribute() {
68 56 return false;
69 57 }
70 58
71 59 @Override
72 - protected Object LLgetAttributeValue( StoryView pVO )
73 - {
60 + protected Object LLgetAttributeValue( StoryView pVO ) {
74 61 return pVO.getID();
75 62 }
76 63
77 64 @Override
78 - public void setAttributeValue( StoryView pVO, Object pValue )
79 - {
65 + public void setAttributeValue( StoryView pVO, Object pValue ) {
80 66 pVO.setID( TypeConverter.to_Long( pValue ) );
81 67 }
82 68 }, //
83 69 new SimpleVoAttribute<StoryView>( aChanges, false, _Text.RO().with( DisplayWidthInitial.of( 40 ), //
84 - DisplayHeightInitial.of( 4 ) ) )
85 - {
70 + DisplayHeightInitial.of( 4 ) ) ) {
86 71 @Override
87 - public String getDerivedFromAttributePath()
88 - {
72 + public String getDerivedFromAttributePath() {
89 73 return "Changes";
90 74 }
91 75
92 76 @Override
93 - public boolean isQueryViewAttribute()
94 - {
77 + public boolean isQueryViewAttribute() {
95 78 return true;
96 79 }
97 80
98 81 @Override
99 - protected Object LLgetAttributeValue( StoryView pVO )
100 - {
82 + protected Object LLgetAttributeValue( StoryView pVO ) {
101 83 return pVO.getChanges();
102 84 }
103 85
104 86 @Override
105 - public void setAttributeValue( StoryView pVO, Object pValue )
106 - {
87 + public void setAttributeValue( StoryView pVO, Object pValue ) {
107 88 pVO.setChanges( TypeConverter.to_String( pValue ) );
108 89 }
109 90 }, //
110 91 new SimpleVoAttribute<StoryView>( aCreatorFullName, false, _String.RO().with( MaxLength.of( 40 ), //
111 92 DisplayLength.of( 20 ), //
112 - Case.Ignored ) )
113 - {
93 + Case.Ignored ) ) {
114 94 @Override
115 - public String getDerivedFromAttributePath()
116 - {
95 + public String getDerivedFromAttributePath() {
117 96 return "CreatorFullName";
118 97 }
119 98
120 99 @Override
121 - public boolean isQueryViewAttribute()
122 - {
100 + public boolean isQueryViewAttribute() {
123 101 return true;
124 102 }
125 103
126 104 @Override
127 - protected Object LLgetAttributeValue( StoryView pVO )
128 - {
105 + protected Object LLgetAttributeValue( StoryView pVO ) {
129 106 return pVO.getCreatorFullName();
130 107 }
131 108
132 109 @Override
133 - public void setAttributeValue( StoryView pVO, Object pValue )
134 - {
110 + public void setAttributeValue( StoryView pVO, Object pValue ) {
135 111 pVO.setCreatorFullName( TypeConverter.to_String( pValue ) );
136 112 }
137 113 }, //
138 114 new SimpleVoAttribute<StoryView>( aDescription, false, _Text.with( DisplayWidthInitial.of( 40 ), //
139 - DisplayHeightInitial.of( 4 ) ) )
140 - {
115 + DisplayHeightInitial.of( 4 ) ) ) {
141 116 @Override
142 - public String getDerivedFromAttributePath()
143 - {
117 + public String getDerivedFromAttributePath() {
144 118 return "Description";
145 119 }
146 120
147 121 @Override
148 - public boolean isQueryViewAttribute()
149 - {
122 + public boolean isQueryViewAttribute() {
150 123 return true;
151 124 }
152 125
153 126 @Override
154 - protected Object LLgetAttributeValue( StoryView pVO )
155 - {
127 + protected Object LLgetAttributeValue( StoryView pVO ) {
156 128 return pVO.getDescription();
157 129 }
158 130
159 131 @Override
160 - public void setAttributeValue( StoryView pVO, Object pValue )
161 - {
132 + public void setAttributeValue( StoryView pVO, Object pValue ) {
162 133 pVO.setDescription( TypeConverter.to_String( pValue ) );
163 134 }
164 135 }, //
165 136 new SimpleVoAttribute<StoryView>( aDescriptionThreeLines, false, _String.RO().with( MaxLength.of( 40 ), //
166 - DisplayLength.of( 20 ) ) )
167 - {
137 + DisplayLength.of( 20 ) ) ) {
168 138 @Override
169 - public String getDerivedFromAttributePath()
170 - {
139 + public String getDerivedFromAttributePath() {
171 140 return null;
172 141 }
173 142
174 143 @Override
175 - public boolean isQueryViewAttribute()
176 - {
144 + public boolean isQueryViewAttribute() {
177 145 return false;
178 146 }
179 147
180 148 @Override
181 - protected Object LLgetAttributeValue( StoryView pVO )
182 - {
149 + protected Object LLgetAttributeValue( StoryView pVO ) {
183 150 return pVO.getDescriptionThreeLines();
184 151 }
185 152
186 153 @Override
187 - public boolean isSetable()
188 - {
154 + public boolean isSetable() {
189 155 return false;
190 156 }
191 157
192 158 @Override
193 - public void setAttributeValue( StoryView pVO, Object pValue )
194 - {
159 + public void setAttributeValue( StoryView pVO, Object pValue ) {
195 160 throw new UnsupportedOperationException( "'DescriptionThreeLines' is a Read Only attribute" );
196 161 }
197 162 }, //
198 - new SimpleVoAttribute<StoryView>( aIsDone, false, _Boolean )
199 - {
163 + new SimpleVoAttribute<StoryView>( aIsDone, false, _Boolean ) {
200 164 @Override
201 - public String getDerivedFromAttributePath()
202 - {
165 + public String getDerivedFromAttributePath() {
203 166 return "IsDone";
204 167 }
205 168
206 169 @Override
207 - public boolean isQueryViewAttribute()
208 - {
170 + public boolean isQueryViewAttribute() {
209 171 return true;
210 172 }
211 173
212 174 @Override
213 - protected Object LLgetAttributeValue( StoryView pVO )
214 - {
175 + protected Object LLgetAttributeValue( StoryView pVO ) {
215 176 return pVO.getIsDone();
216 177 }
217 178
218 179 @Override
219 - public void setAttributeValue( StoryView pVO, Object pValue )
220 - {
180 + public void setAttributeValue( StoryView pVO, Object pValue ) {
221 181 pVO.setIsDone( TypeConverter.to_Boolean( pValue ) );
222 182 }
223 183 }, //
224 184 new SimpleVoAttribute<StoryView>( aName, true, _String.with( MaxLength.of( 40 ), //
225 185 DisplayLength.of( 20 ), //
226 - Case.Ignored ) )
227 - {
186 + Case.Ignored ) ) {
228 187 @Override
229 - public String getDerivedFromAttributePath()
230 - {
188 + public String getDerivedFromAttributePath() {
231 189 return "Name";
232 190 }
233 191
234 192 @Override
235 - public boolean isQueryViewAttribute()
236 - {
193 + public boolean isQueryViewAttribute() {
237 194 return true;
238 195 }
239 196
240 197 @Override
241 - protected Object LLgetAttributeValue( StoryView pVO )
242 - {
198 + protected Object LLgetAttributeValue( StoryView pVO ) {
243 199 return pVO.getName();
244 200 }
245 201
246 202 @Override
247 - public void setAttributeValue( StoryView pVO, Object pValue )
248 - {
203 + public void setAttributeValue( StoryView pVO, Object pValue ) {
249 204 pVO.setName( TypeConverter.to_String( pValue ) );
250 205 }
251 206 }, //
252 - new SimpleVoAttribute<StoryView>( aPriority, false, _Float.with( DisplayLength.of( 9 ) ) )
253 - {
207 + new SimpleVoAttribute<StoryView>( aPriority, false, _Float.with( DisplayLength.of( 9 ) ) ) {
254 208 @Override
255 - public String getDerivedFromAttributePath()
256 - {
209 + public String getDerivedFromAttributePath() {
257 210 return "Priority";
258 211 }
259 212
260 213 @Override
261 - public boolean isQueryViewAttribute()
262 - {
214 + public boolean isQueryViewAttribute() {
263 215 return true;
264 216 }
265 217
266 218 @Override
267 - protected Object LLgetAttributeValue( StoryView pVO )
268 - {
219 + protected Object LLgetAttributeValue( StoryView pVO ) {
269 220 return pVO.getPriority();
270 221 }
271 222
272 223 @Override
273 - public void setAttributeValue( StoryView pVO, Object pValue )
274 - {
224 + public void setAttributeValue( StoryView pVO, Object pValue ) {
275 225 pVO.setPriority( TypeConverter.to_Float( pValue ) );
276 226 }
277 227 }, //
278 228 new SimpleVoAttribute<StoryView>( aPriorityLastChangedBy, false, _String.RO().with( MaxLength.of( 40 ), //
279 - DisplayLength.of( 20 ) ) )
280 - {
229 + DisplayLength.of( 20 ) ) ) {
281 230 @Override
282 - public String getDerivedFromAttributePath()
283 - {
231 + public String getDerivedFromAttributePath() {
284 232 return "PriorityLastChangedBy";
285 233 }
286 234
287 235 @Override
288 - public boolean isQueryViewAttribute()
289 - {
236 + public boolean isQueryViewAttribute() {
290 237 return true;
291 238 }
292 239
293 240 @Override
294 - protected Object LLgetAttributeValue( StoryView pVO )
295 - {
241 + protected Object LLgetAttributeValue( StoryView pVO ) {
296 242 return pVO.getPriorityLastChangedBy();
297 243 }
298 244
299 245 @Override
300 - public void setAttributeValue( StoryView pVO, Object pValue )
301 - {
246 + public void setAttributeValue( StoryView pVO, Object pValue ) {
302 247 pVO.setPriorityLastChangedBy( TypeConverter.to_String( pValue ) );
303 248 }
304 249 }, //
305 250 new SimpleVoAttribute<StoryView>( aPriorityToDisplay, false, _String.RO().with( MaxLength.of( 14 ), //
306 - DisplayLength.of( 14 ) ) )
307 - {
251 + DisplayLength.of( 14 ) ) ) {
308 252 @Override
309 - public String getDerivedFromAttributePath()
310 - {
253 + public String getDerivedFromAttributePath() {
311 254 return null;
312 255 }
313 256
314 257 @Override
315 - public boolean isQueryViewAttribute()
316 - {
258 + public boolean isQueryViewAttribute() {
317 259 return false;
318 260 }
319 261
320 262 @Override
321 - protected Object LLgetAttributeValue( StoryView pVO )
322 - {
263 + protected Object LLgetAttributeValue( StoryView pVO ) {
323 264 return pVO.getPriorityToDisplay();
324 265 }
325 266
326 267 @Override
327 - public boolean isSetable()
328 - {
268 + public boolean isSetable() {
329 269 return false;
330 270 }
331 271
332 272 @Override
333 - public void setAttributeValue( StoryView pVO, Object pValue )
334 - {
273 + public void setAttributeValue( StoryView pVO, Object pValue ) {
335 274 throw new UnsupportedOperationException( "'PriorityToDisplay' is a Read Only attribute" );
336 275 }
337 276 }, //
338 - new SimpleVoAttribute<StoryView>( aShowDone, false, _Boolean )
339 - {
277 + new SimpleVoAttribute<StoryView>( aShowDone, false, _Boolean ) {
340 278 @Override
341 - public String getDerivedFromAttributePath()
342 - {
279 + public String getDerivedFromAttributePath() {
343 280 return null;
344 281 }
345 282
346 283 @Override
347 - public boolean isQueryViewAttribute()
348 - {
284 + public boolean isQueryViewAttribute() {
349 285 return false;
350 286 }
351 287
352 288 @Override
353 - protected Object LLgetAttributeValue( StoryView pVO )
354 - {
289 + protected Object LLgetAttributeValue( StoryView pVO ) {
355 290 return pVO.getShowDone();
356 291 }
357 292
358 293 @Override
359 - public void setAttributeValue( StoryView pVO, Object pValue )
360 - {
294 + public void setAttributeValue( StoryView pVO, Object pValue ) {
361 295 pVO.setShowDone( TypeConverter.to_Boolean( pValue ) );
362 296 }
363 297 }, //
364 298 new SimpleVoAttribute<StoryView>( aStoryTemplateName, false, _String.RO().with( MaxLength.of( 40 ), //
365 - DisplayLength.of( 20 ) ) )
366 - {
299 + DisplayLength.of( 20 ) ) ) {
367 300 @Override
368 - public String getDerivedFromAttributePath()
369 - {
301 + public String getDerivedFromAttributePath() {
370 302 return "StoryTemplate.Name";
371 303 }
372 304
373 305 @Override
374 - public boolean isQueryViewAttribute()
375 - {
306 + public boolean isQueryViewAttribute() {
376 307 return false;
377 308 }
378 309
379 310 @Override
380 - protected Object LLgetAttributeValue( StoryView pVO )
381 - {
311 + protected Object LLgetAttributeValue( StoryView pVO ) {
382 312 return pVO.getStoryTemplateName();
383 313 }
384 314
385 315 @Override
386 - public void setAttributeValue( StoryView pVO, Object pValue )
387 - {
316 + public void setAttributeValue( StoryView pVO, Object pValue ) {
388 317 pVO.setStoryTemplateName( TypeConverter.to_String( pValue ) );
389 318 }
390 319 }, //