Revision 38533 branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/FeatureStoreProviderFactory.java

View differences:

FeatureStoreProviderFactory.java
3 3
import java.util.List;
4 4

  
5 5
import org.gvsig.fmap.dal.DataStoreProviderFactory;
6
import org.gvsig.fmap.dal.DataTypes;
7
import org.gvsig.fmap.geom.Geometry;
6 8

  
7 9
public interface FeatureStoreProviderFactory extends DataStoreProviderFactory {
8 10

  
11
    
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
    
9 22
	/**
10
	 * Return a list of geometry types (Geometry.TYPES) supported
11
	 * by this provider. If the provider has not vectorial support
23
	 * {@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
12 30
	 * or has not restrictions over geometry types return null.
13 31
	 * 
14
	 * @return List of Geometry.TYPES or null
32
	 * @return Matrix of Geometry.TYPES, SUBTYPES or null
15 33
	 */
16
	public List getSupportedGeometries();
34
	public List getSupportedGeometryTypesSubtypes();
17 35
	
18
	public int allowMultipleGeometryTypes();
36
	/**
37
	 * 
38
	 * @return whether this factory allows mandatory attributes
39
	 * in the generated stores' feature types.   
40
	 */
41
	public boolean allowsMandatoryAttributes();
19 42
	
43
	/**
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
	
20 66
	public int allowEditableFeatureType();
21 67
	
22 68
}

Also available in: Unified diff