Revision 22037 branches/Mobile_Compatible_Hito_1/libFMap_mobile_shp_driver/src-file/org/gvsig/data/datastores/vectorial/file/shp_util/IGeometricDataStore.java
IGeometricDataStore.java | ||
---|---|---|
11 | 11 |
import org.opengis.filter.Filter; |
12 | 12 |
import org.opengis.filter.sort.SortBy; |
13 | 13 |
|
14 |
/** |
|
15 |
* This interface allows different data store to share code. |
|
16 |
* |
|
17 |
* @author jldominguez |
|
18 |
* |
|
19 |
*/ |
|
14 | 20 |
public interface IGeometricDataStore { |
15 | 21 |
|
22 |
/** |
|
23 |
* Gets the full extent of the data store |
|
24 |
* @return the full extent of the data store |
|
25 |
*/ |
|
16 | 26 |
public IExtent getFullExtent(); |
17 | 27 |
|
28 |
/** |
|
29 |
* Gets a data collection from this data store |
|
30 |
* |
|
31 |
* @param type the feature type |
|
32 |
* @param filter the filter, or null if there is no filter |
|
33 |
* @param order the order criteria, or null |
|
34 |
* @return the data collection for the given parameters |
|
35 |
* @throws ReadException |
|
36 |
*/ |
|
18 | 37 |
public DataCollection getDataCollection(FeatureType type, Filter filter, |
19 | 38 |
SortBy[] order) throws ReadException; |
20 | 39 |
|
40 |
/** |
|
41 |
* |
|
42 |
* @return the default feature type |
|
43 |
*/ |
|
21 | 44 |
public FeatureType getDefaultFeatureType(); |
22 | 45 |
|
46 |
/** |
|
47 |
* Opens the data store |
|
48 |
* @throws OpenException |
|
49 |
*/ |
|
23 | 50 |
public void doOpen() throws OpenException; |
24 | 51 |
|
52 |
/** |
|
53 |
* Closes the data store |
|
54 |
* @throws CloseException |
|
55 |
*/ |
|
25 | 56 |
public void doClose() throws CloseException; |
26 | 57 |
|
58 |
/** |
|
59 |
* Destroys inner objects and releases resources. |
|
60 |
* |
|
61 |
*/ |
|
27 | 62 |
public void doDispose(); |
28 | 63 |
|
64 |
/** |
|
65 |
* Sets whether or not only geometries should be loaded |
|
66 |
* @param b Whether only geometries should be loaded |
|
67 |
*/ |
|
29 | 68 |
public void setOnlyGeometry(boolean b); |
30 | 69 |
|
70 |
/** |
|
71 |
* Gets a feature for the given parameters |
|
72 |
* @param id the id of the feature of interest |
|
73 |
* @param type the feature type |
|
74 |
* @return the feature |
|
75 |
* @throws ReadException |
|
76 |
*/ |
|
31 | 77 |
public Feature getFeatureByID(FeatureID id, FeatureType type) throws ReadException; |
32 | 78 |
} |
Also available in: Unified diff