|
@@ -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 DBNodePO extends PersistentObjectImpl<DBNode> |
17 |
17 |
|
{ |
18 |
18 |
|
private static final ConstructionControl CONSTRUCTION_CONTROL = new ConstructionControl(); |
|
@@ -71,8 +71,7 @@ |
71 |
71 |
|
mID = pID; |
72 |
72 |
|
} |
73 |
73 |
|
|
74 |
|
- |
private static class AttributeAccessor_ID extends AttributeAccessorSCDsimplePersistedReadOnly<DBNode> |
75 |
|
- |
implements NonImportableFeature |
|
74 |
+ |
private static class AttributeAccessor_ID extends AttributeAccessorSCDsimplePersistedReadOnly<DBNode> implements NonImportableFeature |
76 |
75 |
|
{ |
77 |
76 |
|
public AttributeAccessor_ID() |
78 |
77 |
|
{ |
|
@@ -191,8 +190,7 @@ |
191 |
190 |
|
|
192 |
191 |
|
public static final AttributeAccessorSCDtoOneRegular<DBNode, DBNode> CD_Parent = new AttributeAccessor_Parent(); |
193 |
192 |
|
|
194 |
|
- |
protected LazyLoadToOneRegular<DBNode, DBNode> mParent = new LazyLoadToOneRegular<DBNode, DBNode>( (DBNode) this, |
195 |
|
- |
CD_Parent ); // Note: DBNode is the related TO object |
|
193 |
+ |
protected LazyLoadToOneRegular<DBNode, DBNode> mParent = new LazyLoadToOneRegular<DBNode, DBNode>( (DBNode) this, CD_Parent ); // Note: DBNode is the related TO object |
196 |
194 |
|
|
197 |
195 |
|
public DBNode getParent() |
198 |
196 |
|
{ |
|
@@ -208,8 +206,7 @@ |
208 |
206 |
|
{ |
209 |
207 |
|
public AttributeAccessor_Parent() |
210 |
208 |
|
{ |
211 |
|
- |
super( "Parent", "parent_id", DBNode.class, "ID", "DBNodeSetForParent", false, false, Mutability.RW |
212 |
|
- |
); |
|
209 |
+ |
super( "Parent", "parent_id", DBNode.class, "ID", "DBNodeSetForParent", false, false, Mutability.RW ); |
213 |
210 |
|
} |
214 |
211 |
|
|
215 |
212 |
|
public LazyLoadToOneRegular<DBNode, DBNode> getValueHolder( DBNode pPO ) |
|
@@ -238,11 +235,9 @@ |
238 |
235 |
|
} |
239 |
236 |
|
} |
240 |
237 |
|
|
241 |
|
- |
public static final AttributeAccessorSCDtoManyRegular<DBNode, DBNode> CD_DBNodeSetForParent = |
242 |
|
- |
new AttributeAccessor_DBNodeSetForParent(); |
|
238 |
+ |
public static final AttributeAccessorSCDtoManyRegular<DBNode, DBNode> CD_DBNodeSetForParent = new AttributeAccessor_DBNodeSetForParent(); |
243 |
239 |
|
|
244 |
|
- |
protected LazyLoadToManyRegular<DBNode, DBNode> mDBNodeSetForParent = new LazyLoadToManyRegular<DBNode, DBNode>( |
245 |
|
- |
(DBNode) this, CD_DBNodeSetForParent ); // Note: DBNode is the related TO object |
|
240 |
+ |
protected LazyLoadToManyRegular<DBNode, DBNode> mDBNodeSetForParent = new LazyLoadToManyRegular<DBNode, DBNode>( (DBNode) this, CD_DBNodeSetForParent ); // Note: DBNode is the related TO object |
246 |
241 |
|
|
247 |
242 |
|
public List<DBNode> getDBNodeSetForParent() |
248 |
243 |
|
{ |
|
@@ -264,8 +259,7 @@ |
264 |
259 |
|
processLazyLoadMutationRemove( mDBNodeSetForParent, pDBNodeSetForParent ); |
265 |
260 |
|
} |
266 |
261 |
|
|
267 |
|
- |
private static class AttributeAccessor_DBNodeSetForParent |
268 |
|
- |
extends AttributeAccessorSCDtoManyRegular<DBNode, DBNode> |
|
262 |
+ |
private static class AttributeAccessor_DBNodeSetForParent extends AttributeAccessorSCDtoManyRegular<DBNode, DBNode> |
269 |
263 |
|
{ |
270 |
264 |
|
public AttributeAccessor_DBNodeSetForParent() |
271 |
265 |
|
{ |
|
@@ -313,8 +307,7 @@ |
313 |
307 |
|
mSnagColumn = pSnagColumn; |
314 |
308 |
|
} |
315 |
309 |
|
|
316 |
|
- |
private static class AttributeAccessor_SnagColumn extends AttributeAccessorSCDsimplePersistedReadOnly<DBNode> |
317 |
|
- |
implements NonImportableFeature |
|
310 |
+ |
private static class AttributeAccessor_SnagColumn extends AttributeAccessorSCDsimplePersistedReadOnly<DBNode> implements NonImportableFeature |
318 |
311 |
|
{ |
319 |
312 |
|
public AttributeAccessor_SnagColumn() |
320 |
313 |
|
{ |