Statistics
| Revision:

root / branches / Mobile_Compatible_Hito_1 / libFMap_mobile_shp_driver / src-file / org / gvsig / data / datastores / vectorial / file / shp_util / IGeometricDataStore.java @ 22037

History | View | Annotate | Download (1.93 KB)

1
package org.gvsig.data.datastores.vectorial.file.shp_util;
2

    
3
import org.gvsig.data.CloseException;
4
import org.gvsig.data.DataCollection;
5
import org.gvsig.data.OpenException;
6
import org.gvsig.data.ReadException;
7
import org.gvsig.data.spatialprovisionalold.IExtent;
8
import org.gvsig.data.vectorial.Feature;
9
import org.gvsig.data.vectorial.FeatureID;
10
import org.gvsig.data.vectorial.FeatureType;
11
import org.opengis.filter.Filter;
12
import org.opengis.filter.sort.SortBy;
13

    
14
/**
15
 * This interface allows different data store to share code.
16
 *  
17
 * @author jldominguez
18
 *
19
 */
20
public interface IGeometricDataStore {
21

    
22
        /**
23
         * Gets the full extent of the data store
24
         * @return the full extent of the data store
25
         */
26
        public IExtent getFullExtent();
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
         */
37
        public DataCollection getDataCollection(FeatureType type, Filter filter,
38
                        SortBy[] order) throws ReadException;
39

    
40
        /**
41
         * 
42
         * @return the default feature type
43
         */
44
        public FeatureType getDefaultFeatureType();
45

    
46
        /**
47
         * Opens the data store
48
         * @throws OpenException
49
         */
50
        public void doOpen() throws OpenException;
51

    
52
        /**
53
         * Closes the data store
54
         * @throws CloseException
55
         */
56
        public void doClose() throws CloseException;
57

    
58
        /**
59
         * Destroys inner objects and releases resources.
60
         *
61
         */
62
        public void doDispose();
63

    
64
        /**
65
         * Sets whether or not only geometries should be loaded
66
         * @param b Whether only geometries should be loaded
67
         */
68
        public void setOnlyGeometry(boolean b);
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
         */
77
        public Feature getFeatureByID(FeatureID id, FeatureType type) throws ReadException;
78
}