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

History | View | Annotate | Download (3.13 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 java.util.function.Function;
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
   * Returns a list of {@link DataTypes} supported by this
37
   * FeatureStoreProviderFactory
38
   *
39
   * @return list of {@link DataTypes} supported by this
40
   * FeatureStoreProviderFactory or null if it has no restrictions on data types
41
   */
42
  public List getSupportedDataTypes();
43

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

    
57
  /**
58
   *
59
   * @return whether this factory allows mandatory attributes in the generated
60
   * stores' feature types.
61
   */
62
  public boolean allowsMandatoryAttributes();
63

    
64
  public boolean preferNotToUseNonNullRestrictions();
65

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

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

    
80
  /**
81
   *
82
   * @return whether stores created by this factory allow several geometry
83
   * types. Actually redundant after adding getSupportedGeometryTypesSubtypes())
84
   */
85
  public int allowEditableFeatureType();
86

    
87
  public int useLocalIndexesCanImprovePerformance();
88

    
89
  public int isOptimalRecoverFeaturesByReference();
90

    
91
  /**
92
   * Returns max size for attributes names returns -1 if it is undefined
93
   *
94
   * @return
95
   */
96
  public int getMaxAttributeNameSize();
97

    
98
  public boolean supportNumericOID();
99

    
100
  /**
101
   *
102
   * @return
103
   */
104
  public Function<String,Integer> allowFunction();
105

    
106
  public int allowGroupBy();
107
  
108
  public boolean allowSpatialIndexSupport();
109
}