|
@@ -9,25 +9,21 @@ |
9 |
9 |
|
|
10 |
10 |
|
public abstract class TaskGO |
11 |
11 |
|
extends org.litesoft.orsup.nonpublic.PersistentObjectImpl<Task> |
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 TaskMetaData.INSTANCE; |
19 |
17 |
|
} |
20 |
18 |
|
|
21 |
|
- |
protected TaskGO( Transaction pTransaction ) |
22 |
|
- |
{ |
|
19 |
+ |
protected TaskGO( Transaction pTransaction ) { |
23 |
20 |
|
super( TaskMetaData.INSTANCE, pTransaction ); |
24 |
21 |
|
mID = getNextSequenceNumber( getClass() ); |
25 |
22 |
|
registerWithTransaction(); |
26 |
23 |
|
setDefaults(); |
27 |
24 |
|
} |
28 |
25 |
|
|
29 |
|
- |
protected TaskGO( ConstructionControl pConstructionControl ) |
30 |
|
- |
{ |
|
26 |
+ |
protected TaskGO( ConstructionControl pConstructionControl ) { |
31 |
27 |
|
super( TaskMetaData.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<Task> |
45 |
|
- |
{ |
46 |
|
- |
public AttributeAccessor_RecordVersion() |
47 |
|
- |
{ |
|
39 |
+ |
extends AttributeAccessorSCD_RecordVersion<Task> { |
|
40 |
+ |
public AttributeAccessor_RecordVersion() { |
48 |
41 |
|
super( "RecordVersion", "RecordVersion" ); |
49 |
42 |
|
} |
50 |
43 |
|
|
51 |
44 |
|
@Override |
52 |
|
- |
protected RecordVersionHelper getRecordVersionHelper( Task pPO ) |
53 |
|
- |
{ |
|
45 |
+ |
protected RecordVersionHelper getRecordVersionHelper( Task pPO ) { |
54 |
46 |
|
return pPO.mRecordVersion; |
55 |
47 |
|
} |
56 |
48 |
|
} |
|
@@ -59,89 +51,74 @@ |
59 |
51 |
|
|
60 |
52 |
|
private Long mID; |
61 |
53 |
|
|
62 |
|
- |
public Long getID() |
63 |
|
- |
{ |
|
54 |
+ |
public Long getID() { |
64 |
55 |
|
return mID; |
65 |
56 |
|
} |
66 |
57 |
|
|
67 |
|
- |
protected void LLsetID( Long pID ) |
68 |
|
- |
{ |
|
58 |
+ |
protected void LLsetID( Long pID ) { |
69 |
59 |
|
verifyMutability( CD_ID, mID, pID ); |
70 |
60 |
|
mID = pID; |
71 |
61 |
|
} |
72 |
62 |
|
|
73 |
63 |
|
private static class AttributeAccessor_ID |
74 |
64 |
|
extends AttributeAccessorSCDsimplePersistedSysSetOnly<Task> |
75 |
|
- |
implements NonImportableFeature |
76 |
|
- |
{ |
77 |
|
- |
public AttributeAccessor_ID() |
78 |
|
- |
{ |
|
65 |
+ |
implements NonImportableFeature { |
|
66 |
+ |
public AttributeAccessor_ID() { |
79 |
67 |
|
super( "ID", "ID", false, _Long.AddOnly() ); |
80 |
68 |
|
} |
81 |
69 |
|
|
82 |
70 |
|
@Override |
83 |
|
- |
public Object getValueOnPO( Task pPO ) |
84 |
|
- |
{ |
|
71 |
+ |
public Object getValueOnPO( Task pPO ) { |
85 |
72 |
|
return pPO.getID(); |
86 |
73 |
|
} |
87 |
74 |
|
|
88 |
75 |
|
@Override |
89 |
|
- |
public void db_setValueOnPO( Task pPO, Object pValue ) |
90 |
|
- |
{ |
|
76 |
+ |
public void db_setValueOnPO( Task pPO, Object pValue ) { |
91 |
77 |
|
pPO.LLsetID( to_Long( pValue ) ); |
92 |
78 |
|
} |
93 |
79 |
|
} |
94 |
80 |
|
|
95 |
|
- |
public static final AttributeAccessorSCDtoOneRegular<Task,User> CD_Creator = new AttributeAccessor_Creator(); |
|
81 |
+ |
public static final AttributeAccessorSCDtoOneRegular<Task, User> CD_Creator = new AttributeAccessor_Creator(); |
96 |
82 |
|
|
97 |
|
- |
protected org.litesoft.orsup.lazyload.LazyLoadToOneRegular<Task,User> mCreator = // |
98 |
|
- |
new org.litesoft.orsup.lazyload.LazyLoadToOneRegular<Task,User>( (Task) this, CD_Creator ); |
|
83 |
+ |
protected org.litesoft.orsup.lazyload.LazyLoadToOneRegular<Task, User> mCreator = // |
|
84 |
+ |
new org.litesoft.orsup.lazyload.LazyLoadToOneRegular<Task, User>( (Task) this, CD_Creator ); |
99 |
85 |
|
|
100 |
|
- |
public User getCreator() |
101 |
|
- |
{ |
|
86 |
+ |
public User getCreator() { |
102 |
87 |
|
return processLazyLoadAccess( mCreator ); |
103 |
88 |
|
} |
104 |
89 |
|
|
105 |
|
- |
public void setCreator( User pCreator ) |
106 |
|
- |
{ |
|
90 |
+ |
public void setCreator( User pCreator ) { |
107 |
91 |
|
processLazyLoadMutation( mCreator, pCreator ); |
108 |
92 |
|
} |
109 |
93 |
|
|
110 |
94 |
|
private static class AttributeAccessor_Creator |
111 |
|
- |
extends AttributeAccessorSCDtoOneRegular<Task,User> |
112 |
|
- |
{ |
113 |
|
- |
public AttributeAccessor_Creator() |
114 |
|
- |
{ |
|
95 |
+ |
extends AttributeAccessorSCDtoOneRegular<Task, User> { |
|
96 |
+ |
public AttributeAccessor_Creator() { |
115 |
97 |
|
super( "Creator", "Creator_id", User.class, "ID", "CreatedTasks", false, true, Mutability.RW ); |
116 |
98 |
|
} |
117 |
99 |
|
|
118 |
100 |
|
@Override |
119 |
|
- |
public org.litesoft.orsup.lazyload.LazyLoadToOneRegular<Task,User> getValueHolder( Task pPO ) |
120 |
|
- |
{ |
|
101 |
+ |
public org.litesoft.orsup.lazyload.LazyLoadToOneRegular<Task, User> getValueHolder( Task pPO ) { |
121 |
102 |
|
return pPO.mCreator; |
122 |
103 |
|
} |
123 |
104 |
|
|
124 |
105 |
|
@Override |
125 |
|
- |
public Object getValueOnPO( Task pPO ) |
126 |
|
- |
{ |
|
106 |
+ |
public Object getValueOnPO( Task pPO ) { |
127 |
107 |
|
return pPO.getCreator(); |
128 |
108 |
|
} |
129 |
109 |
|
|
130 |
110 |
|
@Override |
131 |
|
- |
public void setValueOnPO( Task pPO, Object pValue ) |
132 |
|
- |
{ |
|
111 |
+ |
public void setValueOnPO( Task pPO, Object pValue ) { |
133 |
112 |
|
pPO.setCreator( to_PO( pPO, User.class, pValue ) ); |
134 |
113 |
|
} |
135 |
114 |
|
|
136 |
115 |
|
@Override |
137 |
|
- |
public Object db_getValueOnPO( Task pPO ) |
138 |
|
- |
{ |
|
116 |
+ |
public Object db_getValueOnPO( Task pPO ) { |
139 |
117 |
|
return pPO.mCreator.db_getValue(); |
140 |
118 |
|
} |
141 |
119 |
|
|
142 |
120 |
|
@Override |
143 |
|
- |
public void db_setValueOnPO( Task pPO, Object pValue ) |
144 |
|
- |
{ |
|
121 |
+ |
public void db_setValueOnPO( Task pPO, Object pValue ) { |
145 |
122 |
|
pPO.mCreator.db_setValue( to_Long( pValue ) ); |
146 |
123 |
|
} |
147 |
124 |
|
} |
|
@@ -150,35 +127,29 @@ |
150 |
127 |
|
|
151 |
128 |
|
private String mDescription; |
152 |
129 |
|
|
153 |
|
- |
public String getDescription() |
154 |
|
- |
{ |
|
130 |
+ |
public String getDescription() { |
155 |
131 |
|
return mDescription; |
156 |
132 |
|
} |
157 |
133 |
|
|
158 |
|
- |
public void setDescription( String pDescription ) |
159 |
|
- |
{ |
|
134 |
+ |
public void setDescription( String pDescription ) { |
160 |
135 |
|
verifyMutability( CD_Description, mDescription, pDescription ); |
161 |
136 |
|
mDescription = pDescription; |
162 |
137 |
|
} |
163 |
138 |
|
|
164 |
139 |
|
private static class AttributeAccessor_Description |
165 |
|
- |
extends AttributeAccessorSCDsimplePersistedRegular<Task> |
166 |
|
- |
{ |
167 |
|
- |
public AttributeAccessor_Description() |
168 |
|
- |
{ |
|
140 |
+ |
extends AttributeAccessorSCDsimplePersistedRegular<Task> { |
|
141 |
+ |
public AttributeAccessor_Description() { |
169 |
142 |
|
super( "Description", "Description", false, _Text.with( DisplayWidthInitial.of( 40 ), // |
170 |
143 |
|
DisplayHeightInitial.of( 4 ) ) ); |
171 |
144 |
|
} |
172 |
145 |
|
|
173 |
146 |
|
@Override |
174 |
|
- |
public Object getValueOnPO( Task pPO ) |
175 |
|
- |
{ |
|
147 |
+ |
public Object getValueOnPO( Task pPO ) { |
176 |
148 |
|
return pPO.getDescription(); |
177 |
149 |
|
} |
178 |
150 |
|
|
179 |
151 |
|
@Override |
180 |
|
- |
public void setValueOnPO( Task pPO, Object pValue ) |
181 |
|
- |
{ |
|
152 |
+ |
public void setValueOnPO( Task pPO, Object pValue ) { |
182 |
153 |
|
pPO.setDescription( to_String( pValue ) ); |
183 |
154 |
|
} |
184 |
155 |
|
} |
|
@@ -187,34 +158,28 @@ |
187 |
158 |
|
|
188 |
159 |
|
private Float mDisplayOrder; |
189 |
160 |
|
|
190 |
|
- |
public Float getDisplayOrder() |
191 |
|
- |
{ |
|
161 |
+ |
public Float getDisplayOrder() { |
192 |
162 |
|
return mDisplayOrder; |
193 |
163 |
|
} |
194 |
164 |
|
|
195 |
|
- |
public void setDisplayOrder( Float pDisplayOrder ) |
196 |
|
- |
{ |
|
165 |
+ |
public void setDisplayOrder( Float pDisplayOrder ) { |
197 |
166 |
|
verifyMutability( CD_DisplayOrder, mDisplayOrder, pDisplayOrder ); |
198 |
167 |
|
mDisplayOrder = pDisplayOrder; |
199 |
168 |
|
} |
200 |
169 |
|
|
201 |
170 |
|
private static class AttributeAccessor_DisplayOrder |
202 |
|
- |
extends AttributeAccessorSCDsimplePersistedRegular<Task> |
203 |
|
- |
{ |
204 |
|
- |
public AttributeAccessor_DisplayOrder() |
205 |
|
- |
{ |
|
171 |
+ |
extends AttributeAccessorSCDsimplePersistedRegular<Task> { |
|
172 |
+ |
public AttributeAccessor_DisplayOrder() { |
206 |
173 |
|
super( "DisplayOrder", "DisplayOrder", false, _Float.with( DisplayLength.of( 9 ) ) ); |
207 |
174 |
|
} |
208 |
175 |
|
|
209 |
176 |
|
@Override |
210 |
|
- |
public Object getValueOnPO( Task pPO ) |
211 |
|
- |
{ |
|
177 |
+ |
public Object getValueOnPO( Task pPO ) { |
212 |
178 |
|
return pPO.getDisplayOrder(); |
213 |
179 |
|
} |
214 |
180 |
|
|
215 |
181 |
|
@Override |
216 |
|
- |
public void setValueOnPO( Task pPO, Object pValue ) |
217 |
|
- |
{ |
|
182 |
+ |
public void setValueOnPO( Task pPO, Object pValue ) { |
218 |
183 |
|
pPO.setDisplayOrder( to_Float( pValue ) ); |
219 |
184 |
|
} |
220 |
185 |
|
} |
|
@@ -223,40 +188,33 @@ |
223 |
188 |
|
|
224 |
189 |
|
private Boolean mIsDone; |
225 |
190 |
|
|
226 |
|
- |
public Boolean getIsDone() |
227 |
|
- |
{ |
|
191 |
+ |
public Boolean getIsDone() { |
228 |
192 |
|
return mIsDone; |
229 |
193 |
|
} |
230 |
194 |
|
|
231 |
|
- |
public void setIsDone( Boolean pIsDone ) |
232 |
|
- |
{ |
|
195 |
+ |
public void setIsDone( Boolean pIsDone ) { |
233 |
196 |
|
verifyMutability( CD_IsDone, mIsDone, pIsDone ); |
234 |
197 |
|
mIsDone = pIsDone; |
235 |
198 |
|
} |
236 |
199 |
|
|
237 |
200 |
|
private static class AttributeAccessor_IsDone |
238 |
|
- |
extends AttributeAccessorSCDsimplePersistedRegular<Task> |
239 |
|
- |
{ |
240 |
|
- |
public AttributeAccessor_IsDone() |
241 |
|
- |
{ |
|
201 |
+ |
extends AttributeAccessorSCDsimplePersistedRegular<Task> { |
|
202 |
+ |
public AttributeAccessor_IsDone() { |
242 |
203 |
|
super( "IsDone", "IsDone", true, _Boolean ); |
243 |
204 |
|
} |
244 |
205 |
|
|
245 |
206 |
|
@Override |
246 |
|
- |
public Object getDefault() |
247 |
|
- |
{ |
|
207 |
+ |
public Object getDefault() { |
248 |
208 |
|
return false; |
249 |
209 |
|
} |
250 |
210 |
|
|
251 |
211 |
|
@Override |
252 |
|
- |
public Object getValueOnPO( Task pPO ) |
253 |
|
- |
{ |
|
212 |
+ |
public Object getValueOnPO( Task pPO ) { |
254 |
213 |
|
return pPO.getIsDone(); |
255 |
214 |
|
} |
256 |
215 |
|
|
257 |
216 |
|
@Override |
258 |
|
- |
public void setValueOnPO( Task pPO, Object pValue ) |
259 |
|
- |
{ |
|
217 |
+ |
public void setValueOnPO( Task pPO, Object pValue ) { |
260 |
218 |
|
pPO.setIsDone( to_Boolean( pValue ) ); |
261 |
219 |
|
} |
262 |
220 |
|
} |
|
@@ -265,165 +223,137 @@ |
265 |
223 |
|
|
266 |
224 |
|
private String mName; |
267 |
225 |
|
|
268 |
|
- |
public String getName() |
269 |
|
- |
{ |
|
226 |
+ |
public String getName() { |
270 |
227 |
|
return mName; |
271 |
228 |
|
} |
272 |
229 |
|
|
273 |
|
- |
public void setName( String pName ) |
274 |
|
- |
{ |
|
230 |
+ |
public void setName( String pName ) { |
275 |
231 |
|
verifyMutability( CD_Name, mName, pName ); |
276 |
232 |
|
mName = pName; |
277 |
233 |
|
} |
278 |
234 |
|
|
279 |
235 |
|
private static class AttributeAccessor_Name |
280 |
|
- |
extends AttributeAccessorSCDsimplePersistedRegular<Task> |
281 |
|
- |
{ |
282 |
|
- |
public AttributeAccessor_Name() |
283 |
|
- |
{ |
|
236 |
+ |
extends AttributeAccessorSCDsimplePersistedRegular<Task> { |
|
237 |
+ |
public AttributeAccessor_Name() { |
284 |
238 |
|
super( "Name", "Name", true, _String.with( MaxLength.of( 40 ), // |
285 |
239 |
|
DisplayLength.of( 20 ) ) ); |
286 |
240 |
|
} |
287 |
241 |
|
|
288 |
242 |
|
@Override |
289 |
|
- |
public Object getValueOnPO( Task pPO ) |
290 |
|
- |
{ |
|
243 |
+ |
public Object getValueOnPO( Task pPO ) { |
291 |
244 |
|
return pPO.getName(); |
292 |
245 |
|
} |
293 |
246 |
|
|
294 |
247 |
|
@Override |
295 |
|
- |
public void setValueOnPO( Task pPO, Object pValue ) |
296 |
|
- |
{ |
|
248 |
+ |
public void setValueOnPO( Task pPO, Object pValue ) { |
297 |
249 |
|
pPO.setName( to_String( pValue ) ); |
298 |
250 |
|
} |
299 |
251 |
|
} |
300 |
252 |
|
|
301 |
|
- |
public static final AttributeAccessorSCDtoOneRegular<Task,Story> CD_Story = new AttributeAccessor_Story(); |
|
253 |
+ |
public static final AttributeAccessorSCDtoOneRegular<Task, Story> CD_Story = new AttributeAccessor_Story(); |
302 |
254 |
|
|
303 |
|
- |
protected org.litesoft.orsup.lazyload.LazyLoadToOneRegular<Task,Story> mStory = // |
304 |
|
- |
new org.litesoft.orsup.lazyload.LazyLoadToOneRegular<Task,Story>( (Task) this, CD_Story ); |
|
255 |
+ |
protected org.litesoft.orsup.lazyload.LazyLoadToOneRegular<Task, Story> mStory = // |
|
256 |
+ |
new org.litesoft.orsup.lazyload.LazyLoadToOneRegular<Task, Story>( (Task) this, CD_Story ); |
305 |
257 |
|
|
306 |
|
- |
public Story getStory() |
307 |
|
- |
{ |
|
258 |
+ |
public Story getStory() { |
308 |
259 |
|
return processLazyLoadAccess( mStory ); |
309 |
260 |
|
} |
310 |
261 |
|
|
311 |
|
- |
public void setStory( Story pStory ) |
312 |
|
- |
{ |
|
262 |
+ |
public void setStory( Story pStory ) { |
313 |
263 |
|
processLazyLoadMutation( mStory, pStory ); |
314 |
264 |
|
} |
315 |
265 |
|
|
316 |
266 |
|
private static class AttributeAccessor_Story |
317 |
|
- |
extends AttributeAccessorSCDtoOneRegular<Task,Story> |
318 |
|
- |
{ |
319 |
|
- |
public AttributeAccessor_Story() |
320 |
|
- |
{ |
|
267 |
+ |
extends AttributeAccessorSCDtoOneRegular<Task, Story> { |
|
268 |
+ |
public AttributeAccessor_Story() { |
321 |
269 |
|
super( "Story", "Story_id", Story.class, "ID", "Tasks", false, true, Mutability.RW ); |
322 |
270 |
|
} |
323 |
271 |
|
|
324 |
272 |
|
@Override |
325 |
|
- |
public org.litesoft.orsup.lazyload.LazyLoadToOneRegular<Task,Story> getValueHolder( Task pPO ) |
326 |
|
- |
{ |
|
273 |
+ |
public org.litesoft.orsup.lazyload.LazyLoadToOneRegular<Task, Story> getValueHolder( Task pPO ) { |
327 |
274 |
|
return pPO.mStory; |
328 |
275 |
|
} |
329 |
276 |
|
|
330 |
277 |
|
@Override |
331 |
|
- |
public Object getValueOnPO( Task pPO ) |
332 |
|
- |
{ |
|
278 |
+ |
public Object getValueOnPO( Task pPO ) { |
333 |
279 |
|
return pPO.getStory(); |
334 |
280 |
|
} |
335 |
281 |
|
|
336 |
282 |
|
@Override |
337 |
|
- |
public void setValueOnPO( Task pPO, Object pValue ) |
338 |
|
- |
{ |
|
283 |
+ |
public void setValueOnPO( Task pPO, Object pValue ) { |
339 |
284 |
|
pPO.setStory( to_PO( pPO, Story.class, pValue ) ); |
340 |
285 |
|
} |
341 |
286 |
|
|
342 |
287 |
|
@Override |
343 |
|
- |
public Object db_getValueOnPO( Task pPO ) |
344 |
|
- |
{ |
|
288 |
+ |
public Object db_getValueOnPO( Task pPO ) { |
345 |
289 |
|
return pPO.mStory.db_getValue(); |
346 |
290 |
|
} |
347 |
291 |
|
|
348 |
292 |
|
@Override |
349 |
|
- |
public void db_setValueOnPO( Task pPO, Object pValue ) |
350 |
|
- |
{ |
|
293 |
+ |
public void db_setValueOnPO( Task pPO, Object pValue ) { |
351 |
294 |
|
pPO.mStory.db_setValue( to_Long( pValue ) ); |
352 |
295 |
|
} |
353 |
296 |
|
} |
354 |
297 |
|
|
355 |
|
- |
public static final AttributeAccessorSCDtoManyRegular<Task,UserXrefTask> CD_Users = new AttributeAccessor_Users(); |
|
298 |
+ |
public static final AttributeAccessorSCDtoManyRegular<Task, UserXrefTask> CD_Users = new AttributeAccessor_Users(); |
356 |
299 |
|
|
357 |
|
- |
protected org.litesoft.orsup.lazyload.LazyLoadToManyRegular<Task,UserXrefTask> mUsers = // |
358 |
|
- |
new org.litesoft.orsup.lazyload.LazyLoadToManyRegular<Task,UserXrefTask>( (Task) this, CD_Users ); |
|
300 |
+ |
protected org.litesoft.orsup.lazyload.LazyLoadToManyRegular<Task, UserXrefTask> mUsers = // |
|
301 |
+ |
new org.litesoft.orsup.lazyload.LazyLoadToManyRegular<Task, UserXrefTask>( (Task) this, CD_Users ); |
359 |
302 |
|
|
360 |
|
- |
public java.util.List<UserXrefTask> getUsers() |
361 |
|
- |
{ |
|
303 |
+ |
public java.util.List<UserXrefTask> getUsers() { |
362 |
304 |
|
return processLazyLoadAccess( mUsers ); |
363 |
305 |
|
} |
364 |
306 |
|
|
365 |
|
- |
public void setUsers( java.util.List<UserXrefTask> pUsers ) |
366 |
|
- |
{ |
|
307 |
+ |
public void setUsers( java.util.List<UserXrefTask> pUsers ) { |
367 |
308 |
|
processLazyLoadMutation( mUsers, pUsers ); |
368 |
309 |
|
} |
369 |
310 |
|
|
370 |
|
- |
public void addUsers( UserXrefTask pUsers ) |
371 |
|
- |
{ |
|
311 |
+ |
public void addUsers( UserXrefTask pUsers ) { |
372 |
312 |
|
processLazyLoadMutationAdd( mUsers, pUsers ); |
373 |
313 |
|
} |
374 |
314 |
|
|
375 |
|
- |
public void removeUsers( UserXrefTask pUsers ) |
376 |
|
- |
{ |
|
315 |
+ |
public void removeUsers( UserXrefTask pUsers ) { |
377 |
316 |
|
processLazyLoadMutationRemove( mUsers, pUsers ); |
378 |
317 |
|
} |
379 |
318 |
|
|
380 |
319 |
|
private static class AttributeAccessor_Users |
381 |
|
- |
extends AttributeAccessorSCDtoManyRegular<Task,UserXrefTask> |
382 |
|
- |
{ |
383 |
|
- |
public AttributeAccessor_Users() |
384 |
|
- |
{ |
|
320 |
+ |
extends AttributeAccessorSCDtoManyRegular<Task, UserXrefTask> { |
|
321 |
+ |
public AttributeAccessor_Users() { |
385 |
322 |
|
super( "Users", "ID", UserXrefTask.class, "Task", null, Mutability.RW, false, true ); |
386 |
323 |
|
} |
387 |
324 |
|
|
388 |
325 |
|
@Override |
389 |
|
- |
public org.litesoft.orsup.lazyload.LazyLoadToManyRegular<Task,UserXrefTask> getValueHolder( Task pPO ) |
390 |
|
- |
{ |
|
326 |
+ |
public org.litesoft.orsup.lazyload.LazyLoadToManyRegular<Task, UserXrefTask> getValueHolder( Task pPO ) { |
391 |
327 |
|
return pPO.mUsers; |
392 |
328 |
|
} |
393 |
329 |
|
|
394 |
330 |
|
@Override |
395 |
|
- |
public Object getValueOnPO( Task pPO ) |
396 |
|
- |
{ |
|
331 |
+ |
public Object getValueOnPO( Task pPO ) { |
397 |
332 |
|
return pPO.getUsers(); |
398 |
333 |
|
} |
399 |
334 |
|
|
400 |
335 |
|
@Override |
401 |
|
- |
public void setValueOnPO( Task pPO, Object pValue ) |
402 |
|
- |
{ |
|
336 |
+ |
public void setValueOnPO( Task pPO, Object pValue ) { |
403 |
337 |
|
pPO.setUsers( to_POs( pPO, UserXrefTask.class, pValue ) ); |
404 |
338 |
|
} |
405 |
339 |
|
|
406 |
340 |
|
@Override |
407 |
|
- |
public void addValueOnPO( Task pPO, Object pValue ) |
408 |
|
- |
{ |
|
341 |
+ |
public void addValueOnPO( Task pPO, Object pValue ) { |
409 |
342 |
|
pPO.addUsers( to_PO( pPO, UserXrefTask.class, pValue ) ); |
410 |
343 |
|
} |
411 |
344 |
|
|
412 |
345 |
|
@Override |
413 |
|
- |
public void removeValueOnPO( Task pPO, Object pValue ) |
414 |
|
- |
{ |
|
346 |
+ |
public void removeValueOnPO( Task pPO, Object pValue ) { |
415 |
347 |
|
pPO.removeUsers( to_PO( pPO, UserXrefTask.class, pValue ) ); |
416 |
348 |
|
} |
417 |
349 |
|
} |
418 |
350 |
|
|
419 |
351 |
|
static class MyMetaData |
420 |
|
- |
extends org.litesoft.orsup.nonpublic.PersistentObjectImplMetaData<Task> |
421 |
|
- |
{ |
|
352 |
+ |
extends org.litesoft.orsup.nonpublic.PersistentObjectImplMetaData<Task> { |
422 |
353 |
|
public static final String OBJECT_NAME = "Task"; |
423 |
354 |
|
public static final String TABLE_NAME = "Task"; |
424 |
355 |
|
|
425 |
|
- |
MyMetaData() |
426 |
|
- |
{ |
|
356 |
+ |
MyMetaData() { |
427 |
357 |
|
super( OBJECT_NAME, TABLE_NAME, new AttributeAccessorKeySet( CD_ID ), // |
428 |
358 |
|
|
429 |
359 |
|
CD_RecordVersion, /* .. */ |
|
@@ -448,38 +378,32 @@ |
448 |
378 |
|
} |
449 |
379 |
|
|
450 |
380 |
|
@Override |
451 |
|
- |
public Class getPOclass() |
452 |
|
- |
{ |
|
381 |
+ |
public Class getPOclass() { |
453 |
382 |
|
return Task.class; |
454 |
383 |
|
} |
455 |
384 |
|
|
456 |
385 |
|
@Override |
457 |
|
- |
public Task createNew( Transaction pTransaction ) |
458 |
|
- |
{ |
|
386 |
+ |
public Task createNew( Transaction pTransaction ) { |
459 |
387 |
|
return new Task( pTransaction ); |
460 |
388 |
|
} |
461 |
389 |
|
|
462 |
390 |
|
@Override |
463 |
|
- |
public Task createPOfromFinder() |
464 |
|
- |
{ |
|
391 |
+ |
public Task createPOfromFinder() { |
465 |
392 |
|
return new Task( CONSTRUCTION_CONTROL ); |
466 |
393 |
|
} |
467 |
394 |
|
|
468 |
395 |
|
@Override |
469 |
|
- |
public String getDisplayValueFormat() |
470 |
|
- |
{ |
|
396 |
+ |
public String getDisplayValueFormat() { |
471 |
397 |
|
return null; |
472 |
398 |
|
} |
473 |
399 |
|
|
474 |
400 |
|
@Override |
475 |
|
- |
public String getRecordVersionAttributeName() |
476 |
|
- |
{ |
|
401 |
+ |
public String getRecordVersionAttributeName() { |
477 |
402 |
|
return CD_RecordVersion.getName(); |
478 |
403 |
|
} |
479 |
404 |
|
|
480 |
405 |
|
@Override |
481 |
|
- |
public String getDefaultOrderByAttributeName() |
482 |
|
- |
{ |
|
406 |
+ |
public String getDefaultOrderByAttributeName() { |
483 |
407 |
|
return "DisplayOrder"; |
484 |
408 |
|
} |
485 |
409 |
|
} |