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

History | View | Annotate | Download (3.17 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 44712 jjdelcerro
import java.util.function.Function;
28 40435 jjdelcerro
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 44712 jjdelcerro
  /**
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 42533 dmartinezizquierdo
44 44712 jjdelcerro
  /**
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 42533 dmartinezizquierdo
57 44712 jjdelcerro
  /**
58
   *
59
   * @return whether this factory allows mandatory attributes in the generated
60
   * stores' feature types.
61
   */
62
  public boolean allowsMandatoryAttributes();
63 42533 dmartinezizquierdo
64 44712 jjdelcerro
  public boolean preferNotToUseNonNullRestrictions();
65 42533 dmartinezizquierdo
66 44712 jjdelcerro
  /**
67
   *
68
   * @return whether this factory allows primary key attributes in the generated
69
   * stores' feature types.
70
   */
71
  public boolean allowsPrimaryKeyAttributes();
72 42533 dmartinezizquierdo
73 44712 jjdelcerro
  /**
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 42533 dmartinezizquierdo
80 44712 jjdelcerro
  /**
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 42533 dmartinezizquierdo
87 44712 jjdelcerro
  public int useLocalIndexesCanImprovePerformance();
88 41244 jjdelcerro
89 44712 jjdelcerro
  public int isOptimalRecoverFeaturesByReference();
90 42533 dmartinezizquierdo
91 44712 jjdelcerro
  /**
92
   * Returns max size for attributes names returns -1 if it is undefined
93
   *
94
   * @return
95
   */
96
  public int getMaxAttributeNameSize();
97 42533 dmartinezizquierdo
98 44712 jjdelcerro
  public boolean supportNumericOID();
99
100
  /**
101
   *
102
   * @return
103
   */
104
  public Function<String,Integer> allowFunction();
105
106
  public int allowGroupBy();
107 45008 omartinez
108
  public boolean allowSpatialIndexSupport();
109 46575 jjdelcerro
110
  public int supportPassthroughMode();
111 40435 jjdelcerro
}