Subversion Repository Public Repository

litesoft

Diff Revisions 947 vs 948 for /trunk/GWT_Sandbox/Prioritizer/src/org/litesoft/prioritizer/server/pos/StoryGO.java

Diff revisions: vs.
  @@ -9,25 +9,21 @@
9 9
10 10 public abstract class StoryGO
11 11 extends org.litesoft.orsup.nonpublic.PersistentObjectImpl<Story>
12 - implements HasAttributes
13 - {
12 + implements HasAttributes {
14 13 private static final ConstructionControl CONSTRUCTION_CONTROL = new ConstructionControl();
15 14
16 - public static SimpleFromIdentifier from()
17 - {
15 + public static SimpleFromIdentifier from() {
18 16 return StoryMetaData.INSTANCE;
19 17 }
20 18
21 - protected StoryGO( Transaction pTransaction )
22 - {
19 + protected StoryGO( Transaction pTransaction ) {
23 20 super( StoryMetaData.INSTANCE, pTransaction );
24 21 mID = getNextSequenceNumber( getClass() );
25 22 registerWithTransaction();
26 23 setDefaults();
27 24 }
28 25
29 - protected StoryGO( ConstructionControl pConstructionControl )
30 - {
26 + protected StoryGO( ConstructionControl pConstructionControl ) {
31 27 super( StoryMetaData.INSTANCE, CONSTRUCTION_CONTROL, pConstructionControl );
32 28 }
33 29
  @@ -35,22 +31,18 @@
35 31
36 32 protected final RecordVersionHelper mRecordVersion = new RecordVersionHelper();
37 33
38 - public Long getRecordVersion()
39 - {
34 + public Long getRecordVersion() {
40 35 return mRecordVersion.getRecordVersion();
41 36 }
42 37
43 38 private static class AttributeAccessor_RecordVersion
44 - extends AttributeAccessorSCD_RecordVersion<Story>
45 - {
46 - public AttributeAccessor_RecordVersion()
47 - {
39 + extends AttributeAccessorSCD_RecordVersion<Story> {
40 + public AttributeAccessor_RecordVersion() {
48 41 super( "RecordVersion", "RecordVersion" );
49 42 }
50 43
51 44 @Override
52 - protected RecordVersionHelper getRecordVersionHelper( Story pPO )
53 - {
45 + protected RecordVersionHelper getRecordVersionHelper( Story pPO ) {
54 46 return pPO.mRecordVersion;
55 47 }
56 48 }
  @@ -59,41 +51,34 @@
59 51
60 52 final org.litesoft.orsup.lazyeval.LazyEvalSimpleTimestamp mCreated = new org.litesoft.orsup.lazyeval.LazyEvalSimpleTimestamp();
61 53
62 - public org.litesoft.core.simpletypes.temporal.SimpleTimestamp getCreated()
63 - {
54 + public org.litesoft.core.simpletypes.temporal.SimpleTimestamp getCreated() {
64 55 return mCreated.getSimpleTimestamp();
65 56 }
66 57
67 - protected void LLsetCreated( org.litesoft.core.simpletypes.temporal.SimpleTimestamp pCreated )
68 - {
58 + protected void LLsetCreated( org.litesoft.core.simpletypes.temporal.SimpleTimestamp pCreated ) {
69 59 verifyMutability( CD_Created, mCreated.getSimpleTimestamp(), pCreated );
70 60 mCreated.setSimpleTimestamp( pCreated );
71 61 }
72 62
73 63 private static class AttributeAccessor_Created
74 64 extends AttributeAccessorSCDsimplePersistedSysSetOnly<Story>
75 - implements NonImportableFeature
76 - {
77 - public AttributeAccessor_Created()
78 - {
65 + implements NonImportableFeature {
66 + public AttributeAccessor_Created() {
79 67 super( "Created", "Created", true, _SimpleTimestamp.RO() );
80 68 }
81 69
82 70 @Override
83 - public Object getValueOnPO( Story pPO )
84 - {
71 + public Object getValueOnPO( Story pPO ) {
85 72 return pPO.getCreated();
86 73 }
87 74
88 75 @Override
89 - public Object db_getValueOnPO( Story pPO )
90 - {
76 + public Object db_getValueOnPO( Story pPO ) {
91 77 return pPO.mCreated.get_java_sql_Timestamp();
92 78 }
93 79
94 80 @Override
95 - public void db_setValueOnPO( Story pPO, Object pValue )
96 - {
81 + public void db_setValueOnPO( Story pPO, Object pValue ) {
97 82 pPO.mCreated.set_java_sql_Timestamp( to_Timestamp( pValue ) );
98 83 }
99 84 }
  @@ -102,41 +87,34 @@
102 87
103 88 final org.litesoft.orsup.lazyeval.LazyEvalSimpleTimestamp mLastModified = new org.litesoft.orsup.lazyeval.LazyEvalSimpleTimestamp();
104 89
105 - public org.litesoft.core.simpletypes.temporal.SimpleTimestamp getLastModified()
106 - {
90 + public org.litesoft.core.simpletypes.temporal.SimpleTimestamp getLastModified() {
107 91 return mLastModified.getSimpleTimestamp();
108 92 }
109 93
110 - protected void LLsetLastModified( org.litesoft.core.simpletypes.temporal.SimpleTimestamp pLastModified )
111 - {
94 + protected void LLsetLastModified( org.litesoft.core.simpletypes.temporal.SimpleTimestamp pLastModified ) {
112 95 verifyMutability( CD_LastModified, mLastModified.getSimpleTimestamp(), pLastModified );
113 96 mLastModified.setSimpleTimestamp( pLastModified );
114 97 }
115 98
116 99 private static class AttributeAccessor_LastModified
117 100 extends AttributeAccessorSCDsimplePersistedSysSetOnly<Story>
118 - implements NonImportableFeature
119 - {
120 - public AttributeAccessor_LastModified()
121 - {
101 + implements NonImportableFeature {
102 + public AttributeAccessor_LastModified() {
122 103 super( "LastModified", "LastModified", true, _SimpleTimestamp.RO() );
123 104 }
124 105
125 106 @Override
126 - public Object getValueOnPO( Story pPO )
127 - {
107 + public Object getValueOnPO( Story pPO ) {
128 108 return pPO.getLastModified();
129 109 }
130 110
131 111 @Override
132 - public Object db_getValueOnPO( Story pPO )
133 - {
112 + public Object db_getValueOnPO( Story pPO ) {
134 113 return pPO.mLastModified.get_java_sql_Timestamp();
135 114 }
136 115
137 116 @Override
138 - public void db_setValueOnPO( Story pPO, Object pValue )
139 - {
117 + public void db_setValueOnPO( Story pPO, Object pValue ) {
140 118 pPO.mLastModified.set_java_sql_Timestamp( to_Timestamp( pValue ) );
141 119 }
142 120 }
  @@ -145,35 +123,29 @@
145 123
146 124 private Long mID;
147 125
148 - public Long getID()
149 - {
126 + public Long getID() {
150 127 return mID;
151 128 }
152 129
153 - protected void LLsetID( Long pID )
154 - {
130 + protected void LLsetID( Long pID ) {
155 131 verifyMutability( CD_ID, mID, pID );
156 132 mID = pID;
157 133 }
158 134
159 135 private static class AttributeAccessor_ID
160 136 extends AttributeAccessorSCDsimplePersistedSysSetOnly<Story>
161 - implements NonImportableFeature
162 - {
163 - public AttributeAccessor_ID()
164 - {
137 + implements NonImportableFeature {
138 + public AttributeAccessor_ID() {
165 139 super( "ID", "ID", false, _Long.AddOnly() );
166 140 }
167 141
168 142 @Override
169 - public Object getValueOnPO( Story pPO )
170 - {
143 + public Object getValueOnPO( Story pPO ) {
171 144 return pPO.getID();
172 145 }
173 146
174 147 @Override
175 - public void db_setValueOnPO( Story pPO, Object pValue )
176 - {
148 + public void db_setValueOnPO( Story pPO, Object pValue ) {
177 149 pPO.LLsetID( to_Long( pValue ) );
178 150 }
179 151 }
  @@ -185,77 +157,64 @@
185 157 abstract protected void LLclearChanges();
186 158
187 159 private static class AttributeAccessor_Changes
188 - extends AttributeAccessorSCDsimpleVirtualReadOnly<Story>
189 - {
190 - public AttributeAccessor_Changes()
191 - {
160 + extends AttributeAccessorSCDsimpleVirtualReadOnly<Story> {
161 + public AttributeAccessor_Changes() {
192 162 super( "Changes", false, _Text.RO().with( DisplayWidthInitial.of( 40 ), //
193 163 DisplayHeightInitial.of( 4 ) ) );
194 164 }
195 165
196 166 @Override
197 - public Object getValueOnPO( Story pPO )
198 - {
167 + public Object getValueOnPO( Story pPO ) {
199 168 return pPO.getChanges();
200 169 }
201 170
202 171 @Override
203 - protected void LL_clearVirtualValueOnPO( Story pPO )
204 - {
172 + protected void LL_clearVirtualValueOnPO( Story pPO ) {
205 173 pPO.LLclearChanges();
206 174 }
207 175 }
208 176
209 - public static final AttributeAccessorSCDtoOneRegular<Story,User> CD_Creator = new AttributeAccessor_Creator();
177 + public static final AttributeAccessorSCDtoOneRegular<Story, User> CD_Creator = new AttributeAccessor_Creator();
210 178
211 - protected org.litesoft.orsup.lazyload.LazyLoadToOneRegular<Story,User> mCreator = //
212 - new org.litesoft.orsup.lazyload.LazyLoadToOneRegular<Story,User>( (Story) this, CD_Creator );
179 + protected org.litesoft.orsup.lazyload.LazyLoadToOneRegular<Story, User> mCreator = //
180 + new org.litesoft.orsup.lazyload.LazyLoadToOneRegular<Story, User>( (Story) this, CD_Creator );
213 181
214 - public User getCreator()
215 - {
182 + public User getCreator() {
216 183 return processLazyLoadAccess( mCreator );
217 184 }
218 185
219 - public void setCreator( User pCreator )
220 - {
186 + public void setCreator( User pCreator ) {
221 187 processLazyLoadMutation( mCreator, pCreator );
222 188 }
223 189
224 190 private static class AttributeAccessor_Creator
225 - extends AttributeAccessorSCDtoOneRegular<Story,User>
226 - {
227 - public AttributeAccessor_Creator()
228 - {
191 + extends AttributeAccessorSCDtoOneRegular<Story, User> {
192 + public AttributeAccessor_Creator() {
229 193 super( "Creator", "Creator_id", User.class, "ID", "CreatedStories", false, true, Mutability.RW );
230 194 }
231 195
232 196 @Override
233 - public org.litesoft.orsup.lazyload.LazyLoadToOneRegular<Story,User> getValueHolder( Story pPO )
234 - {
197 + public org.litesoft.orsup.lazyload.LazyLoadToOneRegular<Story, User> getValueHolder( Story pPO ) {
235 198 return pPO.mCreator;
236 199 }
237 200
238 201 @Override
239 - public Object getValueOnPO( Story pPO )
240 - {
202 + public Object getValueOnPO( Story pPO ) {
241 203 return pPO.getCreator();
242 204 }
243 205
244 206 @Override
245 - public void setValueOnPO( Story pPO, Object pValue )
246 - {
207 + public void setValueOnPO( Story pPO, Object pValue ) {
247 208 pPO.setCreator( to_PO( pPO, User.class, pValue ) );
248 209 }
249 210
250 211 @Override
251 - public Object db_getValueOnPO( Story pPO )
252 - {
212 + public Object db_getValueOnPO( Story pPO ) {
253 213 return pPO.mCreator.db_getValue();
254 214 }
255 215
256 216 @Override
257 - public void db_setValueOnPO( Story pPO, Object pValue )
258 - {
217 + public void db_setValueOnPO( Story pPO, Object pValue ) {
259 218 pPO.mCreator.db_setValue( to_Long( pValue ) );
260 219 }
261 220 }
  @@ -264,37 +223,31 @@
264 223
265 224 private String mDescription;
266 225
267 - public String getDescription()
268 - {
226 + public String getDescription() {
269 227 return mDescription;
270 228 }
271 229
272 - public void setDescription( String pDescription )
273 - {
230 + public void setDescription( String pDescription ) {
274 231 verifyMutability( CD_Description, mDescription, pDescription );
275 232 mDescription = pDescription;
276 233 }
277 234
278 235 private static class AttributeAccessor_Description
279 236 extends AttributeAccessorSCDsimplePersistedRegular<Story>
280 - implements CharacterCaseIgnored
281 - {
282 - public AttributeAccessor_Description()
283 - {
237 + implements CharacterCaseIgnored {
238 + public AttributeAccessor_Description() {
284 239 super( "Description", "Description", false, _Text.with( DisplayWidthInitial.of( 40 ), //
285 240 DisplayHeightInitial.of( 4 ), //
286 241 Case.Ignored ) );
287 242 }
288 243
289 244 @Override
290 - public Object getValueOnPO( Story pPO )
291 - {
245 + public Object getValueOnPO( Story pPO ) {
292 246 return pPO.getDescription();
293 247 }
294 248
295 249 @Override
296 - public void setValueOnPO( Story pPO, Object pValue )
297 - {
250 + public void setValueOnPO( Story pPO, Object pValue ) {
298 251 pPO.setDescription( to_String( pValue ) );
299 252 }
300 253 }
  @@ -303,40 +256,33 @@
303 256
304 257 private Boolean mIsDone;
305 258
306 - public Boolean getIsDone()
307 - {
259 + public Boolean getIsDone() {
308 260 return mIsDone;
309 261 }
310 262
311 - public void setIsDone( Boolean pIsDone )
312 - {
263 + public void setIsDone( Boolean pIsDone ) {
313 264 verifyMutability( CD_IsDone, mIsDone, pIsDone );
314 265 mIsDone = pIsDone;
315 266 }
316 267
317 268 private static class AttributeAccessor_IsDone
318 - extends AttributeAccessorSCDsimplePersistedRegular<Story>
319 - {
320 - public AttributeAccessor_IsDone()
321 - {
269 + extends AttributeAccessorSCDsimplePersistedRegular<Story> {
270 + public AttributeAccessor_IsDone() {
322 271 super( "IsDone", "IsDone", true, _Boolean );
323 272 }
324 273
325 274 @Override
326 - public Object getDefault()
327 - {
275 + public Object getDefault() {
328 276 return false;
329 277 }
330 278
331 279 @Override
332 - public Object getValueOnPO( Story pPO )
333 - {
280 + public Object getValueOnPO( Story pPO ) {
334 281 return pPO.getIsDone();
335 282 }
336 283
337 284 @Override
338 - public void setValueOnPO( Story pPO, Object pValue )
339 - {
285 + public void setValueOnPO( Story pPO, Object pValue ) {
340 286 pPO.setIsDone( to_Boolean( pValue ) );
341 287 }
342 288 }
  @@ -345,37 +291,31 @@
345 291
346 292 private String mName;
347 293
348 - public String getName()
349 - {
294 + public String getName() {
350 295 return mName;
351 296 }
352 297
353 - public void setName( String pName )
354 - {
298 + public void setName( String pName ) {
355 299 verifyMutability( CD_Name, mName, pName );
356 300 mName = pName;
357 301 }
358 302
359 303 private static class AttributeAccessor_Name
360 304 extends AttributeAccessorSCDsimplePersistedRegular<Story>
361 - implements CharacterCaseIgnored
362 - {
363 - public AttributeAccessor_Name()
364 - {
305 + implements CharacterCaseIgnored {
306 + public AttributeAccessor_Name() {
365 307 super( "Name", "Name", true, _String.with( MaxLength.of( 40 ), //
366 308 DisplayLength.of( 20 ), //
367 309 Case.Ignored ) );
368 310 }
369 311
370 312 @Override
371 - public Object getValueOnPO( Story pPO )
372 - {
313 + public Object getValueOnPO( Story pPO ) {
373 314 return pPO.getName();
374 315 }
375 316
376 317 @Override
377 - public void setValueOnPO( Story pPO, Object pValue )
378 - {
318 + public void setValueOnPO( Story pPO, Object pValue ) {
379 319 pPO.setName( to_String( pValue ) );
380 320 }
381 321 }
  @@ -387,40 +327,33 @@
387 327 /**
388 328 * Allow insertion of priorities in between.|0 means Not Currently Prioritized.|Greater the Number == Higher Priority
389 329 */
390 - public Float getPriority()
391 - {
330 + public Float getPriority() {
392 331 return mPriority;
393 332 }
394 333
395 - public void setPriority( Float pPriority )
396 - {
334 + public void setPriority( Float pPriority ) {
397 335 verifyMutability( CD_Priority, mPriority, pPriority );
398 336 mPriority = pPriority;
399 337 }
400 338
401 339 private static class AttributeAccessor_Priority
402 - extends AttributeAccessorSCDsimplePersistedRegular<Story>
403 - {
404 - public AttributeAccessor_Priority()
405 - {
340 + extends AttributeAccessorSCDsimplePersistedRegular<Story> {
341 + public AttributeAccessor_Priority() {
406 342 super( "Priority", "Priority", true, _Float.with( DisplayLength.of( 9 ) ) );
407 343 }
408 344
409 345 @Override
410 - public Object getDefault()
411 - {
346 + public Object getDefault() {
412 347 return "0";
413 348 }
414 349
415 350 @Override
416 - public Object getValueOnPO( Story pPO )
417 - {
351 + public Object getValueOnPO( Story pPO ) {
418 352 return pPO.getPriority();
419 353 }
420 354
421 355 @Override
422 - public void setValueOnPO( Story pPO, Object pValue )
423 - {
356 + public void setValueOnPO( Story pPO, Object pValue ) {
424 357 pPO.setPriority( to_Float( pValue ) );
425 358 }
426 359 }
  @@ -429,165 +362,137 @@
429 362
430 363 private String mPriorityLastChangedBy;
431 364
432 - public String getPriorityLastChangedBy()
433 - {
365 + public String getPriorityLastChangedBy() {
434 366 return mPriorityLastChangedBy;
435 367 }
436 368
437 - public void setPriorityLastChangedBy( String pPriorityLastChangedBy )
438 - {
369 + public void setPriorityLastChangedBy( String pPriorityLastChangedBy ) {
439 370 verifyMutability( CD_PriorityLastChangedBy, mPriorityLastChangedBy, pPriorityLastChangedBy );
440 371 mPriorityLastChangedBy = pPriorityLastChangedBy;
441 372 }
442 373
443 374 private static class AttributeAccessor_PriorityLastChangedBy
444 - extends AttributeAccessorSCDsimplePersistedRegular<Story>
445 - {
446 - public AttributeAccessor_PriorityLastChangedBy()
447 - {
375 + extends AttributeAccessorSCDsimplePersistedRegular<Story> {
376 + public AttributeAccessor_PriorityLastChangedBy() {
448 377 super( "PriorityLastChangedBy", "PriorityLastChangedBy", false, _String.with( MaxLength.of( 40 ), //
449 378 DisplayLength.of( 20 ) ) );
450 379 }
451 380
452 381 @Override
453 - public Object getValueOnPO( Story pPO )
454 - {
382 + public Object getValueOnPO( Story pPO ) {
455 383 return pPO.getPriorityLastChangedBy();
456 384 }
457 385
458 386 @Override
459 - public void setValueOnPO( Story pPO, Object pValue )
460 - {
387 + public void setValueOnPO( Story pPO, Object pValue ) {
461 388 pPO.setPriorityLastChangedBy( to_String( pValue ) );
462 389 }
463 390 }
464 391
465 - public static final AttributeAccessorSCDtoOneRegular<Story,RestrictedResource> CD_RestrictedResource = new AttributeAccessor_RestrictedResource();
392 + public static final AttributeAccessorSCDtoOneRegular<Story, RestrictedResource> CD_RestrictedResource = new AttributeAccessor_RestrictedResource();
466 393
467 - protected org.litesoft.orsup.lazyload.LazyLoadToOneRegular<Story,RestrictedResource> mRestrictedResource = //
468 - new org.litesoft.orsup.lazyload.LazyLoadToOneRegular<Story,RestrictedResource>( (Story) this, CD_RestrictedResource );
394 + protected org.litesoft.orsup.lazyload.LazyLoadToOneRegular<Story, RestrictedResource> mRestrictedResource = //
395 + new org.litesoft.orsup.lazyload.LazyLoadToOneRegular<Story, RestrictedResource>( (Story) this, CD_RestrictedResource );
469 396
470 - public RestrictedResource getRestrictedResource()
471 - {
397 + public RestrictedResource getRestrictedResource() {
472 398 return processLazyLoadAccess( mRestrictedResource );
473 399 }
474 400
475 - public void setRestrictedResource( RestrictedResource pRestrictedResource )
476 - {
401 + public void setRestrictedResource( RestrictedResource pRestrictedResource ) {
477 402 processLazyLoadMutation( mRestrictedResource, pRestrictedResource );
478 403 }
479 404
480 405 private static class AttributeAccessor_RestrictedResource
481 - extends AttributeAccessorSCDtoOneRegular<Story,RestrictedResource>
482 - {
483 - public AttributeAccessor_RestrictedResource()
484 - {
406 + extends AttributeAccessorSCDtoOneRegular<Story, RestrictedResource> {
407 + public AttributeAccessor_RestrictedResource() {
485 408 super( "RestrictedResource", "RestrictedResource_id", RestrictedResource.class, "ID", "Stories", false, true, Mutability.RW );
486 409 }
487 410
488 411 @Override
489 - public org.litesoft.orsup.lazyload.LazyLoadToOneRegular<Story,RestrictedResource> getValueHolder( Story pPO )
490 - {
412 + public org.litesoft.orsup.lazyload.LazyLoadToOneRegular<Story, RestrictedResource> getValueHolder( Story pPO ) {
491 413 return pPO.mRestrictedResource;
492 414 }
493 415
494 416 @Override
495 - public Object getValueOnPO( Story pPO )
496 - {
417 + public Object getValueOnPO( Story pPO ) {
497 418 return pPO.getRestrictedResource();
498 419 }
499 420
500 421 @Override
501 - public void setValueOnPO( Story pPO, Object pValue )
502 - {
422 + public void setValueOnPO( Story pPO, Object pValue ) {
503 423 pPO.setRestrictedResource( to_PO( pPO, RestrictedResource.class, pValue ) );
504 424 }
505 425
506 426 @Override
507 - public Object db_getValueOnPO( Story pPO )
508 - {
427 + public Object db_getValueOnPO( Story pPO ) {
509 428 return pPO.mRestrictedResource.db_getValue();
510 429 }
511 430
512 431 @Override
513 - public void db_setValueOnPO( Story pPO, Object pValue )
514 - {
432 + public void db_setValueOnPO( Story pPO, Object pValue ) {
515 433 pPO.mRestrictedResource.db_setValue( to_Long( pValue ) );
516 434 }
517 435 }
518 436
519 - public static final AttributeAccessorSCDtoManyRegular<Story,StoryUpdate> CD_Updates = new AttributeAccessor_Updates();
437 + public static final AttributeAccessorSCDtoManyRegular<Story, StoryUpdate> CD_Updates = new AttributeAccessor_Updates();
520 438
521 - protected org.litesoft.orsup.lazyload.LazyLoadToManyRegular<Story,StoryUpdate> mUpdates = //
522 - new org.litesoft.orsup.lazyload.LazyLoadToManyRegular<Story,StoryUpdate>( (Story) this, CD_Updates );
439 + protected org.litesoft.orsup.lazyload.LazyLoadToManyRegular<Story, StoryUpdate> mUpdates = //
440 + new org.litesoft.orsup.lazyload.LazyLoadToManyRegular<Story, StoryUpdate>( (Story) this, CD_Updates );
523 441
524 - public java.util.List<StoryUpdate> getUpdates()
525 - {
442 + public java.util.List<StoryUpdate> getUpdates() {
526 443 return processLazyLoadAccess( mUpdates );
527 444 }
528 445
529 - public void setUpdates( java.util.List<StoryUpdate> pUpdates )
530 - {
446 + public void setUpdates( java.util.List<StoryUpdate> pUpdates ) {
531 447 processLazyLoadMutation( mUpdates, pUpdates );
532 448 }
533 449
534 - public void addUpdates( StoryUpdate pUpdates )
535 - {
450 + public void addUpdates( StoryUpdate pUpdates ) {
536 451 processLazyLoadMutationAdd( mUpdates, pUpdates );
537 452 }
538 453
539 - public void removeUpdates( StoryUpdate pUpdates )
540 - {
454 + public void removeUpdates( StoryUpdate pUpdates ) {
541 455 processLazyLoadMutationRemove( mUpdates, pUpdates );
542 456 }
543 457
544 458 private static class AttributeAccessor_Updates
545 - extends AttributeAccessorSCDtoManyRegular<Story,StoryUpdate>
546 - {
547 - public AttributeAccessor_Updates()
548 - {
459 + extends AttributeAccessorSCDtoManyRegular<Story, StoryUpdate> {
460 + public AttributeAccessor_Updates() {
549 461 super( "Updates", "ID", StoryUpdate.class, "Story", null, Mutability.RW, false, true );
550 462 }
551 463
552 464 @Override
553 - public org.litesoft.orsup.lazyload.LazyLoadToManyRegular<Story,StoryUpdate> getValueHolder( Story pPO )
554 - {
465 + public org.litesoft.orsup.lazyload.LazyLoadToManyRegular<Story, StoryUpdate> getValueHolder( Story pPO ) {
555 466 return pPO.mUpdates;
556 467 }
557 468
558 469 @Override
559 - public Object getValueOnPO( Story pPO )
560 - {
470 + public Object getValueOnPO( Story pPO ) {
561 471 return pPO.getUpdates();
562 472 }
563 473
564 474 @Override
565 - public void setValueOnPO( Story pPO, Object pValue )
566 - {
475 + public void setValueOnPO( Story pPO, Object pValue ) {
567 476 pPO.setUpdates( to_POs( pPO, StoryUpdate.class, pValue ) );
568 477 }
569 478
570 479 @Override
571 - public void addValueOnPO( Story pPO, Object pValue )
572 - {
480 + public void addValueOnPO( Story pPO, Object pValue ) {
573 481 pPO.addUpdates( to_PO( pPO, StoryUpdate.class, pValue ) );
574 482 }
575 483
576 484 @Override
577 - public void removeValueOnPO( Story pPO, Object pValue )
578 - {
485 + public void removeValueOnPO( Story pPO, Object pValue ) {
579 486 pPO.removeUpdates( to_PO( pPO, StoryUpdate.class, pValue ) );
580 487 }
581 488 }
582 489
583 490 static class MyMetaData
584 - extends org.litesoft.orsup.nonpublic.PersistentObjectImplMetaData<Story>
585 - {
491 + extends org.litesoft.orsup.nonpublic.PersistentObjectImplMetaData<Story> {
586 492 public static final String OBJECT_NAME = "Story";
587 493 public static final String TABLE_NAME = "Story";
588 494
589 - MyMetaData()
590 - {
495 + MyMetaData() {
591 496 super( OBJECT_NAME, TABLE_NAME, new AttributeAccessorKeySet( CD_ID ), //
592 497
593 498 CD_RecordVersion, /* .......... */
  @@ -620,62 +525,52 @@
620 525 }
621 526
622 527 @Override
623 - public Class getPOclass()
624 - {
528 + public Class getPOclass() {
625 529 return Story.class;
626 530 }
627 531
628 532 @Override
629 - public Story createNew( Transaction pTransaction )
630 - {
533 + public Story createNew( Transaction pTransaction ) {
631 534 return new Story( pTransaction );
632 535 }
633 536
634 537 @Override
635 - public Story createPOfromFinder()
636 - {
538 + public Story createPOfromFinder() {
637 539 return new Story( CONSTRUCTION_CONTROL );
638 540 }
639 541
640 542 @Override
641 - public String getDisplayValueFormat()
642 - {
543 + public String getDisplayValueFormat() {
643 544 return "${Name}";
644 545 }
645 546
646 547 @Override
647 - public String getRecordVersionAttributeName()
648 - {
548 + public String getRecordVersionAttributeName() {
649 549 return CD_RecordVersion.getName();
650 550 }
651 551
652 552 @Override
653 - public String getDefaultOrderByAttributeName()
654 - {
553 + public String getDefaultOrderByAttributeName() {
655 554 return "!Priority";
656 555 }
657 556
658 557 @Override
659 - public String getCreationTimestampAttributeName()
660 - {
558 + public String getCreationTimestampAttributeName() {
661 559 return CD_Created.getName();
662 560 }
663 561
664 562 @Override
665 - protected void setCreationTimestamp( Story pPersistentObject, java.sql.Timestamp pTransactionTimeStamp )
666 - {
563 + protected void setCreationTimestamp( Story pPersistentObject, java.sql.Timestamp pTransactionTimeStamp ) {
667 564 pPersistentObject.LLsetCreated( TypeConverter.to_SimpleTimestamp( pTransactionTimeStamp ) );
668 565 }
669 566
670 567 @Override
671 - public String getTransactionTimestampAttributeName()
672 - {
568 + public String getTransactionTimestampAttributeName() {
673 569 return CD_LastModified.getName();
674 570 }
675 571
676 572 @Override
677 - protected void setTransactionTimestamp( Story pPersistentObject, java.sql.Timestamp pTransactionTimeStamp )
678 - {
573 + protected void setTransactionTimestamp( Story pPersistentObject, java.sql.Timestamp pTransactionTimeStamp ) {
679 574 pPersistentObject.LLsetLastModified( TypeConverter.to_SimpleTimestamp( pTransactionTimeStamp ) );
680 575 }
681 576 }