|
@@ -11,8 +11,7 @@ |
11 |
11 |
|
|
12 |
12 |
|
public abstract class StoryTemplateGO |
13 |
13 |
|
extends org.litesoft.orsup.nonpublic.PersistentObjectImpl<StoryTemplate> |
14 |
|
- |
implements HasAttributes |
15 |
|
- |
{ |
|
14 |
+ |
implements HasAttributes { |
16 |
15 |
|
public static final String[] sValidOptionsRecurrenceReminder = // |
17 |
16 |
|
{ // |
18 |
17 |
|
StoryTemplateNames.poRecurrenceReminder_Don_t_Remind, // |
|
@@ -37,21 +36,18 @@ |
37 |
36 |
|
|
38 |
37 |
|
private static final ConstructionControl CONSTRUCTION_CONTROL = new ConstructionControl(); |
39 |
38 |
|
|
40 |
|
- |
public static SimpleFromIdentifier from() |
41 |
|
- |
{ |
|
39 |
+ |
public static SimpleFromIdentifier from() { |
42 |
40 |
|
return StoryTemplateMetaData.INSTANCE; |
43 |
41 |
|
} |
44 |
42 |
|
|
45 |
|
- |
protected StoryTemplateGO( Transaction pTransaction ) |
46 |
|
- |
{ |
|
43 |
+ |
protected StoryTemplateGO( Transaction pTransaction ) { |
47 |
44 |
|
super( StoryTemplateMetaData.INSTANCE, pTransaction ); |
48 |
45 |
|
mID = getNextSequenceNumber( getClass() ); |
49 |
46 |
|
registerWithTransaction(); |
50 |
47 |
|
setDefaults(); |
51 |
48 |
|
} |
52 |
49 |
|
|
53 |
|
- |
protected StoryTemplateGO( ConstructionControl pConstructionControl ) |
54 |
|
- |
{ |
|
50 |
+ |
protected StoryTemplateGO( ConstructionControl pConstructionControl ) { |
55 |
51 |
|
super( StoryTemplateMetaData.INSTANCE, CONSTRUCTION_CONTROL, pConstructionControl ); |
56 |
52 |
|
} |
57 |
53 |
|
|
|
@@ -59,22 +55,18 @@ |
59 |
55 |
|
|
60 |
56 |
|
protected final RecordVersionHelper mRecordVersion = new RecordVersionHelper(); |
61 |
57 |
|
|
62 |
|
- |
public Long getRecordVersion() |
63 |
|
- |
{ |
|
58 |
+ |
public Long getRecordVersion() { |
64 |
59 |
|
return mRecordVersion.getRecordVersion(); |
65 |
60 |
|
} |
66 |
61 |
|
|
67 |
62 |
|
private static class AttributeAccessor_RecordVersion |
68 |
|
- |
extends AttributeAccessorSCD_RecordVersion<StoryTemplate> |
69 |
|
- |
{ |
70 |
|
- |
public AttributeAccessor_RecordVersion() |
71 |
|
- |
{ |
|
63 |
+ |
extends AttributeAccessorSCD_RecordVersion<StoryTemplate> { |
|
64 |
+ |
public AttributeAccessor_RecordVersion() { |
72 |
65 |
|
super( "RecordVersion", "RecordVersion" ); |
73 |
66 |
|
} |
74 |
67 |
|
|
75 |
68 |
|
@Override |
76 |
|
- |
protected RecordVersionHelper getRecordVersionHelper( StoryTemplate pPO ) |
77 |
|
- |
{ |
|
69 |
+ |
protected RecordVersionHelper getRecordVersionHelper( StoryTemplate pPO ) { |
78 |
70 |
|
return pPO.mRecordVersion; |
79 |
71 |
|
} |
80 |
72 |
|
} |
|
@@ -83,35 +75,29 @@ |
83 |
75 |
|
|
84 |
76 |
|
private Long mID; |
85 |
77 |
|
|
86 |
|
- |
public Long getID() |
87 |
|
- |
{ |
|
78 |
+ |
public Long getID() { |
88 |
79 |
|
return mID; |
89 |
80 |
|
} |
90 |
81 |
|
|
91 |
|
- |
protected void LLsetID( Long pID ) |
92 |
|
- |
{ |
|
82 |
+ |
protected void LLsetID( Long pID ) { |
93 |
83 |
|
verifyMutability( CD_ID, mID, pID ); |
94 |
84 |
|
mID = pID; |
95 |
85 |
|
} |
96 |
86 |
|
|
97 |
87 |
|
private static class AttributeAccessor_ID |
98 |
88 |
|
extends AttributeAccessorSCDsimplePersistedSysSetOnly<StoryTemplate> |
99 |
|
- |
implements NonImportableFeature |
100 |
|
- |
{ |
101 |
|
- |
public AttributeAccessor_ID() |
102 |
|
- |
{ |
|
89 |
+ |
implements NonImportableFeature { |
|
90 |
+ |
public AttributeAccessor_ID() { |
103 |
91 |
|
super( "ID", "ID", false, _Long.AddOnly() ); |
104 |
92 |
|
} |
105 |
93 |
|
|
106 |
94 |
|
@Override |
107 |
|
- |
public Object getValueOnPO( StoryTemplate pPO ) |
108 |
|
- |
{ |
|
95 |
+ |
public Object getValueOnPO( StoryTemplate pPO ) { |
109 |
96 |
|
return pPO.getID(); |
110 |
97 |
|
} |
111 |
98 |
|
|
112 |
99 |
|
@Override |
113 |
|
- |
public void db_setValueOnPO( StoryTemplate pPO, Object pValue ) |
114 |
|
- |
{ |
|
100 |
+ |
public void db_setValueOnPO( StoryTemplate pPO, Object pValue ) { |
115 |
101 |
|
pPO.LLsetID( to_Long( pValue ) ); |
116 |
102 |
|
} |
117 |
103 |
|
} |
|
@@ -120,35 +106,29 @@ |
120 |
106 |
|
|
121 |
107 |
|
private String mDescripiton; |
122 |
108 |
|
|
123 |
|
- |
public String getDescripiton() |
124 |
|
- |
{ |
|
109 |
+ |
public String getDescripiton() { |
125 |
110 |
|
return mDescripiton; |
126 |
111 |
|
} |
127 |
112 |
|
|
128 |
|
- |
public void setDescripiton( String pDescripiton ) |
129 |
|
- |
{ |
|
113 |
+ |
public void setDescripiton( String pDescripiton ) { |
130 |
114 |
|
verifyMutability( CD_Descripiton, mDescripiton, pDescripiton ); |
131 |
115 |
|
mDescripiton = pDescripiton; |
132 |
116 |
|
} |
133 |
117 |
|
|
134 |
118 |
|
private static class AttributeAccessor_Descripiton |
135 |
|
- |
extends AttributeAccessorSCDsimplePersistedRegular<StoryTemplate> |
136 |
|
- |
{ |
137 |
|
- |
public AttributeAccessor_Descripiton() |
138 |
|
- |
{ |
|
119 |
+ |
extends AttributeAccessorSCDsimplePersistedRegular<StoryTemplate> { |
|
120 |
+ |
public AttributeAccessor_Descripiton() { |
139 |
121 |
|
super( "Descripiton", "Descripiton", false, _Text.with( DisplayWidthInitial.of( 40 ), // |
140 |
122 |
|
DisplayHeightInitial.of( 4 ) ) ); |
141 |
123 |
|
} |
142 |
124 |
|
|
143 |
125 |
|
@Override |
144 |
|
- |
public Object getValueOnPO( StoryTemplate pPO ) |
145 |
|
- |
{ |
|
126 |
+ |
public Object getValueOnPO( StoryTemplate pPO ) { |
146 |
127 |
|
return pPO.getDescripiton(); |
147 |
128 |
|
} |
148 |
129 |
|
|
149 |
130 |
|
@Override |
150 |
|
- |
public void setValueOnPO( StoryTemplate pPO, Object pValue ) |
151 |
|
- |
{ |
|
131 |
+ |
public void setValueOnPO( StoryTemplate pPO, Object pValue ) { |
152 |
132 |
|
pPO.setDescripiton( to_String( pValue ) ); |
153 |
133 |
|
} |
154 |
134 |
|
} |
|
@@ -160,35 +140,29 @@ |
160 |
140 |
|
/** |
161 |
141 |
|
* UniqueGroup:1 |
162 |
142 |
|
*/ |
163 |
|
- |
public String getName() |
164 |
|
- |
{ |
|
143 |
+ |
public String getName() { |
165 |
144 |
|
return mName; |
166 |
145 |
|
} |
167 |
146 |
|
|
168 |
|
- |
public void setName( String pName ) |
169 |
|
- |
{ |
|
147 |
+ |
public void setName( String pName ) { |
170 |
148 |
|
verifyMutability( CD_Name, mName, pName ); |
171 |
149 |
|
mName = pName; |
172 |
150 |
|
} |
173 |
151 |
|
|
174 |
152 |
|
private static class AttributeAccessor_Name |
175 |
|
- |
extends AttributeAccessorSCDsimplePersistedRegular<StoryTemplate> |
176 |
|
- |
{ |
177 |
|
- |
public AttributeAccessor_Name() |
178 |
|
- |
{ |
|
153 |
+ |
extends AttributeAccessorSCDsimplePersistedRegular<StoryTemplate> { |
|
154 |
+ |
public AttributeAccessor_Name() { |
179 |
155 |
|
super( "Name", "Name", false, _String.with( MaxLength.of( 40 ), // |
180 |
156 |
|
DisplayLength.of( 20 ) ) ); |
181 |
157 |
|
} |
182 |
158 |
|
|
183 |
159 |
|
@Override |
184 |
|
- |
public Object getValueOnPO( StoryTemplate pPO ) |
185 |
|
- |
{ |
|
160 |
+ |
public Object getValueOnPO( StoryTemplate pPO ) { |
186 |
161 |
|
return pPO.getName(); |
187 |
162 |
|
} |
188 |
163 |
|
|
189 |
164 |
|
@Override |
190 |
|
- |
public void setValueOnPO( StoryTemplate pPO, Object pValue ) |
191 |
|
- |
{ |
|
165 |
+ |
public void setValueOnPO( StoryTemplate pPO, Object pValue ) { |
192 |
166 |
|
pPO.setName( to_String( pValue ) ); |
193 |
167 |
|
} |
194 |
168 |
|
} |
|
@@ -200,46 +174,38 @@ |
200 |
174 |
|
/** |
201 |
175 |
|
* Used in case of Daily, Monthly, and Yearly |
202 |
176 |
|
*/ |
203 |
|
- |
public CalendarYMD getNextRecurranceDate() |
204 |
|
- |
{ |
|
177 |
+ |
public CalendarYMD getNextRecurranceDate() { |
205 |
178 |
|
return mNextRecurranceDate.getCalendarYMD(); |
206 |
179 |
|
} |
207 |
180 |
|
|
208 |
|
- |
public void setNextRecurranceDate( CalendarYMD pNextRecurranceDate ) |
209 |
|
- |
{ |
|
181 |
+ |
public void setNextRecurranceDate( CalendarYMD pNextRecurranceDate ) { |
210 |
182 |
|
verifyMutability( CD_NextRecurranceDate, mNextRecurranceDate.getCalendarYMD(), pNextRecurranceDate ); |
211 |
183 |
|
mNextRecurranceDate.setCalendarYMD( pNextRecurranceDate ); |
212 |
184 |
|
} |
213 |
185 |
|
|
214 |
186 |
|
private static class AttributeAccessor_NextRecurranceDate |
215 |
|
- |
extends AttributeAccessorSCDsimplePersistedRegular<StoryTemplate> |
216 |
|
- |
{ |
217 |
|
- |
public AttributeAccessor_NextRecurranceDate() |
218 |
|
- |
{ |
|
187 |
+ |
extends AttributeAccessorSCDsimplePersistedRegular<StoryTemplate> { |
|
188 |
+ |
public AttributeAccessor_NextRecurranceDate() { |
219 |
189 |
|
super( "NextRecurranceDate", "NextRecurranceDate", false, _CalendarYMD ); |
220 |
190 |
|
} |
221 |
191 |
|
|
222 |
192 |
|
@Override |
223 |
|
- |
public Object getValueOnPO( StoryTemplate pPO ) |
224 |
|
- |
{ |
|
193 |
+ |
public Object getValueOnPO( StoryTemplate pPO ) { |
225 |
194 |
|
return pPO.getNextRecurranceDate(); |
226 |
195 |
|
} |
227 |
196 |
|
|
228 |
197 |
|
@Override |
229 |
|
- |
public void setValueOnPO( StoryTemplate pPO, Object pValue ) |
230 |
|
- |
{ |
|
198 |
+ |
public void setValueOnPO( StoryTemplate pPO, Object pValue ) { |
231 |
199 |
|
pPO.setNextRecurranceDate( to_CalendarYMD( pValue ) ); |
232 |
200 |
|
} |
233 |
201 |
|
|
234 |
202 |
|
@Override |
235 |
|
- |
public Object db_getValueOnPO( StoryTemplate pPO ) |
236 |
|
- |
{ |
|
203 |
+ |
public Object db_getValueOnPO( StoryTemplate pPO ) { |
237 |
204 |
|
return pPO.mNextRecurranceDate.getPersistForm(); |
238 |
205 |
|
} |
239 |
206 |
|
|
240 |
207 |
|
@Override |
241 |
|
- |
public void db_setValueOnPO( StoryTemplate pPO, Object pValue ) |
242 |
|
- |
{ |
|
208 |
+ |
public void db_setValueOnPO( StoryTemplate pPO, Object pValue ) { |
243 |
209 |
|
pPO.mNextRecurranceDate.setPersistForm( to_String( pValue ) ); |
244 |
210 |
|
} |
245 |
211 |
|
} |
|
@@ -251,34 +217,28 @@ |
251 |
217 |
|
/** |
252 |
218 |
|
* Allow insertion of priorities in between |
253 |
219 |
|
*/ |
254 |
|
- |
public Float getPriority() |
255 |
|
- |
{ |
|
220 |
+ |
public Float getPriority() { |
256 |
221 |
|
return mPriority; |
257 |
222 |
|
} |
258 |
223 |
|
|
259 |
|
- |
public void setPriority( Float pPriority ) |
260 |
|
- |
{ |
|
224 |
+ |
public void setPriority( Float pPriority ) { |
261 |
225 |
|
verifyMutability( CD_Priority, mPriority, pPriority ); |
262 |
226 |
|
mPriority = pPriority; |
263 |
227 |
|
} |
264 |
228 |
|
|
265 |
229 |
|
private static class AttributeAccessor_Priority |
266 |
|
- |
extends AttributeAccessorSCDsimplePersistedRegular<StoryTemplate> |
267 |
|
- |
{ |
268 |
|
- |
public AttributeAccessor_Priority() |
269 |
|
- |
{ |
|
230 |
+ |
extends AttributeAccessorSCDsimplePersistedRegular<StoryTemplate> { |
|
231 |
+ |
public AttributeAccessor_Priority() { |
270 |
232 |
|
super( "Priority", "Priority", false, _Float.with( DisplayLength.of( 9 ) ) ); |
271 |
233 |
|
} |
272 |
234 |
|
|
273 |
235 |
|
@Override |
274 |
|
- |
public Object getValueOnPO( StoryTemplate pPO ) |
275 |
|
- |
{ |
|
236 |
+ |
public Object getValueOnPO( StoryTemplate pPO ) { |
276 |
237 |
|
return pPO.getPriority(); |
277 |
238 |
|
} |
278 |
239 |
|
|
279 |
240 |
|
@Override |
280 |
|
- |
public void setValueOnPO( StoryTemplate pPO, Object pValue ) |
281 |
|
- |
{ |
|
241 |
+ |
public void setValueOnPO( StoryTemplate pPO, Object pValue ) { |
282 |
242 |
|
pPO.setPriority( to_Float( pValue ) ); |
283 |
243 |
|
} |
284 |
244 |
|
} |
|
@@ -287,34 +247,28 @@ |
287 |
247 |
|
|
288 |
248 |
|
private String mRecurrenceReminder; |
289 |
249 |
|
|
290 |
|
- |
public String getRecurrenceReminder() |
291 |
|
- |
{ |
|
250 |
+ |
public String getRecurrenceReminder() { |
292 |
251 |
|
return mRecurrenceReminder; |
293 |
252 |
|
} |
294 |
253 |
|
|
295 |
|
- |
public void setRecurrenceReminder( String pRecurrenceReminder ) |
296 |
|
- |
{ |
|
254 |
+ |
public void setRecurrenceReminder( String pRecurrenceReminder ) { |
297 |
255 |
|
verifyMutability( CD_RecurrenceReminder, mRecurrenceReminder, pRecurrenceReminder ); |
298 |
256 |
|
mRecurrenceReminder = pRecurrenceReminder; |
299 |
257 |
|
} |
300 |
258 |
|
|
301 |
259 |
|
private static class AttributeAccessor_RecurrenceReminder |
302 |
|
- |
extends AttributeAccessorSCDsimplePersistedRegular<StoryTemplate> |
303 |
|
- |
{ |
304 |
|
- |
public AttributeAccessor_RecurrenceReminder() |
305 |
|
- |
{ |
|
260 |
+ |
extends AttributeAccessorSCDsimplePersistedRegular<StoryTemplate> { |
|
261 |
+ |
public AttributeAccessor_RecurrenceReminder() { |
306 |
262 |
|
super( "RecurrenceReminder", "RecurrenceReminder", false, _ValidOptions.with( Options.of( sValidOptionsRecurrenceReminder ) ) ); |
307 |
263 |
|
} |
308 |
264 |
|
|
309 |
265 |
|
@Override |
310 |
|
- |
public Object getValueOnPO( StoryTemplate pPO ) |
311 |
|
- |
{ |
|
266 |
+ |
public Object getValueOnPO( StoryTemplate pPO ) { |
312 |
267 |
|
return pPO.getRecurrenceReminder(); |
313 |
268 |
|
} |
314 |
269 |
|
|
315 |
270 |
|
@Override |
316 |
|
- |
public void setValueOnPO( StoryTemplate pPO, Object pValue ) |
317 |
|
- |
{ |
|
271 |
+ |
public void setValueOnPO( StoryTemplate pPO, Object pValue ) { |
318 |
272 |
|
pPO.setRecurrenceReminder( to_String( pValue ) ); |
319 |
273 |
|
} |
320 |
274 |
|
} |
|
@@ -323,35 +277,29 @@ |
323 |
277 |
|
|
324 |
278 |
|
private String mResonsibleParty; |
325 |
279 |
|
|
326 |
|
- |
public String getResonsibleParty() |
327 |
|
- |
{ |
|
280 |
+ |
public String getResonsibleParty() { |
328 |
281 |
|
return mResonsibleParty; |
329 |
282 |
|
} |
330 |
283 |
|
|
331 |
|
- |
public void setResonsibleParty( String pResonsibleParty ) |
332 |
|
- |
{ |
|
284 |
+ |
public void setResonsibleParty( String pResonsibleParty ) { |
333 |
285 |
|
verifyMutability( CD_ResonsibleParty, mResonsibleParty, pResonsibleParty ); |
334 |
286 |
|
mResonsibleParty = pResonsibleParty; |
335 |
287 |
|
} |
336 |
288 |
|
|
337 |
289 |
|
private static class AttributeAccessor_ResonsibleParty |
338 |
|
- |
extends AttributeAccessorSCDsimplePersistedRegular<StoryTemplate> |
339 |
|
- |
{ |
340 |
|
- |
public AttributeAccessor_ResonsibleParty() |
341 |
|
- |
{ |
|
290 |
+ |
extends AttributeAccessorSCDsimplePersistedRegular<StoryTemplate> { |
|
291 |
+ |
public AttributeAccessor_ResonsibleParty() { |
342 |
292 |
|
super( "ResonsibleParty", "ResonsibleParty", false, _String.with( MaxLength.of( 40 ), // |
343 |
293 |
|
DisplayLength.of( 20 ) ) ); |
344 |
294 |
|
} |
345 |
295 |
|
|
346 |
296 |
|
@Override |
347 |
|
- |
public Object getValueOnPO( StoryTemplate pPO ) |
348 |
|
- |
{ |
|
297 |
+ |
public Object getValueOnPO( StoryTemplate pPO ) { |
349 |
298 |
|
return pPO.getResonsibleParty(); |
350 |
299 |
|
} |
351 |
300 |
|
|
352 |
301 |
|
@Override |
353 |
|
- |
public void setValueOnPO( StoryTemplate pPO, Object pValue ) |
354 |
|
- |
{ |
|
302 |
+ |
public void setValueOnPO( StoryTemplate pPO, Object pValue ) { |
355 |
303 |
|
pPO.setResonsibleParty( to_String( pValue ) ); |
356 |
304 |
|
} |
357 |
305 |
|
} |
|
@@ -360,34 +308,28 @@ |
360 |
308 |
|
|
361 |
309 |
|
private String mSchedulePeriod; |
362 |
310 |
|
|
363 |
|
- |
public String getSchedulePeriod() |
364 |
|
- |
{ |
|
311 |
+ |
public String getSchedulePeriod() { |
365 |
312 |
|
return mSchedulePeriod; |
366 |
313 |
|
} |
367 |
314 |
|
|
368 |
|
- |
public void setSchedulePeriod( String pSchedulePeriod ) |
369 |
|
- |
{ |
|
315 |
+ |
public void setSchedulePeriod( String pSchedulePeriod ) { |
370 |
316 |
|
verifyMutability( CD_SchedulePeriod, mSchedulePeriod, pSchedulePeriod ); |
371 |
317 |
|
mSchedulePeriod = pSchedulePeriod; |
372 |
318 |
|
} |
373 |
319 |
|
|
374 |
320 |
|
private static class AttributeAccessor_SchedulePeriod |
375 |
|
- |
extends AttributeAccessorSCDsimplePersistedRegular<StoryTemplate> |
376 |
|
- |
{ |
377 |
|
- |
public AttributeAccessor_SchedulePeriod() |
378 |
|
- |
{ |
|
321 |
+ |
extends AttributeAccessorSCDsimplePersistedRegular<StoryTemplate> { |
|
322 |
+ |
public AttributeAccessor_SchedulePeriod() { |
379 |
323 |
|
super( "SchedulePeriod", "SchedulePeriod", false, _OpenValidOptions.with( Options.of( sValidOptionsSchedulePeriod ) ) ); |
380 |
324 |
|
} |
381 |
325 |
|
|
382 |
326 |
|
@Override |
383 |
|
- |
public Object getValueOnPO( StoryTemplate pPO ) |
384 |
|
- |
{ |
|
327 |
+ |
public Object getValueOnPO( StoryTemplate pPO ) { |
385 |
328 |
|
return pPO.getSchedulePeriod(); |
386 |
329 |
|
} |
387 |
330 |
|
|
388 |
331 |
|
@Override |
389 |
|
- |
public void setValueOnPO( StoryTemplate pPO, Object pValue ) |
390 |
|
- |
{ |
|
332 |
+ |
public void setValueOnPO( StoryTemplate pPO, Object pValue ) { |
391 |
333 |
|
pPO.setSchedulePeriod( to_String( pValue ) ); |
392 |
334 |
|
} |
393 |
335 |
|
} |
|
@@ -396,34 +338,28 @@ |
396 |
338 |
|
|
397 |
339 |
|
private Integer mTaskDueDateFromTaskCreation; |
398 |
340 |
|
|
399 |
|
- |
public Integer getTaskDueDateFromTaskCreation() |
400 |
|
- |
{ |
|
341 |
+ |
public Integer getTaskDueDateFromTaskCreation() { |
401 |
342 |
|
return mTaskDueDateFromTaskCreation; |
402 |
343 |
|
} |
403 |
344 |
|
|
404 |
|
- |
public void setTaskDueDateFromTaskCreation( Integer pTaskDueDateFromTaskCreation ) |
405 |
|
- |
{ |
|
345 |
+ |
public void setTaskDueDateFromTaskCreation( Integer pTaskDueDateFromTaskCreation ) { |
406 |
346 |
|
verifyMutability( CD_TaskDueDateFromTaskCreation, mTaskDueDateFromTaskCreation, pTaskDueDateFromTaskCreation ); |
407 |
347 |
|
mTaskDueDateFromTaskCreation = pTaskDueDateFromTaskCreation; |
408 |
348 |
|
} |
409 |
349 |
|
|
410 |
350 |
|
private static class AttributeAccessor_TaskDueDateFromTaskCreation |
411 |
|
- |
extends AttributeAccessorSCDsimplePersistedRegular<StoryTemplate> |
412 |
|
- |
{ |
413 |
|
- |
public AttributeAccessor_TaskDueDateFromTaskCreation() |
414 |
|
- |
{ |
|
351 |
+ |
extends AttributeAccessorSCDsimplePersistedRegular<StoryTemplate> { |
|
352 |
+ |
public AttributeAccessor_TaskDueDateFromTaskCreation() { |
415 |
353 |
|
super( "TaskDueDateFromTaskCreation", "TaskDueDateFromTaskCreation", false, _Integer.with( DisplayLength.of( 10 ) ) ); |
416 |
354 |
|
} |
417 |
355 |
|
|
418 |
356 |
|
@Override |
419 |
|
- |
public Object getValueOnPO( StoryTemplate pPO ) |
420 |
|
- |
{ |
|
357 |
+ |
public Object getValueOnPO( StoryTemplate pPO ) { |
421 |
358 |
|
return pPO.getTaskDueDateFromTaskCreation(); |
422 |
359 |
|
} |
423 |
360 |
|
|
424 |
361 |
|
@Override |
425 |
|
- |
public void setValueOnPO( StoryTemplate pPO, Object pValue ) |
426 |
|
- |
{ |
|
362 |
+ |
public void setValueOnPO( StoryTemplate pPO, Object pValue ) { |
427 |
363 |
|
pPO.setTaskDueDateFromTaskCreation( to_Integer( pValue ) ); |
428 |
364 |
|
} |
429 |
365 |
|
} |
|
@@ -432,174 +368,144 @@ |
432 |
368 |
|
|
433 |
369 |
|
private String mTaskType; |
434 |
370 |
|
|
435 |
|
- |
public String getTaskType() |
436 |
|
- |
{ |
|
371 |
+ |
public String getTaskType() { |
437 |
372 |
|
return mTaskType; |
438 |
373 |
|
} |
439 |
374 |
|
|
440 |
|
- |
public void setTaskType( String pTaskType ) |
441 |
|
- |
{ |
|
375 |
+ |
public void setTaskType( String pTaskType ) { |
442 |
376 |
|
verifyMutability( CD_TaskType, mTaskType, pTaskType ); |
443 |
377 |
|
mTaskType = pTaskType; |
444 |
378 |
|
} |
445 |
379 |
|
|
446 |
380 |
|
private static class AttributeAccessor_TaskType |
447 |
|
- |
extends AttributeAccessorSCDsimplePersistedRegular<StoryTemplate> |
448 |
|
- |
{ |
449 |
|
- |
public AttributeAccessor_TaskType() |
450 |
|
- |
{ |
|
381 |
+ |
extends AttributeAccessorSCDsimplePersistedRegular<StoryTemplate> { |
|
382 |
+ |
public AttributeAccessor_TaskType() { |
451 |
383 |
|
super( "TaskType", "TaskType", false, _OpenValidOptions.with( Options.of( sValidOptionsTaskType ) ) ); |
452 |
384 |
|
} |
453 |
385 |
|
|
454 |
386 |
|
@Override |
455 |
|
- |
public Object getValueOnPO( StoryTemplate pPO ) |
456 |
|
- |
{ |
|
387 |
+ |
public Object getValueOnPO( StoryTemplate pPO ) { |
457 |
388 |
|
return pPO.getTaskType(); |
458 |
389 |
|
} |
459 |
390 |
|
|
460 |
391 |
|
@Override |
461 |
|
- |
public void setValueOnPO( StoryTemplate pPO, Object pValue ) |
462 |
|
- |
{ |
|
392 |
+ |
public void setValueOnPO( StoryTemplate pPO, Object pValue ) { |
463 |
393 |
|
pPO.setTaskType( to_String( pValue ) ); |
464 |
394 |
|
} |
465 |
395 |
|
} |
466 |
396 |
|
|
467 |
|
- |
public static final AttributeAccessorSCDtoManyRegular<StoryTemplate,Story> CD_Stories = new AttributeAccessor_Stories(); |
|
397 |
+ |
public static final AttributeAccessorSCDtoManyRegular<StoryTemplate, Story> CD_Stories = new AttributeAccessor_Stories(); |
468 |
398 |
|
|
469 |
|
- |
protected org.litesoft.orsup.lazyload.LazyLoadToManyRegular<StoryTemplate,Story> mStories = // |
470 |
|
- |
new org.litesoft.orsup.lazyload.LazyLoadToManyRegular<StoryTemplate,Story>( (StoryTemplate) this, CD_Stories ); |
|
399 |
+ |
protected org.litesoft.orsup.lazyload.LazyLoadToManyRegular<StoryTemplate, Story> mStories = // |
|
400 |
+ |
new org.litesoft.orsup.lazyload.LazyLoadToManyRegular<StoryTemplate, Story>( (StoryTemplate) this, CD_Stories ); |
471 |
401 |
|
|
472 |
|
- |
public java.util.List<Story> getStories() |
473 |
|
- |
{ |
|
402 |
+ |
public java.util.List<Story> getStories() { |
474 |
403 |
|
return processLazyLoadAccess( mStories ); |
475 |
404 |
|
} |
476 |
405 |
|
|
477 |
|
- |
public void setStories( java.util.List<Story> pStories ) |
478 |
|
- |
{ |
|
406 |
+ |
public void setStories( java.util.List<Story> pStories ) { |
479 |
407 |
|
processLazyLoadMutation( mStories, pStories ); |
480 |
408 |
|
} |
481 |
409 |
|
|
482 |
|
- |
public void addStories( Story pStories ) |
483 |
|
- |
{ |
|
410 |
+ |
public void addStories( Story pStories ) { |
484 |
411 |
|
processLazyLoadMutationAdd( mStories, pStories ); |
485 |
412 |
|
} |
486 |
413 |
|
|
487 |
|
- |
public void removeStories( Story pStories ) |
488 |
|
- |
{ |
|
414 |
+ |
public void removeStories( Story pStories ) { |
489 |
415 |
|
processLazyLoadMutationRemove( mStories, pStories ); |
490 |
416 |
|
} |
491 |
417 |
|
|
492 |
418 |
|
private static class AttributeAccessor_Stories |
493 |
|
- |
extends AttributeAccessorSCDtoManyRegular<StoryTemplate,Story> |
494 |
|
- |
{ |
495 |
|
- |
public AttributeAccessor_Stories() |
496 |
|
- |
{ |
|
419 |
+ |
extends AttributeAccessorSCDtoManyRegular<StoryTemplate, Story> { |
|
420 |
+ |
public AttributeAccessor_Stories() { |
497 |
421 |
|
super( "Stories", "ID", Story.class, "StoryTemplate", null, Mutability.RW, false, false ); |
498 |
422 |
|
} |
499 |
423 |
|
|
500 |
424 |
|
@Override |
501 |
|
- |
public org.litesoft.orsup.lazyload.LazyLoadToManyRegular<StoryTemplate,Story> getValueHolder( StoryTemplate pPO ) |
502 |
|
- |
{ |
|
425 |
+ |
public org.litesoft.orsup.lazyload.LazyLoadToManyRegular<StoryTemplate, Story> getValueHolder( StoryTemplate pPO ) { |
503 |
426 |
|
return pPO.mStories; |
504 |
427 |
|
} |
505 |
428 |
|
|
506 |
429 |
|
@Override |
507 |
|
- |
public Object getValueOnPO( StoryTemplate pPO ) |
508 |
|
- |
{ |
|
430 |
+ |
public Object getValueOnPO( StoryTemplate pPO ) { |
509 |
431 |
|
return pPO.getStories(); |
510 |
432 |
|
} |
511 |
433 |
|
|
512 |
434 |
|
@Override |
513 |
|
- |
public void setValueOnPO( StoryTemplate pPO, Object pValue ) |
514 |
|
- |
{ |
|
435 |
+ |
public void setValueOnPO( StoryTemplate pPO, Object pValue ) { |
515 |
436 |
|
pPO.setStories( to_POs( pPO, Story.class, pValue ) ); |
516 |
437 |
|
} |
517 |
438 |
|
|
518 |
439 |
|
@Override |
519 |
|
- |
public void addValueOnPO( StoryTemplate pPO, Object pValue ) |
520 |
|
- |
{ |
|
440 |
+ |
public void addValueOnPO( StoryTemplate pPO, Object pValue ) { |
521 |
441 |
|
pPO.addStories( to_PO( pPO, Story.class, pValue ) ); |
522 |
442 |
|
} |
523 |
443 |
|
|
524 |
444 |
|
@Override |
525 |
|
- |
public void removeValueOnPO( StoryTemplate pPO, Object pValue ) |
526 |
|
- |
{ |
|
445 |
+ |
public void removeValueOnPO( StoryTemplate pPO, Object pValue ) { |
527 |
446 |
|
pPO.removeStories( to_PO( pPO, Story.class, pValue ) ); |
528 |
447 |
|
} |
529 |
448 |
|
} |
530 |
449 |
|
|
531 |
|
- |
public static final AttributeAccessorSCDtoManyRegular<StoryTemplate,TaskTemplate> CD_TaskTemplates = new AttributeAccessor_TaskTemplates(); |
|
450 |
+ |
public static final AttributeAccessorSCDtoManyRegular<StoryTemplate, TaskTemplate> CD_TaskTemplates = new AttributeAccessor_TaskTemplates(); |
532 |
451 |
|
|
533 |
|
- |
protected org.litesoft.orsup.lazyload.LazyLoadToManyRegular<StoryTemplate,TaskTemplate> mTaskTemplates = // |
534 |
|
- |
new org.litesoft.orsup.lazyload.LazyLoadToManyRegular<StoryTemplate,TaskTemplate>( (StoryTemplate) this, CD_TaskTemplates ); |
|
452 |
+ |
protected org.litesoft.orsup.lazyload.LazyLoadToManyRegular<StoryTemplate, TaskTemplate> mTaskTemplates = // |
|
453 |
+ |
new org.litesoft.orsup.lazyload.LazyLoadToManyRegular<StoryTemplate, TaskTemplate>( (StoryTemplate) this, CD_TaskTemplates ); |
535 |
454 |
|
|
536 |
|
- |
public java.util.List<TaskTemplate> getTaskTemplates() |
537 |
|
- |
{ |
|
455 |
+ |
public java.util.List<TaskTemplate> getTaskTemplates() { |
538 |
456 |
|
return processLazyLoadAccess( mTaskTemplates ); |
539 |
457 |
|
} |
540 |
458 |
|
|
541 |
|
- |
public void setTaskTemplates( java.util.List<TaskTemplate> pTaskTemplates ) |
542 |
|
- |
{ |
|
459 |
+ |
public void setTaskTemplates( java.util.List<TaskTemplate> pTaskTemplates ) { |
543 |
460 |
|
processLazyLoadMutation( mTaskTemplates, pTaskTemplates ); |
544 |
461 |
|
} |
545 |
462 |
|
|
546 |
|
- |
public void addTaskTemplates( TaskTemplate pTaskTemplates ) |
547 |
|
- |
{ |
|
463 |
+ |
public void addTaskTemplates( TaskTemplate pTaskTemplates ) { |
548 |
464 |
|
processLazyLoadMutationAdd( mTaskTemplates, pTaskTemplates ); |
549 |
465 |
|
} |
550 |
466 |
|
|
551 |
|
- |
public void removeTaskTemplates( TaskTemplate pTaskTemplates ) |
552 |
|
- |
{ |
|
467 |
+ |
public void removeTaskTemplates( TaskTemplate pTaskTemplates ) { |
553 |
468 |
|
processLazyLoadMutationRemove( mTaskTemplates, pTaskTemplates ); |
554 |
469 |
|
} |
555 |
470 |
|
|
556 |
471 |
|
private static class AttributeAccessor_TaskTemplates |
557 |
|
- |
extends AttributeAccessorSCDtoManyRegular<StoryTemplate,TaskTemplate> |
558 |
|
- |
{ |
559 |
|
- |
public AttributeAccessor_TaskTemplates() |
560 |
|
- |
{ |
|
472 |
+ |
extends AttributeAccessorSCDtoManyRegular<StoryTemplate, TaskTemplate> { |
|
473 |
+ |
public AttributeAccessor_TaskTemplates() { |
561 |
474 |
|
super( "TaskTemplates", "ID", TaskTemplate.class, "StoryTemplate", null, Mutability.RW, false, false ); |
562 |
475 |
|
} |
563 |
476 |
|
|
564 |
477 |
|
@Override |
565 |
|
- |
public org.litesoft.orsup.lazyload.LazyLoadToManyRegular<StoryTemplate,TaskTemplate> getValueHolder( StoryTemplate pPO ) |
566 |
|
- |
{ |
|
478 |
+ |
public org.litesoft.orsup.lazyload.LazyLoadToManyRegular<StoryTemplate, TaskTemplate> getValueHolder( StoryTemplate pPO ) { |
567 |
479 |
|
return pPO.mTaskTemplates; |
568 |
480 |
|
} |
569 |
481 |
|
|
570 |
482 |
|
@Override |
571 |
|
- |
public Object getValueOnPO( StoryTemplate pPO ) |
572 |
|
- |
{ |
|
483 |
+ |
public Object getValueOnPO( StoryTemplate pPO ) { |
573 |
484 |
|
return pPO.getTaskTemplates(); |
574 |
485 |
|
} |
575 |
486 |
|
|
576 |
487 |
|
@Override |
577 |
|
- |
public void setValueOnPO( StoryTemplate pPO, Object pValue ) |
578 |
|
- |
{ |
|
488 |
+ |
public void setValueOnPO( StoryTemplate pPO, Object pValue ) { |
579 |
489 |
|
pPO.setTaskTemplates( to_POs( pPO, TaskTemplate.class, pValue ) ); |
580 |
490 |
|
} |
581 |
491 |
|
|
582 |
492 |
|
@Override |
583 |
|
- |
public void addValueOnPO( StoryTemplate pPO, Object pValue ) |
584 |
|
- |
{ |
|
493 |
+ |
public void addValueOnPO( StoryTemplate pPO, Object pValue ) { |
585 |
494 |
|
pPO.addTaskTemplates( to_PO( pPO, TaskTemplate.class, pValue ) ); |
586 |
495 |
|
} |
587 |
496 |
|
|
588 |
497 |
|
@Override |
589 |
|
- |
public void removeValueOnPO( StoryTemplate pPO, Object pValue ) |
590 |
|
- |
{ |
|
498 |
+ |
public void removeValueOnPO( StoryTemplate pPO, Object pValue ) { |
591 |
499 |
|
pPO.removeTaskTemplates( to_PO( pPO, TaskTemplate.class, pValue ) ); |
592 |
500 |
|
} |
593 |
501 |
|
} |
594 |
502 |
|
|
595 |
503 |
|
static class MyMetaData |
596 |
|
- |
extends org.litesoft.orsup.nonpublic.PersistentObjectImplMetaData<StoryTemplate> |
597 |
|
- |
{ |
|
504 |
+ |
extends org.litesoft.orsup.nonpublic.PersistentObjectImplMetaData<StoryTemplate> { |
598 |
505 |
|
public static final String OBJECT_NAME = "StoryTemplate"; |
599 |
506 |
|
public static final String TABLE_NAME = "StoryTemplate"; |
600 |
507 |
|
|
601 |
|
- |
MyMetaData() |
602 |
|
- |
{ |
|
508 |
+ |
MyMetaData() { |
603 |
509 |
|
super( OBJECT_NAME, TABLE_NAME, new AttributeAccessorKeySet( CD_ID ), // |
604 |
510 |
|
|
605 |
511 |
|
CD_RecordVersion, /* ................ */ |
|
@@ -623,32 +529,27 @@ |
623 |
529 |
|
} |
624 |
530 |
|
|
625 |
531 |
|
@Override |
626 |
|
- |
public Class getPOclass() |
627 |
|
- |
{ |
|
532 |
+ |
public Class getPOclass() { |
628 |
533 |
|
return StoryTemplate.class; |
629 |
534 |
|
} |
630 |
535 |
|
|
631 |
536 |
|
@Override |
632 |
|
- |
public StoryTemplate createNew( Transaction pTransaction ) |
633 |
|
- |
{ |
|
537 |
+ |
public StoryTemplate createNew( Transaction pTransaction ) { |
634 |
538 |
|
return new StoryTemplate( pTransaction ); |
635 |
539 |
|
} |
636 |
540 |
|
|
637 |
541 |
|
@Override |
638 |
|
- |
public StoryTemplate createPOfromFinder() |
639 |
|
- |
{ |
|
542 |
+ |
public StoryTemplate createPOfromFinder() { |
640 |
543 |
|
return new StoryTemplate( CONSTRUCTION_CONTROL ); |
641 |
544 |
|
} |
642 |
545 |
|
|
643 |
546 |
|
@Override |
644 |
|
- |
public String getDisplayValueFormat() |
645 |
|
- |
{ |
|
547 |
+ |
public String getDisplayValueFormat() { |
646 |
548 |
|
return null; |
647 |
549 |
|
} |
648 |
550 |
|
|
649 |
551 |
|
@Override |
650 |
|
- |
public String getRecordVersionAttributeName() |
651 |
|
- |
{ |
|
552 |
+ |
public String getRecordVersionAttributeName() { |
652 |
553 |
|
return CD_RecordVersion.getName(); |
653 |
554 |
|
} |
654 |
555 |
|
} |