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

History | View | Annotate | Download (3.39 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
import org.apache.commons.lang3.tuple.Pair;
28

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

    
33
public interface FeatureStoreProviderFactory extends DataStoreProviderFactory {
34

    
35

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

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

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

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

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

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

    
92
        public int allowEditableFeatureType();
93

    
94
    public int useLocalIndexesCanImprovePerformance();
95

    
96
    public int isOptimalRecoverFeaturesByReference();
97
    
98
    /**
99
     * Returns max size for attributes names
100
     * returns -1 if it is undefined
101
     * @return
102
     */
103
    public int getMaxAttributeNameSize();
104
    
105
    public boolean supportNumericOID();
106
    
107
    /**
108
     * Return a list of the aggregated functions supported by this provider.
109
     * The list is composed of pairs of function name and description.
110
     * Return null if don't support group.
111
     * 
112
     * @return list of aggregated functions
113
     */
114
    public List<Pair<String,String>> getSupportedAggregateFunctions();
115

    
116
}