Revision 35779
branches/dal_time_support/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/spi/FeatureStoreProvider.java | ||
---|---|---|
28 | 28 |
|
29 | 29 |
package org.gvsig.fmap.dal.feature.spi; |
30 | 30 |
|
31 |
import java.util.Collection; |
|
32 | 31 |
import java.util.Iterator; |
33 | 32 |
|
34 | 33 |
import org.gvsig.fmap.dal.DataStoreParameters; |
... | ... | |
41 | 40 |
import org.gvsig.fmap.dal.feature.FeatureType; |
42 | 41 |
import org.gvsig.fmap.dal.spi.DataStoreProvider; |
43 | 42 |
import org.gvsig.fmap.geom.primitive.Envelope; |
44 |
import org.gvsig.timesupport.Interval; |
|
45 | 43 |
|
46 | 44 |
/** |
47 | 45 |
* |
... | ... | |
256 | 254 |
* The limit of the retrieved features. |
257 | 255 |
*/ |
258 | 256 |
public int getRetrievedFeaturesLimit(); |
259 |
|
|
260 |
public Interval getInterval(); |
|
261 |
|
|
262 |
public Collection getInstants(); |
|
263 |
|
|
264 |
public Collection getInstants(Interval interval); |
|
265 | 257 |
} |
branches/dal_time_support/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/spi/AbstractFeatureStoreProvider.java | ||
---|---|---|
518 | 518 |
|
519 | 519 |
public Interval getInterval() { |
520 | 520 |
return null; |
521 |
} |
|
522 |
|
|
523 |
public Collection getInstants() { |
|
521 |
} |
|
522 |
|
|
523 |
public Collection getTimes() { |
|
524 |
// TODO Auto-generated method stub |
|
524 | 525 |
return null; |
525 | 526 |
} |
526 | 527 |
|
527 |
public Collection getInstants(Interval interval) { |
|
528 |
public Collection getTimes(Interval interval) { |
|
529 |
// TODO Auto-generated method stub |
|
528 | 530 |
return null; |
529 |
}
|
|
531 |
} |
|
530 | 532 |
} |
branches/dal_time_support/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/impl/DefaultFeatureStore.java | ||
---|---|---|
1856 | 1856 |
} |
1857 | 1857 |
|
1858 | 1858 |
public Interval getInterval() { |
1859 |
return provider.getInterval(); |
|
1859 |
return this.provider.getInterval();
|
|
1860 | 1860 |
} |
1861 | 1861 |
|
1862 | 1862 |
public Collection getTimes() { |
1863 |
return provider.getInstants();
|
|
1863 |
return this.provider.getTimes();
|
|
1864 | 1864 |
} |
1865 | 1865 |
|
1866 | 1866 |
public Collection getTimes(Interval interval) { |
1867 |
return provider.getInstants();
|
|
1867 |
return this.provider.getTimes(interval);
|
|
1868 | 1868 |
} |
1869 | 1869 |
} |
branches/dal_time_support/libraries/libFMap_dal/src/org/gvsig/fmap/dal/spi/DataStoreProvider.java | ||
---|---|---|
1 | 1 |
package org.gvsig.fmap.dal.spi; |
2 | 2 |
|
3 |
import java.util.Collection; |
|
3 | 4 |
import java.util.Iterator; |
4 | 5 |
|
5 | 6 |
import org.gvsig.fmap.dal.DataServerExplorer; |
... | ... | |
10 | 11 |
import org.gvsig.fmap.dal.exception.ValidateDataParametersException; |
11 | 12 |
import org.gvsig.fmap.dal.resource.Resource; |
12 | 13 |
import org.gvsig.fmap.dal.resource.spi.ResourceProvider; |
14 |
import org.gvsig.timesupport.Interval; |
|
15 |
import org.gvsig.timesupport.Time; |
|
13 | 16 |
import org.gvsig.tools.dispose.Disposable; |
14 | 17 |
import org.gvsig.tools.dynobject.DynObject; |
15 | 18 |
|
... | ... | |
116 | 119 |
*/ |
117 | 120 |
public String getFullName(); |
118 | 121 |
|
122 |
/** |
|
123 |
* Gets the {@link Interval} of the store, that means the temporal |
|
124 |
* interval where the store has valid data. |
|
125 |
* @return |
|
126 |
* a time interval or null if there is not time support |
|
127 |
*/ |
|
128 |
public Interval getInterval(); |
|
129 |
|
|
130 |
/** |
|
131 |
* Gets all the possible values of time for which the store has data. |
|
132 |
* @return |
|
133 |
* a collection of {@link Time} objects. |
|
134 |
*/ |
|
135 |
public Collection getTimes(); |
|
136 |
|
|
137 |
/** |
|
138 |
* Gets all the possible values of time for which the store has data |
|
139 |
* and intersects with an interval. |
|
140 |
* @param interval |
|
141 |
* the interval of time |
|
142 |
* @return |
|
143 |
* a collection of {@link Time} objects. |
|
144 |
*/ |
|
145 |
public Collection getTimes(Interval interval); |
|
146 |
|
|
119 | 147 |
} |
Also available in: Unified diff