|
@@ -1,6 +1,9 @@ |
1 |
1 |
|
// This Source Code is in the Public Domain per: http://litesoft.org/License.txt |
2 |
2 |
|
package org.litesoft.or; |
3 |
3 |
|
|
|
4 |
+ |
import java.sql.*; |
|
5 |
+ |
import java.util.*; |
|
6 |
+ |
|
4 |
7 |
|
import org.litesoft.bo.attributes.*; |
5 |
8 |
|
import org.litesoft.core.util.*; |
6 |
9 |
|
import org.litesoft.orsup.base.*; |
|
@@ -10,9 +13,6 @@ |
10 |
13 |
|
import org.litesoft.orsup.selection.*; |
11 |
14 |
|
import org.litesoft.orsup.transact.*; |
12 |
15 |
|
|
13 |
|
- |
import java.sql.*; |
14 |
|
- |
import java.util.*; |
15 |
|
- |
|
16 |
16 |
|
public abstract class DBInvoicePO extends PersistentObjectImpl<DBInvoice> |
17 |
17 |
|
{ |
18 |
18 |
|
private static final ConstructionControl CONSTRUCTION_CONTROL = new ConstructionControl(); |
|
@@ -71,8 +71,7 @@ |
71 |
71 |
|
mLastModified = pLastModified; |
72 |
72 |
|
} |
73 |
73 |
|
|
74 |
|
- |
private static class AttributeAccessor_LastModified |
75 |
|
- |
extends AttributeAccessorSCDsimplePersistedSysSetOnly<DBInvoice> implements NonImportableFeature |
|
74 |
+ |
private static class AttributeAccessor_LastModified extends AttributeAccessorSCDsimplePersistedSysSetOnly<DBInvoice> implements NonImportableFeature |
76 |
75 |
|
{ |
77 |
76 |
|
public AttributeAccessor_LastModified() |
78 |
77 |
|
{ |
|
@@ -105,8 +104,7 @@ |
105 |
104 |
|
mCreated = pCreated; |
106 |
105 |
|
} |
107 |
106 |
|
|
108 |
|
- |
private static class AttributeAccessor_Created extends AttributeAccessorSCDsimplePersistedSysSetOnly<DBInvoice> |
109 |
|
- |
implements NonImportableFeature |
|
107 |
+ |
private static class AttributeAccessor_Created extends AttributeAccessorSCDsimplePersistedSysSetOnly<DBInvoice> implements NonImportableFeature |
110 |
108 |
|
{ |
111 |
109 |
|
public AttributeAccessor_Created() |
112 |
110 |
|
{ |
|
@@ -139,8 +137,7 @@ |
139 |
137 |
|
mID = pID; |
140 |
138 |
|
} |
141 |
139 |
|
|
142 |
|
- |
private static class AttributeAccessor_ID extends AttributeAccessorSCDsimplePersistedReadOnly<DBInvoice> |
143 |
|
- |
implements NonImportableFeature |
|
140 |
+ |
private static class AttributeAccessor_ID extends AttributeAccessorSCDsimplePersistedReadOnly<DBInvoice> implements NonImportableFeature |
144 |
141 |
|
{ |
145 |
142 |
|
public AttributeAccessor_ID() |
146 |
143 |
|
{ |
|
@@ -291,8 +288,7 @@ |
291 |
288 |
|
} |
292 |
289 |
|
} |
293 |
290 |
|
|
294 |
|
- |
public static final AttributeAccessorSCD CD_ContactedAndResolved = |
295 |
|
- |
new AttributeAccessor_ContactedAndResolved(); |
|
291 |
+ |
public static final AttributeAccessorSCD CD_ContactedAndResolved = new AttributeAccessor_ContactedAndResolved(); |
296 |
292 |
|
|
297 |
293 |
|
private Boolean mContactedAndResolved; |
298 |
294 |
|
|
|
@@ -311,8 +307,7 @@ |
311 |
307 |
|
{ |
312 |
308 |
|
public AttributeAccessor_ContactedAndResolved() |
313 |
309 |
|
{ |
314 |
|
- |
super( "ContactedAndResolved", "ContactedAndResolved", false, _Boolean |
315 |
|
- |
); |
|
310 |
+ |
super( "ContactedAndResolved", "ContactedAndResolved", false, _Boolean ); |
316 |
311 |
|
} |
317 |
312 |
|
|
318 |
313 |
|
public Object getValueOnPO( DBInvoice pPO ) |
|
@@ -326,11 +321,9 @@ |
326 |
321 |
|
} |
327 |
322 |
|
} |
328 |
323 |
|
|
329 |
|
- |
public static final AttributeAccessorSCDtoManyRegular<DBInvoice, DBLineItem> CD_DBLineItemSetForInvoice = |
330 |
|
- |
new AttributeAccessor_DBLineItemSetForInvoice(); |
|
324 |
+ |
public static final AttributeAccessorSCDtoManyRegular<DBInvoice, DBLineItem> CD_DBLineItemSetForInvoice = new AttributeAccessor_DBLineItemSetForInvoice(); |
331 |
325 |
|
|
332 |
|
- |
protected LazyLoadToManyRegular<DBInvoice, DBLineItem> mDBLineItemSetForInvoice = |
333 |
|
- |
new LazyLoadToManyRegular<DBInvoice, DBLineItem>( (DBInvoice) this, CD_DBLineItemSetForInvoice ); |
|
326 |
+ |
protected LazyLoadToManyRegular<DBInvoice, DBLineItem> mDBLineItemSetForInvoice = new LazyLoadToManyRegular<DBInvoice, DBLineItem>( (DBInvoice) this, CD_DBLineItemSetForInvoice ); |
334 |
327 |
|
|
335 |
328 |
|
public List<DBLineItem> getDBLineItemSetForInvoice() |
336 |
329 |
|
{ |
|
@@ -352,13 +345,11 @@ |
352 |
345 |
|
processLazyLoadMutationRemove( mDBLineItemSetForInvoice, pDBLineItem ); |
353 |
346 |
|
} |
354 |
347 |
|
|
355 |
|
- |
private static class AttributeAccessor_DBLineItemSetForInvoice |
356 |
|
- |
extends AttributeAccessorSCDtoManyRegular<DBInvoice, DBLineItem> |
|
348 |
+ |
private static class AttributeAccessor_DBLineItemSetForInvoice extends AttributeAccessorSCDtoManyRegular<DBInvoice, DBLineItem> |
357 |
349 |
|
{ |
358 |
350 |
|
public AttributeAccessor_DBLineItemSetForInvoice() |
359 |
351 |
|
{ |
360 |
|
- |
super( "DBLineItemSetForInvoice", "ID", DBLineItem.class, "Invoice", null, Mutability.RW, false, |
361 |
|
- |
true ); |
|
352 |
+ |
super( "DBLineItemSetForInvoice", "ID", DBLineItem.class, "Invoice", null, Mutability.RW, false, true ); |
362 |
353 |
|
} |
363 |
354 |
|
|
364 |
355 |
|
public LazyLoadToManyRegular<DBInvoice, DBLineItem> getValueHolder( DBInvoice pPO ) |
|
@@ -387,11 +378,9 @@ |
387 |
378 |
|
} |
388 |
379 |
|
} |
389 |
380 |
|
|
390 |
|
- |
public static final AttributeAccessorSCDtoManyRegular<DBInvoice, DBTag> CD_DBTagSetForInvoice = |
391 |
|
- |
new AttributeAccessor_DBTagSetForInvoice(); |
|
381 |
+ |
public static final AttributeAccessorSCDtoManyRegular<DBInvoice, DBTag> CD_DBTagSetForInvoice = new AttributeAccessor_DBTagSetForInvoice(); |
392 |
382 |
|
|
393 |
|
- |
protected LazyLoadToManyRegular<DBInvoice, DBTag> mDBTagSetForInvoice = |
394 |
|
- |
new LazyLoadToManyRegular<DBInvoice, DBTag>( (DBInvoice) this, CD_DBTagSetForInvoice ); |
|
383 |
+ |
protected LazyLoadToManyRegular<DBInvoice, DBTag> mDBTagSetForInvoice = new LazyLoadToManyRegular<DBInvoice, DBTag>( (DBInvoice) this, CD_DBTagSetForInvoice ); |
395 |
384 |
|
|
396 |
385 |
|
public List<DBTag> getDBTagSetForInvoice() |
397 |
386 |
|
{ |
|
@@ -413,13 +402,11 @@ |
413 |
402 |
|
processLazyLoadMutationRemove( mDBTagSetForInvoice, pDBTag ); |
414 |
403 |
|
} |
415 |
404 |
|
|
416 |
|
- |
private static class AttributeAccessor_DBTagSetForInvoice |
417 |
|
- |
extends AttributeAccessorSCDtoManyRegular<DBInvoice, DBTag> |
|
405 |
+ |
private static class AttributeAccessor_DBTagSetForInvoice extends AttributeAccessorSCDtoManyRegular<DBInvoice, DBTag> |
418 |
406 |
|
{ |
419 |
407 |
|
public AttributeAccessor_DBTagSetForInvoice() |
420 |
408 |
|
{ |
421 |
|
- |
super( "DBTagSetForInvoice", "ID", DBTag.class, "Invoice", null, Mutability.RW, false, |
422 |
|
- |
true ); |
|
409 |
+ |
super( "DBTagSetForInvoice", "ID", DBTag.class, "Invoice", null, Mutability.RW, false, true ); |
423 |
410 |
|
} |
424 |
411 |
|
|
425 |
412 |
|
public LazyLoadToManyRegular<DBInvoice, DBTag> getValueHolder( DBInvoice pPO ) |
|
@@ -448,11 +435,9 @@ |
448 |
435 |
|
} |
449 |
436 |
|
} |
450 |
437 |
|
|
451 |
|
- |
public static final AttributeAccessorSCDtoManyVariable<DBInvoice, DBNote> CD_Notes = |
452 |
|
- |
new AttributeAccessor_Notes(); |
|
438 |
+ |
public static final AttributeAccessorSCDtoManyVariable<DBInvoice, DBNote> CD_Notes = new AttributeAccessor_Notes(); |
453 |
439 |
|
|
454 |
|
- |
protected LazyLoadToManyVariable<DBInvoice, DBNote> mNotes = |
455 |
|
- |
new LazyLoadToManyVariable<DBInvoice, DBNote>( (DBInvoice) this, CD_Notes ); |
|
440 |
+ |
protected LazyLoadToManyVariable<DBInvoice, DBNote> mNotes = new LazyLoadToManyVariable<DBInvoice, DBNote>( (DBInvoice) this, CD_Notes ); |
456 |
441 |
|
|
457 |
442 |
|
public List<DBNote> getNotes() |
458 |
443 |
|
{ |