Revision 45647 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.impl/src/main/java/org/gvsig/fmap/dal/feature/impl/IndexFeatureSet.java
IndexFeatureSet.java | ||
---|---|---|
38 | 38 |
import org.gvsig.fmap.dal.feature.FeatureSet; |
39 | 39 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
40 | 40 |
import org.gvsig.fmap.dal.feature.FeatureType; |
41 |
import org.gvsig.fmap.dal.feature.impl.featurereference.FeatureReferenceFactory; |
|
41 | 42 |
import org.gvsig.fmap.dal.feature.impl.featureset.AbstractFeatureSet; |
42 | 43 |
import org.gvsig.fmap.dal.feature.spi.FeatureProvider; |
43 | 44 |
import org.gvsig.fmap.dal.feature.spi.FeatureReferenceProviderServices; |
... | ... | |
71 | 72 |
|
72 | 73 |
public Object next() { |
73 | 74 |
Object oid = it.next(); |
74 |
FeatureReference ref = new DefaultFeatureReference(store
|
|
75 |
.getFeatureStore(), oid);
|
|
75 |
FeatureReference ref = FeatureReferenceFactory.createFromOID(
|
|
76 |
store.getFeatureStore(), oid);
|
|
76 | 77 |
try { |
77 | 78 |
return store.getFeatureStore().getFeatureByReference(ref); |
78 | 79 |
} catch (DataException e) { |
... | ... | |
106 | 107 |
public Object next() { |
107 | 108 |
Object oid = it.next(); |
108 | 109 |
try { |
109 |
// Long longer=new Long(((Integer)oid).longValue()); |
|
110 |
FeatureReference ref = new DefaultFeatureReference(store |
|
111 |
.getFeatureStore(), oid); |
|
110 |
FeatureReference ref = FeatureReferenceFactory.createFromOID( |
|
111 |
store.getFeatureStore(), oid); |
|
112 | 112 |
FeatureProvider data = storeProvider |
113 | 113 |
.getFeatureProviderByReference((FeatureReferenceProviderServices) ref); |
114 | 114 |
|
Also available in: Unified diff