litesoft
Diff Revisions
938
vs
939
for /trunk/Java/core/Server/src/org/litesoft/bo/views/server/PoServerVoDataProvider.java
|
@@ -1,19 +1,22 @@ |
1 |
1 |
|
package org.litesoft.bo.views.server; |
2 |
2 |
|
|
3 |
|
- |
import java.util.*; |
4 |
|
- |
|
5 |
3 |
|
import org.litesoft.bo.attributes.*; |
6 |
4 |
|
import org.litesoft.bo.change.*; |
7 |
5 |
|
import org.litesoft.bo.views.*; |
8 |
6 |
|
import org.litesoft.bo.views.communication.*; |
|
7 |
+ |
import org.litesoft.commonfoundation.base.*; |
|
8 |
+ |
import org.litesoft.commonfoundation.exceptions.*; |
|
9 |
+ |
import org.litesoft.commonfoundation.interators.*; |
|
10 |
+ |
import org.litesoft.commonfoundation.typeutils.*; |
9 |
11 |
|
import org.litesoft.core.simpletypes.*; |
10 |
|
- |
import org.litesoft.core.typeutils.*; |
11 |
|
- |
import org.litesoft.core.typeutils.Objects; |
12 |
12 |
|
import org.litesoft.core.util.*; |
13 |
13 |
|
import org.litesoft.orsup.base.*; |
14 |
14 |
|
import org.litesoft.orsup.selection.*; |
15 |
15 |
|
import org.litesoft.orsup.transact.*; |
16 |
16 |
|
|
|
17 |
+ |
import org.litesoft.commonfoundation.typeutils.Objects; |
|
18 |
+ |
import java.util.*; |
|
19 |
+ |
|
17 |
20 |
|
public class PoServerVoDataProvider<T extends IViewObject> extends AbstractServerRequestRowOrRowsVoDataProvider<T> |
18 |
21 |
|
{ |
19 |
22 |
|
public static final WhereClauseFactory WCF = WhereClauseFactory.INSTANCE; |
|
@@ -259,7 +262,7 @@ |
259 |
262 |
|
return new SizedIterator<T>( new PoToVoIterator<T>( false, zPOs ) ); |
260 |
263 |
|
} |
261 |
264 |
|
} |
262 |
|
- |
return new SizedIterator<T>( new PoToVoIterator<T>( false, NullIterator.getInstance() ) ); |
|
265 |
+ |
return new SizedIterator<T>( new PoToVoIterator<T>( false, Iterators.empty() ) ); |
263 |
266 |
|
} |
264 |
267 |
|
|
265 |
268 |
|
/** |
|
@@ -330,7 +333,7 @@ |
330 |
333 |
|
return pFinder.findAllCursored( mPOMetaData.getPOregistrationName(), pWhereClause, pOrderBy ); |
331 |
334 |
|
} |
332 |
335 |
|
|
333 |
|
- |
protected class PoToVoIterator<VO> extends AbstractReadOnlyIterator<VO> |
|
336 |
+ |
protected class PoToVoIterator<VO> extends Iterators.AbstractReadOnly<VO> |
334 |
337 |
|
{ |
335 |
338 |
|
private boolean mOnlyQueryAttributes; |
336 |
339 |
|
private Iterator mIterator; |