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 @ 41244
History | View | Annotate | Download (2.74 KB)
1 | 40559 | jjdelcerro | /**
|
---|---|---|---|
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 | 40435 | jjdelcerro | 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 | /**
|
||
67 | *
|
||
68 | * @return whether this factory allows primary key attributes
|
||
69 | * in the generated stores' feature types.
|
||
70 | */
|
||
71 | public boolean allowsPrimaryKeyAttributes(); |
||
72 | |||
73 | /**
|
||
74 | *
|
||
75 | * @return a new instance of a default feature type
|
||
76 | * (changes to that feature type do not affect following calls)
|
||
77 | */
|
||
78 | public FeatureType createDefaultFeatureType();
|
||
79 | |||
80 | /**
|
||
81 | *
|
||
82 | * @return whether stores created by this factory
|
||
83 | * allow several geometry types.
|
||
84 | * Actually redundant after adding
|
||
85 | * getSupportedGeometryTypesSubtypes())
|
||
86 | */
|
||
87 | // public int allowMultipleGeometryTypes();
|
||
88 | |||
89 | public int allowEditableFeatureType(); |
||
90 | 41244 | jjdelcerro | |
91 | public int useLocalIndexesCanImprovePerformance(); |
||
92 | 40435 | jjdelcerro | } |