litesoft
Diff Revisions
150
vs
151
for /trunk/Java/core/Server/src/org/litesoft/orsup/nonpublic/AbstractRowSourcePOQueryIterator.java
|
@@ -3,17 +3,14 @@ |
3 |
3 |
|
|
4 |
4 |
|
import org.litesoft.orsup.base.*; |
5 |
5 |
|
|
6 |
|
- |
public abstract class AbstractRowSourcePOQueryIterator<T extends PersistentObject> |
7 |
|
- |
extends AbstractPOQueryIterator<T> |
|
6 |
+ |
public abstract class AbstractRowSourcePOQueryIterator<T extends PersistentObject> extends AbstractPOQueryIterator<T> |
8 |
7 |
|
{ |
9 |
8 |
|
private PersistenceHelperRowSource mRowSource; |
10 |
9 |
|
private RowAcceptor mRowAcceptor = RowAcceptor.NULL; |
11 |
10 |
|
private Class mKeyFilterClass = null; |
12 |
11 |
|
private int mPrimaryKeyIndex = 0; |
13 |
12 |
|
|
14 |
|
- |
protected AbstractRowSourcePOQueryIterator( MetaDataForPOinternalExtension pMetaDataForPO, Finder pFinder, |
15 |
|
- |
POQueryFilter pQueryFilter, |
16 |
|
- |
PersistenceHelperRowSource pRowSource ) |
|
13 |
+ |
protected AbstractRowSourcePOQueryIterator( MetaDataForPOinternalExtension pMetaDataForPO, Finder pFinder, POQueryFilter pQueryFilter, PersistenceHelperRowSource pRowSource ) |
17 |
14 |
|
{ |
18 |
15 |
|
super( pMetaDataForPO, pFinder, determinePOInstanceQueryFilter( pQueryFilter ) ); |
19 |
16 |
|
mRowSource = PersistenceHelperRowSource.NULL.deNull( pRowSource ); |
|
@@ -32,8 +29,7 @@ |
32 |
29 |
|
Integer zPrimaryKeyIndex = mMetaDataForPO.getPrimaryKeyPersistingAccessorSCDsIndex(); |
33 |
30 |
|
if ( zPrimaryKeyIndex != null ) |
34 |
31 |
|
{ |
35 |
|
- |
mRowAcceptor = new AbstractRowSourcePOQueryIterator.IdRowAcceptor( |
36 |
|
- |
(POKeyQueryFilter) pQueryFilter, zPrimaryKeyIndex ); |
|
32 |
+ |
mRowAcceptor = new AbstractRowSourcePOQueryIterator.IdRowAcceptor( (POKeyQueryFilter) pQueryFilter, zPrimaryKeyIndex ); |
37 |
33 |
|
mKeyFilterClass = pQueryFilter.getClass(); |
38 |
34 |
|
mPrimaryKeyIndex = zPrimaryKeyIndex; |
39 |
35 |
|
} |
|
@@ -67,8 +63,7 @@ |
67 |
63 |
|
break; |
68 |
64 |
|
default: |
69 |
65 |
|
// Note: this is an error so that resources do NOT need to be cleaned up! |
70 |
|
- |
throw new Error( |
71 |
|
- |
"Combo of '" + pQueryFilter.getType() + "' and " + pQueryFilter.getClass() ); |
|
66 |
+ |
throw new Error( "Combo of '" + pQueryFilter.getType() + "' and " + pQueryFilter.getClass() ); |
72 |
67 |
|
} |
73 |
68 |
|
} |
74 |
69 |
|
return null; |
|
@@ -90,8 +85,7 @@ |
90 |
85 |
|
//noinspection unchecked |
91 |
86 |
|
return (T) mMetaDataForPO.createPO( mFinder, row ); |
92 |
87 |
|
} |
93 |
|
- |
POQueryFilter.LOGGER.trace.log( getMD(), " PO w/ ID ", row[mPrimaryKeyIndex], " filtered out by ", |
94 |
|
- |
mKeyFilterClass ); |
|
88 |
+ |
POQueryFilter.LOGGER.trace.log( getMD(), " PO w/ ID ", row[mPrimaryKeyIndex], " filtered out by ", mKeyFilterClass ); |
95 |
89 |
|
} |
96 |
90 |
|
return null; |
97 |
91 |
|
} |