|
@@ -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 DBLineItemPO extends PersistentObjectImpl<DBLineItem> |
17 |
17 |
|
{ |
18 |
18 |
|
private static final ConstructionControl CONSTRUCTION_CONTROL = new ConstructionControl(); |
|
@@ -43,8 +43,7 @@ |
43 |
43 |
|
return mRecordVersion.getRecordVersion(); |
44 |
44 |
|
} |
45 |
45 |
|
|
46 |
|
- |
private static class AttributeAccessor_RecordVersion |
47 |
|
- |
extends AttributeAccessorSCD_RecordVersion<DBLineItem> |
|
46 |
+ |
private static class AttributeAccessor_RecordVersion extends AttributeAccessorSCD_RecordVersion<DBLineItem> |
48 |
47 |
|
{ |
49 |
48 |
|
public AttributeAccessor_RecordVersion() |
50 |
49 |
|
{ |
|
@@ -72,8 +71,7 @@ |
72 |
71 |
|
mID = pID; |
73 |
72 |
|
} |
74 |
73 |
|
|
75 |
|
- |
private static class AttributeAccessor_ID extends AttributeAccessorSCDsimplePersistedReadOnly<DBLineItem> |
76 |
|
- |
implements NonImportableFeature |
|
74 |
+ |
private static class AttributeAccessor_ID extends AttributeAccessorSCDsimplePersistedReadOnly<DBLineItem> implements NonImportableFeature |
77 |
75 |
|
{ |
78 |
76 |
|
public AttributeAccessor_ID() |
79 |
77 |
|
{ |
|
@@ -110,8 +108,7 @@ |
110 |
108 |
|
{ |
111 |
109 |
|
public AttributeAccessor_ProductCode() |
112 |
110 |
|
{ |
113 |
|
- |
super( "ProductCode", "ProductCode", true, _String.with( MaxLength.of( 255 ) ) |
114 |
|
- |
); |
|
111 |
+ |
super( "ProductCode", "ProductCode", true, _String.with( MaxLength.of( 255 ) ) ); |
115 |
112 |
|
} |
116 |
113 |
|
|
117 |
114 |
|
public Object getValueOnPO( DBLineItem pPO ) |
|
@@ -224,11 +221,9 @@ |
224 |
221 |
|
} |
225 |
222 |
|
} |
226 |
223 |
|
|
227 |
|
- |
public static final AttributeAccessorSCDtoOneRegular<DBLineItem, DBInvoice> CD_Invoice = |
228 |
|
- |
new AttributeAccessor_Invoice(); |
|
224 |
+ |
public static final AttributeAccessorSCDtoOneRegular<DBLineItem, DBInvoice> CD_Invoice = new AttributeAccessor_Invoice(); |
229 |
225 |
|
|
230 |
|
- |
protected LazyLoadToOneRegular<DBLineItem, DBInvoice> mInvoice = |
231 |
|
- |
new LazyLoadToOneRegular<DBLineItem, DBInvoice>( (DBLineItem) this, CD_Invoice ); |
|
226 |
+ |
protected LazyLoadToOneRegular<DBLineItem, DBInvoice> mInvoice = new LazyLoadToOneRegular<DBLineItem, DBInvoice>( (DBLineItem) this, CD_Invoice ); |
232 |
227 |
|
|
233 |
228 |
|
public DBInvoice getInvoice() |
234 |
229 |
|
{ |
|
@@ -244,8 +239,7 @@ |
244 |
239 |
|
{ |
245 |
240 |
|
public AttributeAccessor_Invoice() |
246 |
241 |
|
{ |
247 |
|
- |
super( "Invoice", "invoice_id", DBInvoice.class, "ID", "DBLineItemSetForInvoice", false, true, Mutability.RW |
248 |
|
- |
); |
|
242 |
+ |
super( "Invoice", "invoice_id", DBInvoice.class, "ID", "DBLineItemSetForInvoice", false, true, Mutability.RW ); |
249 |
243 |
|
} |
250 |
244 |
|
|
251 |
245 |
|
public LazyLoadToOneRegular<DBLineItem, DBInvoice> getValueHolder( DBLineItem pPO ) |
|
@@ -279,11 +273,9 @@ |
279 |
273 |
|
} |
280 |
274 |
|
} |
281 |
275 |
|
|
282 |
|
- |
public static final AttributeAccessorSCDtoManyVariable<DBLineItem, DBNote> CD_Notes = |
283 |
|
- |
new AttributeAccessor_Notes(); |
|
276 |
+ |
public static final AttributeAccessorSCDtoManyVariable<DBLineItem, DBNote> CD_Notes = new AttributeAccessor_Notes(); |
284 |
277 |
|
|
285 |
|
- |
protected LazyLoadToManyVariable<DBLineItem, DBNote> mNotes = |
286 |
|
- |
new LazyLoadToManyVariable<DBLineItem, DBNote>( (DBLineItem) this, CD_Notes ); |
|
278 |
+ |
protected LazyLoadToManyVariable<DBLineItem, DBNote> mNotes = new LazyLoadToManyVariable<DBLineItem, DBNote>( (DBLineItem) this, CD_Notes ); |
287 |
279 |
|
|
288 |
280 |
|
public List<DBNote> getNotes() |
289 |
281 |
|
{ |
|
@@ -305,8 +297,7 @@ |
305 |
297 |
|
processLazyLoadMutationRemove( mNotes, pDBNote ); |
306 |
298 |
|
} |
307 |
299 |
|
|
308 |
|
- |
private static class AttributeAccessor_Notes |
309 |
|
- |
extends AttributeAccessorSCDtoManyVariable<DBLineItem, DBNote> |
|
300 |
+ |
private static class AttributeAccessor_Notes extends AttributeAccessorSCDtoManyVariable<DBLineItem, DBNote> |
310 |
301 |
|
{ |
311 |
302 |
|
public AttributeAccessor_Notes() |
312 |
303 |
|
{ |