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