root / branches / v2_0_0_prep / libraries / libFMap_dal / src / org / gvsig / fmap / dal / feature / spi / FeatureStoreProvider.java @ 24496
History | View | Annotate | Download (2.42 KB)
1 |
package org.gvsig.fmap.dal.feature.spi; |
---|---|
2 |
|
3 |
|
4 |
import java.util.Iterator; |
5 |
|
6 |
import org.gvsig.fmap.dal.DataStoreParameters; |
7 |
import org.gvsig.fmap.dal.exceptions.CreateException; |
8 |
import org.gvsig.fmap.dal.exceptions.DataException; |
9 |
import org.gvsig.fmap.dal.exceptions.InitializeException; |
10 |
import org.gvsig.fmap.dal.feature.Feature; |
11 |
import org.gvsig.fmap.dal.feature.FeatureQuery; |
12 |
import org.gvsig.fmap.dal.feature.FeatureSelection; |
13 |
import org.gvsig.fmap.dal.feature.FeatureType; |
14 |
import org.gvsig.fmap.dal.spi.DataStoreProvider; |
15 |
import org.gvsig.fmap.geom.primitive.Envelope; |
16 |
import org.gvsig.metadata.Metadatable; |
17 |
import org.gvsig.tools.persistence.Persistent; |
18 |
|
19 |
public interface FeatureStoreProvider extends Persistent, Metadatable, |
20 |
DataStoreProvider { |
21 |
|
22 |
public String getName(); |
23 |
|
24 |
/**
|
25 |
* Devuelbe un OID valido para una nueva feature.
|
26 |
*
|
27 |
* @return
|
28 |
*/
|
29 |
public Object createNewOID(); |
30 |
|
31 |
/**
|
32 |
* Construye un FeatureData apto para este store
|
33 |
*
|
34 |
* @param type
|
35 |
* @return
|
36 |
* @throws DataException
|
37 |
*/
|
38 |
public FeatureData createFeatureData(FeatureType type) throws DataException; |
39 |
|
40 |
/**
|
41 |
* Devuelbe el FeatureData asociado a la referencia pasada.
|
42 |
*
|
43 |
* @param reference
|
44 |
* @return
|
45 |
* @throws DataException
|
46 |
*/
|
47 |
public FeatureData getFeatureDataByReference(FeatureReferenceProviderServices reference)
|
48 |
throws DataException;
|
49 |
|
50 |
public FeatureSelection createFeatureSelection() throws DataException; |
51 |
|
52 |
public FeatureLocks createFeatureLocks() throws DataException; |
53 |
|
54 |
public FeatureData getFeatureDataByReference(
|
55 |
FeatureReferenceProviderServices reference, FeatureType featureType) |
56 |
throws DataException;
|
57 |
|
58 |
public boolean allowWrite(); |
59 |
|
60 |
public boolean canWriteGeometry(int geometryType) throws DataException; |
61 |
|
62 |
public void performEditing(Iterator deleteds, Iterator inserteds, Iterator updateds) throws DataException; |
63 |
|
64 |
public Envelope getEnvelope();
|
65 |
|
66 |
public FeatureStoreProvider initialize(FeatureStoreProviderServices store)
|
67 |
throws InitializeException;
|
68 |
|
69 |
public void create(DataStoreParameters parameters, FeatureType featureType, |
70 |
boolean overwrite) throws CreateException; |
71 |
|
72 |
public boolean canCreate(); |
73 |
|
74 |
public FeatureSetProvider createSet(FeatureQuery query)
|
75 |
throws DataException;
|
76 |
|
77 |
public boolean isLocksSupported(); |
78 |
|
79 |
public FeatureStoreProviderServices getStoreServices();
|
80 |
|
81 |
public int getFeatureReferenceOIDType(); |
82 |
|
83 |
|
84 |
public boolean supportsAppendMode(); |
85 |
|
86 |
public void beginAppend(); |
87 |
|
88 |
|
89 |
public void endAppend(); |
90 |
|
91 |
public void append(Feature feature); |
92 |
|
93 |
} |