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 @ 43687

History | View | Annotate | Download (2.97 KB)

1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2013 gvSIG Association.
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 3
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24
package org.gvsig.fmap.dal.feature;
25

    
26
import java.util.List;
27

    
28
import org.gvsig.fmap.dal.DataStoreProviderFactory;
29
import org.gvsig.fmap.dal.DataTypes;
30
import org.gvsig.fmap.geom.Geometry;
31

    
32
public interface FeatureStoreProviderFactory extends DataStoreProviderFactory {
33

    
34

    
35
    /**
36
     * Returns a list of {@link DataTypes} supported
37
     * by this FeatureStoreProviderFactory
38
     *
39
     * @return  list of {@link DataTypes} supported
40
     * by this FeatureStoreProviderFactory or null
41
     * if it has no restrictions on data types
42
     */
43
    public List getSupportedDataTypes();
44

    
45
        /**
46
         * {@link Geometry}
47
         *
48
         * Return a matrix (list of pairs) (int, int]
49
         * [Geometry.TYPE,GEOMETRY.SUBTYPE]
50
         * with types and subtypes supported by this provider.
51
         *
52
         * If the provider has not vector support
53
         * or has not restrictions over geometry types return null.
54
         *
55
         * @return Matrix of Geometry.TYPES, SUBTYPES or null
56
         */
57
        public List getSupportedGeometryTypesSubtypes();
58

    
59
        /**
60
         *
61
         * @return whether this factory allows mandatory attributes
62
         * in the generated stores' feature types.
63
         */
64
        public boolean allowsMandatoryAttributes();
65
    
66
    public boolean preferNotToUseNonNullRestrictions();
67

    
68
        /**
69
         *
70
     * @return whether this factory allows primary key attributes
71
     * in the generated stores' feature types.
72
         */
73
        public boolean allowsPrimaryKeyAttributes();
74

    
75
        /**
76
         *
77
         * @return a new instance of a default feature type
78
         * (changes to that feature type do not affect following calls)
79
         */
80
        public FeatureType createDefaultFeatureType();
81

    
82
        /**
83
         *
84
         * @return whether stores created by this factory
85
         * allow several geometry types.
86
         * Actually redundant after adding
87
         * getSupportedGeometryTypesSubtypes())
88
         */
89
        // public int allowMultipleGeometryTypes();
90

    
91
        public int allowEditableFeatureType();
92

    
93
    public int useLocalIndexesCanImprovePerformance();
94

    
95
    /**
96
     * Returns max size for attributes names
97
     * returns -1 if it is undefined
98
     * @return
99
     */
100
    public int getMaxAttributeNameSize();
101
    
102
    public boolean supportNumericOID();
103

    
104
}