Revision 23680 branches/v2_0_0_prep/libraries/libFMap_dataDB/src/org/gvsig/fmap/data/feature/db/jdbc/h2/H2FeatureCollectionEditingFiltered.java
H2FeatureCollectionEditingFiltered.java | ||
---|---|---|
5 | 5 |
import java.util.Iterator; |
6 | 6 |
import java.util.NoSuchElementException; |
7 | 7 |
|
8 |
import org.gvsig.tools.exception.BaseException; |
|
9 | 8 |
import org.gvsig.fmap.data.DataManager; |
10 | 9 |
import org.gvsig.fmap.data.DataStore; |
11 | 10 |
import org.gvsig.fmap.data.ReadException; |
... | ... | |
15 | 14 |
import org.gvsig.fmap.data.feature.db.DBDataFeatureCollection; |
16 | 15 |
import org.gvsig.fmap.data.feature.db.DBFeatureType; |
17 | 16 |
import org.gvsig.fmap.data.feature.expressionevaluator.Filter; |
17 |
import org.gvsig.tools.exception.BaseException; |
|
18 | 18 |
|
19 | 19 |
public class H2FeatureCollectionEditingFiltered extends DBDataFeatureCollection { |
20 | 20 |
protected DBFeatureType featureType; |
... | ... | |
85 | 85 |
|
86 | 86 |
} |
87 | 87 |
|
88 |
|
|
89 |
public Iterator iterator() { |
|
88 |
protected Iterator internalIterator(int index) { |
|
90 | 89 |
checkModified(); |
91 | 90 |
try{ |
92 | 91 |
H2Iterator dbIter = new H2Iterator(this.store, this.featureType, |
93 |
this.sql, this.fetchSize, this.featureManager, this.parser); |
|
92 |
this.sql, this.fetchSize, this.featureManager, this.parser, |
|
93 |
index + 1); |
|
94 | 94 |
return dbIter; |
95 | 95 |
} catch (BaseException e){ |
96 | 96 |
throw new RuntimeException(e); |
... | ... | |
102 | 102 |
public H2Iterator(H2Store store, DBFeatureType featureType, |
103 | 103 |
String sql, |
104 | 104 |
int fetchSize, FeatureManager featureManager, |
105 |
Filter featureFilter) |
|
105 |
Filter featureFilter, int initialPosition)
|
|
106 | 106 |
throws ReadException { |
107 | 107 |
super(store, featureType, sql, fetchSize, featureManager, |
108 |
featureFilter); |
|
108 |
featureFilter, initialPosition);
|
|
109 | 109 |
} |
110 | 110 |
|
111 | 111 |
protected Feature createFeatureFromTheResulset() throws ReadException { |
Also available in: Unified diff