|
@@ -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 DBSampleImagePO extends PersistentObjectImpl<DBSampleImage> |
17 |
17 |
|
{ |
18 |
18 |
|
private static final ConstructionControl CONSTRUCTION_CONTROL = new ConstructionControl(); |
|
@@ -34,8 +34,7 @@ |
34 |
34 |
|
super( DBSampleImageMetaData.INSTANCE, CONSTRUCTION_CONTROL, pConstructionControl ); |
35 |
35 |
|
} |
36 |
36 |
|
|
37 |
|
- |
public static final AttributeAccessorSCD CD_RecordVersion = |
38 |
|
- |
new DBSampleImagePO.AttributeAccessor_RecordVersion(); |
|
37 |
+ |
public static final AttributeAccessorSCD CD_RecordVersion = new DBSampleImagePO.AttributeAccessor_RecordVersion(); |
39 |
38 |
|
|
40 |
39 |
|
protected final RecordVersionHelper mRecordVersion = new RecordVersionHelper(); |
41 |
40 |
|
|
|
@@ -44,8 +43,7 @@ |
44 |
43 |
|
return mRecordVersion.getRecordVersion(); |
45 |
44 |
|
} |
46 |
45 |
|
|
47 |
|
- |
private static class AttributeAccessor_RecordVersion |
48 |
|
- |
extends AttributeAccessorSCD_RecordVersion<DBSampleImage> |
|
46 |
+ |
private static class AttributeAccessor_RecordVersion extends AttributeAccessorSCD_RecordVersion<DBSampleImage> |
49 |
47 |
|
{ |
50 |
48 |
|
public AttributeAccessor_RecordVersion() |
51 |
49 |
|
{ |
|
@@ -58,8 +56,7 @@ |
58 |
56 |
|
} |
59 |
57 |
|
} |
60 |
58 |
|
|
61 |
|
- |
public static final AttributeAccessorSCD CD_LastModified = |
62 |
|
- |
new DBSampleImagePO.AttributeAccessor_LastModified(); |
|
59 |
+ |
public static final AttributeAccessorSCD CD_LastModified = new DBSampleImagePO.AttributeAccessor_LastModified(); |
63 |
60 |
|
|
64 |
61 |
|
private Timestamp mLastModified = null; |
65 |
62 |
|
|
|
@@ -74,9 +71,7 @@ |
74 |
71 |
|
mLastModified = pLastModified; |
75 |
72 |
|
} |
76 |
73 |
|
|
77 |
|
- |
private static class AttributeAccessor_LastModified |
78 |
|
- |
extends AttributeAccessorSCDsimplePersistedSysSetOnly<DBSampleImage> |
79 |
|
- |
implements NonImportableFeature |
|
74 |
+ |
private static class AttributeAccessor_LastModified extends AttributeAccessorSCDsimplePersistedSysSetOnly<DBSampleImage> implements NonImportableFeature |
80 |
75 |
|
{ |
81 |
76 |
|
public AttributeAccessor_LastModified() |
82 |
77 |
|
{ |
|
@@ -109,8 +104,7 @@ |
109 |
104 |
|
mID = pID; |
110 |
105 |
|
} |
111 |
106 |
|
|
112 |
|
- |
private static class AttributeAccessor_ID |
113 |
|
- |
extends AttributeAccessorSCDsimplePersistedReadOnly<DBSampleImage> implements NonImportableFeature |
|
107 |
+ |
private static class AttributeAccessor_ID extends AttributeAccessorSCDsimplePersistedReadOnly<DBSampleImage> implements NonImportableFeature |
114 |
108 |
|
{ |
115 |
109 |
|
public AttributeAccessor_ID() |
116 |
110 |
|
{ |
|
@@ -143,8 +137,7 @@ |
143 |
137 |
|
mName = pName; |
144 |
138 |
|
} |
145 |
139 |
|
|
146 |
|
- |
private static class AttributeAccessor_Name |
147 |
|
- |
extends AttributeAccessorSCDsimplePersistedRegular<DBSampleImage> |
|
140 |
+ |
private static class AttributeAccessor_Name extends AttributeAccessorSCDsimplePersistedRegular<DBSampleImage> |
148 |
141 |
|
{ |
149 |
142 |
|
public AttributeAccessor_Name() |
150 |
143 |
|
{ |
|
@@ -177,8 +170,7 @@ |
177 |
170 |
|
mURL = pURL; |
178 |
171 |
|
} |
179 |
172 |
|
|
180 |
|
- |
private static class AttributeAccessor_URL |
181 |
|
- |
extends AttributeAccessorSCDsimplePersistedRegular<DBSampleImage> |
|
173 |
+ |
private static class AttributeAccessor_URL extends AttributeAccessorSCDsimplePersistedRegular<DBSampleImage> |
182 |
174 |
|
{ |
183 |
175 |
|
public AttributeAccessor_URL() |
184 |
176 |
|
{ |
|
@@ -196,11 +188,9 @@ |
196 |
188 |
|
} |
197 |
189 |
|
} |
198 |
190 |
|
|
199 |
|
- |
public static final AttributeAccessorSCDtoManyRegular<DBSampleImage, DBAttributeSamples> CD_DBAttributeSamplesSetForImageOne = |
200 |
|
- |
new AttributeAccessor_DBAttributeSamplesSetForImageOne(); |
|
191 |
+ |
public static final AttributeAccessorSCDtoManyRegular<DBSampleImage, DBAttributeSamples> CD_DBAttributeSamplesSetForImageOne = new AttributeAccessor_DBAttributeSamplesSetForImageOne(); |
201 |
192 |
|
|
202 |
|
- |
protected LazyLoadToManyRegular<DBSampleImage, DBAttributeSamples> mDBAttributeSamplesSetForImageOne = |
203 |
|
- |
new LazyLoadToManyRegular<DBSampleImage, DBAttributeSamples>( (DBSampleImage) this, CD_DBAttributeSamplesSetForImageOne ); |
|
193 |
+ |
protected LazyLoadToManyRegular<DBSampleImage, DBAttributeSamples> mDBAttributeSamplesSetForImageOne = new LazyLoadToManyRegular<DBSampleImage, DBAttributeSamples>( (DBSampleImage) this, CD_DBAttributeSamplesSetForImageOne ); |
204 |
194 |
|
|
205 |
195 |
|
public List<DBAttributeSamples> getDBAttributeSamplesSetForImageOne() |
206 |
196 |
|
{ |
|
@@ -222,13 +212,11 @@ |
222 |
212 |
|
processLazyLoadMutationRemove( mDBAttributeSamplesSetForImageOne, pDBAttributeSamples ); |
223 |
213 |
|
} |
224 |
214 |
|
|
225 |
|
- |
private static class AttributeAccessor_DBAttributeSamplesSetForImageOne |
226 |
|
- |
extends AttributeAccessorSCDtoManyRegular<DBSampleImage, DBAttributeSamples> |
|
215 |
+ |
private static class AttributeAccessor_DBAttributeSamplesSetForImageOne extends AttributeAccessorSCDtoManyRegular<DBSampleImage, DBAttributeSamples> |
227 |
216 |
|
{ |
228 |
217 |
|
public AttributeAccessor_DBAttributeSamplesSetForImageOne() |
229 |
218 |
|
{ |
230 |
|
- |
super( "DBAttributeSamplesSetForImageOne", "ID", DBAttributeSamples.class, "ImageOne", null, Mutability.RW, false, |
231 |
|
- |
true ); |
|
219 |
+ |
super( "DBAttributeSamplesSetForImageOne", "ID", DBAttributeSamples.class, "ImageOne", null, Mutability.RW, false, true ); |
232 |
220 |
|
} |
233 |
221 |
|
|
234 |
222 |
|
public LazyLoadToManyRegular<DBSampleImage, DBAttributeSamples> getValueHolder( DBSampleImage pPO ) |
|
@@ -257,11 +245,9 @@ |
257 |
245 |
|
} |
258 |
246 |
|
} |
259 |
247 |
|
|
260 |
|
- |
public static final AttributeAccessorSCDtoManyRegular<DBSampleImage, DBAttributeSamples> CD_DBAttributeSamplesSetForImageTwo = |
261 |
|
- |
new AttributeAccessor_DBAttributeSamplesSetForImageTwo(); |
|
248 |
+ |
public static final AttributeAccessorSCDtoManyRegular<DBSampleImage, DBAttributeSamples> CD_DBAttributeSamplesSetForImageTwo = new AttributeAccessor_DBAttributeSamplesSetForImageTwo(); |
262 |
249 |
|
|
263 |
|
- |
protected LazyLoadToManyRegular<DBSampleImage, DBAttributeSamples> mDBAttributeSamplesSetForImageTwo = |
264 |
|
- |
new LazyLoadToManyRegular<DBSampleImage, DBAttributeSamples>( (DBSampleImage) this, CD_DBAttributeSamplesSetForImageTwo ); |
|
250 |
+ |
protected LazyLoadToManyRegular<DBSampleImage, DBAttributeSamples> mDBAttributeSamplesSetForImageTwo = new LazyLoadToManyRegular<DBSampleImage, DBAttributeSamples>( (DBSampleImage) this, CD_DBAttributeSamplesSetForImageTwo ); |
265 |
251 |
|
|
266 |
252 |
|
public List<DBAttributeSamples> getDBAttributeSamplesSetForImageTwo() |
267 |
253 |
|
{ |
|
@@ -283,13 +269,11 @@ |
283 |
269 |
|
processLazyLoadMutationRemove( mDBAttributeSamplesSetForImageTwo, pDBAttributeSamples ); |
284 |
270 |
|
} |
285 |
271 |
|
|
286 |
|
- |
private static class AttributeAccessor_DBAttributeSamplesSetForImageTwo |
287 |
|
- |
extends AttributeAccessorSCDtoManyRegular<DBSampleImage, DBAttributeSamples> |
|
272 |
+ |
private static class AttributeAccessor_DBAttributeSamplesSetForImageTwo extends AttributeAccessorSCDtoManyRegular<DBSampleImage, DBAttributeSamples> |
288 |
273 |
|
{ |
289 |
274 |
|
public AttributeAccessor_DBAttributeSamplesSetForImageTwo() |
290 |
275 |
|
{ |
291 |
|
- |
super( "DBAttributeSamplesSetForImageTwo", "ID", DBAttributeSamples.class, "ImageTwo", null, Mutability.RW, false, |
292 |
|
- |
true ); |
|
276 |
+ |
super( "DBAttributeSamplesSetForImageTwo", "ID", DBAttributeSamples.class, "ImageTwo", null, Mutability.RW, false, true ); |
293 |
277 |
|
} |
294 |
278 |
|
|
295 |
279 |
|
public LazyLoadToManyRegular<DBSampleImage, DBAttributeSamples> getValueHolder( DBSampleImage pPO ) |
|
@@ -368,8 +352,7 @@ |
368 |
352 |
|
return CD_LastModified.getName(); |
369 |
353 |
|
} |
370 |
354 |
|
|
371 |
|
- |
protected void setTransactionTimestamp( DBSampleImage pPersistentObject, |
372 |
|
- |
Timestamp pTransactionTimeStamp ) |
|
355 |
+ |
protected void setTransactionTimestamp( DBSampleImage pPersistentObject, Timestamp pTransactionTimeStamp ) |
373 |
356 |
|
{ |
374 |
357 |
|
pPersistentObject.LLsetLastModified( pTransactionTimeStamp ); |
375 |
358 |
|
} |