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 @ 44331
History | View | Annotate | Download (3.02 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 | 42533 | dmartinezizquierdo | |
35 | 40435 | jjdelcerro | /**
|
36 | * Returns a list of {@link DataTypes} supported
|
||
37 | * by this FeatureStoreProviderFactory
|
||
38 | 42533 | dmartinezizquierdo | *
|
39 | 40435 | jjdelcerro | * @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 | 42533 | dmartinezizquierdo | |
45 | 40435 | jjdelcerro | /**
|
46 | * {@link Geometry}
|
||
47 | 42533 | dmartinezizquierdo | *
|
48 | 40435 | jjdelcerro | * Return a matrix (list of pairs) (int, int]
|
49 | * [Geometry.TYPE,GEOMETRY.SUBTYPE]
|
||
50 | * with types and subtypes supported by this provider.
|
||
51 | 42533 | dmartinezizquierdo | *
|
52 | 40435 | jjdelcerro | * If the provider has not vector support
|
53 | * or has not restrictions over geometry types return null.
|
||
54 | 42533 | dmartinezizquierdo | *
|
55 | 40435 | jjdelcerro | * @return Matrix of Geometry.TYPES, SUBTYPES or null
|
56 | */
|
||
57 | public List getSupportedGeometryTypesSubtypes(); |
||
58 | 42533 | dmartinezizquierdo | |
59 | 40435 | jjdelcerro | /**
|
60 | 42533 | dmartinezizquierdo | *
|
61 | 40435 | jjdelcerro | * @return whether this factory allows mandatory attributes
|
62 | 42533 | dmartinezizquierdo | * in the generated stores' feature types.
|
63 | 40435 | jjdelcerro | */
|
64 | public boolean allowsMandatoryAttributes(); |
||
65 | 43687 | jjdelcerro | |
66 | public boolean preferNotToUseNonNullRestrictions(); |
||
67 | 42533 | dmartinezizquierdo | |
68 | 40435 | jjdelcerro | /**
|
69 | 42533 | dmartinezizquierdo | *
|
70 | 40435 | jjdelcerro | * @return whether this factory allows primary key attributes
|
71 | 42533 | dmartinezizquierdo | * in the generated stores' feature types.
|
72 | 40435 | jjdelcerro | */
|
73 | public boolean allowsPrimaryKeyAttributes(); |
||
74 | 42533 | dmartinezizquierdo | |
75 | 40435 | jjdelcerro | /**
|
76 | 42533 | dmartinezizquierdo | *
|
77 | 40435 | jjdelcerro | * @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 | 42533 | dmartinezizquierdo | |
82 | 40435 | jjdelcerro | /**
|
83 | 42533 | dmartinezizquierdo | *
|
84 | 40435 | jjdelcerro | * @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 | 42533 | dmartinezizquierdo | |
91 | 40435 | jjdelcerro | public int allowEditableFeatureType(); |
92 | 41244 | jjdelcerro | |
93 | 42533 | dmartinezizquierdo | public int useLocalIndexesCanImprovePerformance(); |
94 | |||
95 | 43708 | jjdelcerro | public int isOptimalRecoverFeaturesByReference(); |
96 | |||
97 | 42533 | dmartinezizquierdo | /**
|
98 | * Returns max size for attributes names
|
||
99 | * returns -1 if it is undefined
|
||
100 | * @return
|
||
101 | */
|
||
102 | public int getMaxAttributeNameSize(); |
||
103 | 43358 | jjdelcerro | |
104 | public boolean supportNumericOID(); |
||
105 | 42533 | dmartinezizquierdo | |
106 | 40435 | jjdelcerro | } |