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