root / tags / v2_0_0_Build_2055 / libraries / libFMap_dal / src / org / gvsig / fmap / dal / feature / FeatureStoreProviderFactory.java @ 38961
History | View | Annotate | Download (1.74 KB)
1 | 36202 | jjdelcerro | package org.gvsig.fmap.dal.feature; |
---|---|---|---|
2 | |||
3 | import java.util.List; |
||
4 | |||
5 | import org.gvsig.fmap.dal.DataStoreProviderFactory; |
||
6 | 38533 | jldominguez | import org.gvsig.fmap.dal.DataTypes; |
7 | import org.gvsig.fmap.geom.Geometry; |
||
8 | 36202 | jjdelcerro | |
9 | public interface FeatureStoreProviderFactory extends DataStoreProviderFactory { |
||
10 | |||
11 | 38533 | jldominguez | |
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 | 36202 | jjdelcerro | /**
|
23 | 38533 | jldominguez | * {@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 | 36202 | jjdelcerro | * or has not restrictions over geometry types return null.
|
31 | *
|
||
32 | 38533 | jldominguez | * @return Matrix of Geometry.TYPES, SUBTYPES or null
|
33 | 36202 | jjdelcerro | */
|
34 | 38533 | jldominguez | public List getSupportedGeometryTypesSubtypes(); |
35 | 36208 | fdiaz | |
36 | 38533 | jldominguez | /**
|
37 | *
|
||
38 | * @return whether this factory allows mandatory attributes
|
||
39 | * in the generated stores' feature types.
|
||
40 | */
|
||
41 | public boolean allowsMandatoryAttributes(); |
||
42 | 37333 | fdiaz | |
43 | 38533 | jldominguez | /**
|
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 | 37333 | fdiaz | public int allowEditableFeatureType(); |
67 | |||
68 | 36202 | jjdelcerro | } |