|
@@ -178,6 +178,34 @@ |
178 |
178 |
|
} |
179 |
179 |
|
} |
180 |
180 |
|
|
|
181 |
+ |
public static final AttributeAccessorSCD CD_Changes = new AttributeAccessor_Changes(); |
|
182 |
+ |
|
|
183 |
+ |
abstract public String getChanges(); |
|
184 |
+ |
|
|
185 |
+ |
abstract protected void LLclearChanges(); |
|
186 |
+ |
|
|
187 |
+ |
private static class AttributeAccessor_Changes |
|
188 |
+ |
extends AttributeAccessorSCDsimpleVirtualReadOnly<Story> |
|
189 |
+ |
{ |
|
190 |
+ |
public AttributeAccessor_Changes() |
|
191 |
+ |
{ |
|
192 |
+ |
super( "Changes", false, _Text.RO().with( DisplayWidthInitial.of( 40 ), // |
|
193 |
+ |
DisplayHeightInitial.of( 4 ) ) ); |
|
194 |
+ |
} |
|
195 |
+ |
|
|
196 |
+ |
@Override |
|
197 |
+ |
public Object getValueOnPO( Story pPO ) |
|
198 |
+ |
{ |
|
199 |
+ |
return pPO.getChanges(); |
|
200 |
+ |
} |
|
201 |
+ |
|
|
202 |
+ |
@Override |
|
203 |
+ |
protected void LL_clearVirtualValueOnPO( Story pPO ) |
|
204 |
+ |
{ |
|
205 |
+ |
pPO.LLclearChanges(); |
|
206 |
+ |
} |
|
207 |
+ |
} |
|
208 |
+ |
|
181 |
209 |
|
public static final AttributeAccessorSCDtoOneRegular<Story,User> CD_Creator = new AttributeAccessor_Creator(); |
182 |
210 |
|
|
183 |
211 |
|
protected org.litesoft.orsup.lazyload.LazyLoadToOneRegular<Story,User> mCreator = // |
|
@@ -305,70 +333,6 @@ |
305 |
333 |
|
} |
306 |
334 |
|
} |
307 |
335 |
|
|
308 |
|
- |
public static final AttributeAccessorSCD CD_LastChanged = new AttributeAccessor_LastChanged(); |
309 |
|
- |
|
310 |
|
- |
/** |
311 |
|
- |
* String form of Min resolution of LastUpdate.Created |
312 |
|
- |
*/ |
313 |
|
- |
abstract public String getLastChanged(); |
314 |
|
- |
|
315 |
|
- |
abstract protected void LLclearLastChanged(); |
316 |
|
- |
|
317 |
|
- |
private static class AttributeAccessor_LastChanged |
318 |
|
- |
extends AttributeAccessorSCDsimpleVirtualReadOnly<Story> |
319 |
|
- |
{ |
320 |
|
- |
public AttributeAccessor_LastChanged() |
321 |
|
- |
{ |
322 |
|
- |
super( "LastChanged", false, _String.RO().with( MaxLength.of( 16 ), // |
323 |
|
- |
DisplayLength.of( 16 ) ) ); |
324 |
|
- |
} |
325 |
|
- |
|
326 |
|
- |
@Override |
327 |
|
- |
public Object getValueOnPO( Story pPO ) |
328 |
|
- |
{ |
329 |
|
- |
return pPO.getLastChanged(); |
330 |
|
- |
} |
331 |
|
- |
|
332 |
|
- |
@Override |
333 |
|
- |
protected void LL_clearVirtualValueOnPO( Story pPO ) |
334 |
|
- |
{ |
335 |
|
- |
pPO.LLclearLastChanged(); |
336 |
|
- |
} |
337 |
|
- |
} |
338 |
|
- |
|
339 |
|
- |
public static final AttributeAccessorSCDtoOneVirtual<Story,StoryUpdate> CD_LastUpdate = new AttributeAccessor_LastUpdate(); |
340 |
|
- |
|
341 |
|
- |
abstract public StoryUpdate getLastUpdate(); |
342 |
|
- |
|
343 |
|
- |
abstract protected void LLclearLastUpdate(); |
344 |
|
- |
|
345 |
|
- |
private static class AttributeAccessor_LastUpdate |
346 |
|
- |
extends AttributeAccessorSCDtoOneVirtual<Story,StoryUpdate> |
347 |
|
- |
{ |
348 |
|
- |
public AttributeAccessor_LastUpdate() |
349 |
|
- |
{ |
350 |
|
- |
super( "LastUpdate", StoryUpdate.class, false, Mutability.RO ); |
351 |
|
- |
} |
352 |
|
- |
|
353 |
|
- |
@Override |
354 |
|
- |
public Object getValueOnPO( Story pPO ) |
355 |
|
- |
{ |
356 |
|
- |
return pPO.getLastUpdate(); |
357 |
|
- |
} |
358 |
|
- |
|
359 |
|
- |
@Override |
360 |
|
- |
public void setValueOnPO( Story pPO, Object pValue ) |
361 |
|
- |
{ |
362 |
|
- |
throw new UnsupportedOperationException( "'LastUpdate' is Read Only" ); |
363 |
|
- |
} |
364 |
|
- |
|
365 |
|
- |
@Override |
366 |
|
- |
protected void LL_clearVirtualValueOnPO( Story pPO ) |
367 |
|
- |
{ |
368 |
|
- |
pPO.LLclearLastUpdate(); |
369 |
|
- |
} |
370 |
|
- |
} |
371 |
|
- |
|
372 |
336 |
|
public static final AttributeAccessorSCD CD_Name = new AttributeAccessor_Name(); |
373 |
337 |
|
|
374 |
338 |
|
private String mName; |
|
@@ -451,6 +415,43 @@ |
451 |
415 |
|
} |
452 |
416 |
|
} |
453 |
417 |
|
|
|
418 |
+ |
public static final AttributeAccessorSCD CD_PriorityLastChangedBy = new AttributeAccessor_PriorityLastChangedBy(); |
|
419 |
+ |
|
|
420 |
+ |
private String mPriorityLastChangedBy; |
|
421 |
+ |
|
|
422 |
+ |
public String getPriorityLastChangedBy() |
|
423 |
+ |
{ |
|
424 |
+ |
return mPriorityLastChangedBy; |
|
425 |
+ |
} |
|
426 |
+ |
|
|
427 |
+ |
public void setPriorityLastChangedBy( String pPriorityLastChangedBy ) |
|
428 |
+ |
{ |
|
429 |
+ |
verifyMutability( CD_PriorityLastChangedBy, mPriorityLastChangedBy, pPriorityLastChangedBy ); |
|
430 |
+ |
mPriorityLastChangedBy = pPriorityLastChangedBy; |
|
431 |
+ |
} |
|
432 |
+ |
|
|
433 |
+ |
private static class AttributeAccessor_PriorityLastChangedBy |
|
434 |
+ |
extends AttributeAccessorSCDsimplePersistedRegular<Story> |
|
435 |
+ |
{ |
|
436 |
+ |
public AttributeAccessor_PriorityLastChangedBy() |
|
437 |
+ |
{ |
|
438 |
+ |
super( "PriorityLastChangedBy", "PriorityLastChangedBy", false, _String.with( MaxLength.of( 40 ), // |
|
439 |
+ |
DisplayLength.of( 20 ) ) ); |
|
440 |
+ |
} |
|
441 |
+ |
|
|
442 |
+ |
@Override |
|
443 |
+ |
public Object getValueOnPO( Story pPO ) |
|
444 |
+ |
{ |
|
445 |
+ |
return pPO.getPriorityLastChangedBy(); |
|
446 |
+ |
} |
|
447 |
+ |
|
|
448 |
+ |
@Override |
|
449 |
+ |
public void setValueOnPO( Story pPO, Object pValue ) |
|
450 |
+ |
{ |
|
451 |
+ |
pPO.setPriorityLastChangedBy( to_String( pValue ) ); |
|
452 |
+ |
} |
|
453 |
+ |
} |
|
454 |
+ |
|
454 |
455 |
|
public static final AttributeAccessorSCDtoOneRegular<Story,RestrictedResource> CD_RestrictedResource = new AttributeAccessor_RestrictedResource(); |
455 |
456 |
|
|
456 |
457 |
|
protected org.litesoft.orsup.lazyload.LazyLoadToOneRegular<Story,RestrictedResource> mRestrictedResource = // |
|
@@ -579,32 +580,30 @@ |
579 |
580 |
|
{ |
580 |
581 |
|
super( OBJECT_NAME, TABLE_NAME, new AttributeAccessorKeySet( CD_ID ), // |
581 |
582 |
|
|
582 |
|
- |
CD_RecordVersion, /* ....... */ |
|
583 |
+ |
CD_RecordVersion, /* .......... */ |
583 |
584 |
|
|
584 |
|
- |
CD_ID, /* .................. */ |
|
585 |
+ |
CD_ID, /* ..................... */ |
585 |
586 |
|
|
586 |
587 |
|
// Injected |
587 |
|
- |
CD_Created, /* ............. Required */ |
588 |
|
- |
CD_LastModified, /* ........ Required */ |
|
588 |
+ |
CD_Created, /* ................ Required */ |
|
589 |
+ |
CD_LastModified, /* ........... Required */ |
589 |
590 |
|
|
590 |
591 |
|
// Regular |
591 |
|
- |
CD_Description, /* ......... */ |
592 |
|
- |
CD_IsDone, /* .............. */ |
593 |
|
- |
CD_Name, /* ................ Required */ |
594 |
|
- |
CD_Priority, /* ............ Required */ |
|
592 |
+ |
CD_Description, /* ............ */ |
|
593 |
+ |
CD_IsDone, /* ................. */ |
|
594 |
+ |
CD_Name, /* ................... Required */ |
|
595 |
+ |
CD_Priority, /* ............... Required */ |
|
596 |
+ |
CD_PriorityLastChangedBy, /* .. */ |
595 |
597 |
|
|
596 |
598 |
|
// Virtual |
597 |
|
- |
CD_LastChanged, /* ......... */ |
|
599 |
+ |
CD_Changes, /* ................ */ |
598 |
600 |
|
|
599 |
601 |
|
// ToOne |
600 |
|
- |
CD_Creator, /* ............. Required */ |
601 |
|
- |
CD_RestrictedResource, /* .. */ |
602 |
|
- |
|
603 |
|
- |
// ToOne Virtual |
604 |
|
- |
CD_LastUpdate, /* .......... */ |
|
602 |
+ |
CD_Creator, /* ................ Required */ |
|
603 |
+ |
CD_RestrictedResource, /* ..... */ |
605 |
604 |
|
|
606 |
605 |
|
// ToMany |
607 |
|
- |
CD_Updates /* .............. */ ); |
|
606 |
+ |
CD_Updates /* ................. */ ); |
608 |
607 |
|
setIndexes( new Index( "Story21AIDX2", null, false, CD_RestrictedResource ), // |
609 |
608 |
|
new Index( "Story21AIDX1", null, false, CD_Creator ), // |
610 |
609 |
|
new Index( "StoryMUGIDX1", null, true, CD_Name, CD_RestrictedResource ) ); |