Revision 47436 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.spi/src/main/java/org/gvsig/fmap/dal/feature/spi/AbstractFeatureSetProvider.java
AbstractFeatureSetProvider.java | ||
---|---|---|
63 | 63 |
|
64 | 64 |
private final AbstractFeatureStoreProvider store; |
65 | 65 |
private final FeatureQuery query; |
66 |
private final FeatureType featureType; |
|
66 |
private final FeatureType providerFeatureType; |
|
67 |
private final FeatureType storeFeatureType; |
|
67 | 68 |
|
68 | 69 |
/** |
69 | 70 |
* Creates a new {@link FeatureSetProvider}. |
... | ... | |
73 | 74 |
* from |
74 | 75 |
* @param query |
75 | 76 |
* used to create the {@link FeatureSetProvider} |
76 |
* @param featureType
|
|
77 |
* @param providerFeatureType
|
|
77 | 78 |
* the type of feature to get |
78 | 79 |
*/ |
79 | 80 |
public AbstractFeatureSetProvider(AbstractFeatureStoreProvider store, |
80 |
FeatureQuery query, FeatureType featureType) {
|
|
81 |
FeatureQuery query, FeatureType providerFeatureType, FeatureType storeFeatureType) {
|
|
81 | 82 |
this.store = store; |
82 | 83 |
this.query = query; |
83 |
this.featureType = featureType; |
|
84 |
this.providerFeatureType = providerFeatureType; |
|
85 |
this.storeFeatureType = storeFeatureType; |
|
84 | 86 |
} |
85 |
|
|
87 |
public AbstractFeatureSetProvider(AbstractFeatureStoreProvider store, |
|
88 |
FeatureQuery query, FeatureType providerFeatureType) { |
|
89 |
this(store, query, providerFeatureType, null); |
|
90 |
} |
|
86 | 91 |
/** |
87 | 92 |
* Return the {@link AbstractFeatureStoreProvider}. |
88 | 93 |
* |
... | ... | |
102 | 107 |
} |
103 | 108 |
|
104 | 109 |
/** |
105 |
* Returns the type of features to load. |
|
110 |
* Returns the type of features from provider to load.
|
|
106 | 111 |
* |
107 |
* @return the featureType
|
|
112 |
* @return the providerFeatureType
|
|
108 | 113 |
*/ |
109 |
protected FeatureType getFeatureType() { |
|
110 |
return featureType;
|
|
114 |
protected FeatureType getProviderFeatureType() {
|
|
115 |
return providerFeatureType;
|
|
111 | 116 |
} |
112 | 117 |
|
118 |
/** |
|
119 |
* Returns the type of features from store to load. |
|
120 |
* |
|
121 |
* @return the storeFeatureType |
|
122 |
*/ |
|
123 |
protected FeatureType getStoreFeatureType() { |
|
124 |
return storeFeatureType; |
|
125 |
} |
|
126 |
|
|
113 | 127 |
@Override |
114 | 128 |
public final DisposableIterator fastIterator() throws DataException { |
115 | 129 |
return fastIterator(0); |
Also available in: Unified diff