Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.dal / org.gvsig.fmap.dal.api / src / main / java / org / gvsig / fmap / dal / feature / FeatureStoreProviderFactory.java @ 40435

History | View | Annotate | Download (1.74 KB)

1
package org.gvsig.fmap.dal.feature;
2

    
3
import java.util.List;
4

    
5
import org.gvsig.fmap.dal.DataStoreProviderFactory;
6
import org.gvsig.fmap.dal.DataTypes;
7
import org.gvsig.fmap.geom.Geometry;
8

    
9
public interface FeatureStoreProviderFactory extends DataStoreProviderFactory {
10

    
11
    
12
    /**
13
     * Returns a list of {@link DataTypes} supported
14
     * by this FeatureStoreProviderFactory
15
     * 
16
     * @return  list of {@link DataTypes} supported
17
     * by this FeatureStoreProviderFactory or null
18
     * if it has no restrictions on data types
19
     */
20
    public List getSupportedDataTypes();
21
    
22
        /**
23
         * {@link Geometry}
24
         * 
25
         * Return a matrix (list of pairs) (int, int]
26
         * [Geometry.TYPE,GEOMETRY.SUBTYPE]
27
         * with types and subtypes supported by this provider.
28
         * 
29
         * If the provider has not vector support
30
         * or has not restrictions over geometry types return null.
31
         * 
32
         * @return Matrix of Geometry.TYPES, SUBTYPES or null
33
         */
34
        public List getSupportedGeometryTypesSubtypes();
35
        
36
        /**
37
         * 
38
         * @return whether this factory allows mandatory attributes
39
         * in the generated stores' feature types.   
40
         */
41
        public boolean allowsMandatoryAttributes();
42
        
43
        /**
44
         * 
45
     * @return whether this factory allows primary key attributes
46
     * in the generated stores' feature types.  
47
         */
48
        public boolean allowsPrimaryKeyAttributes();
49
        
50
        /**
51
         * 
52
         * @return a new instance of a default feature type
53
         * (changes to that feature type do not affect following calls)
54
         */
55
        public FeatureType createDefaultFeatureType();
56
        
57
        /**
58
         * 
59
         * @return whether stores created by this factory
60
         * allow several geometry types.
61
         * Actually redundant after adding
62
         * getSupportedGeometryTypesSubtypes())
63
         */
64
        // public int allowMultipleGeometryTypes();
65
        
66
        public int allowEditableFeatureType();
67
        
68
}