|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAbstractFeatureSource
WFSFeatureSource
WFSFeatureStore
public class WFSFeatureStore
DOCUMENT ME!
modules/unsupported/wfs (gt-wfs.jar)
Nested Class Summary |
---|
Nested classes/interfaces inherited from class WFSFeatureSource |
---|
WFSFeatureSource.WFSFeatureResults |
Field Summary | |
---|---|
protected Transaction |
trans
|
Fields inherited from class WFSFeatureSource |
---|
ds, fname |
Fields inherited from class AbstractFeatureSource |
---|
hints, queryCapabilities |
Constructor Summary | |
---|---|
WFSFeatureStore(WFS_1_0_0_DataStore ds,
String typeName)
|
Method Summary | |
---|---|
List<FeatureId> |
addFeatures(FeatureCollection<SimpleFeatureType,SimpleFeature> collection)
Adds all features from the passed feature collection to the datasource. |
List<FeatureId> |
addFeatures(FeatureReader<SimpleFeatureType,SimpleFeature> reader)
|
Transaction |
getTransaction()
Retrieve the Transaction this FeatureSource |
void |
modifyFeatures(AttributeDescriptor[] type,
Object[] value,
Filter filter2)
Modifies the passed attribute types with the passed objects in all features that correspond to the passed OGS filter. |
void |
modifyFeatures(AttributeDescriptor type,
Object value,
Filter filter)
Modifies the passed attribute types with the passed objects in all features that correspond to the passed OGS filter. |
void |
removeFeatures(Filter filter2)
Removes all of the features specificed by the passed filter from the collection. |
void |
setFeatures(FeatureReader<SimpleFeatureType,SimpleFeature> reader)
Deletes the all the current Features of this datasource and adds the new collection. |
void |
setTransaction(Transaction transaction)
Provides a transaction for commit/rollback control of this FeatureStore. |
Methods inherited from class WFSFeatureSource |
---|
addFeatureListener, getBounds, getBounds, getDataStore, getFeatures, getFeatures, getFeatures, getInfo, getName, getSchema, removeFeatureListener |
Methods inherited from class AbstractFeatureSource |
---|
getCount, getFeatures, getQueryCapabilities, getSupportedHints, namedQuery |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface FeatureSource |
---|
addFeatureListener, getBounds, getBounds, getCount, getDataStore, getFeatures, getFeatures, getFeatures, getInfo, getName, getQueryCapabilities, getSchema, getSupportedHints, removeFeatureListener |
Field Detail |
---|
protected Transaction trans
Constructor Detail |
---|
public WFSFeatureStore(WFS_1_0_0_DataStore ds, String typeName)
ds
- typeName
- Method Detail |
---|
public Transaction getTransaction()
AbstractFeatureSource
For a plain FeatureSource
getTransaction
in interface FeatureStore<SimpleFeatureType,SimpleFeature>
getTransaction
in class WFSFeatureSource
AbstractFeatureSource.getTransaction()
public List<FeatureId> addFeatures(FeatureReader<SimpleFeatureType,SimpleFeature> reader) throws IOException
IOException
public List<FeatureId> addFeatures(FeatureCollection<SimpleFeatureType,SimpleFeature> collection) throws IOException
FeatureStore
A list of FeatureIds is returned; one for each Feature in the order created. Please note that these FeatureIds may not be assigned until after a commit has been performed.
addFeatures
in interface FeatureStore<SimpleFeatureType,SimpleFeature>
collection
- The collection of features to add.
IOException
- if anything goes wrong.public void removeFeatures(Filter filter2) throws IOException
FeatureStore
removeFeatures
in interface FeatureStore<SimpleFeatureType,SimpleFeature>
filter2
- An OpenGIS filter; specifies which features to remove.
IOException
- If anything goes wrong.org.geotools.data.FeatureStore#removeFeatures(org.geotools.filter.Filter)
public void modifyFeatures(AttributeDescriptor[] type, Object[] value, Filter filter2) throws IOException
FeatureStore
modifyFeatures
in interface FeatureStore<SimpleFeatureType,SimpleFeature>
type
- The attributes to modify.value
- The values to put in the attribute types.filter2
- An OGC filter to note which attributes to modify.
IOException
- if the attribute and object arrays are not eqaul
length, if the object types do not match the attribute types,
or if there are backend errors.org.geotools.data.FeatureStore#modifyFeatures(org.geotools.feature.AttributeType[], java.lang.Object[], org.geotools.filter.Filter)
public void modifyFeatures(AttributeDescriptor type, Object value, Filter filter) throws IOException
FeatureStore
modifyFeatures
in interface FeatureStore<SimpleFeatureType,SimpleFeature>
type
- The attributes to modify.value
- The values to put in the attribute types.filter
- An OGC filter to note which attributes to modify.
IOException
- If modificaton is not supported, if the object type
do not match the attribute type.org.geotools.data.FeatureStore#modifyFeatures(org.geotools.feature.AttributeType, java.lang.Object, org.geotools.filter.Filter)
public void setFeatures(FeatureReader<SimpleFeatureType,SimpleFeature> reader) throws IOException
FeatureStore
setFeatures
in interface FeatureStore<SimpleFeatureType,SimpleFeature>
reader
- - the collection to be written
IOException
- if there are any datasource errors.FeatureStore.setFeatures(org.geotools.data.FeatureReader)
public void setTransaction(Transaction transaction)
FeatureStore
This method operates as a replacement for setAutoCommitMode. When a transaction is provided you are no longer automatically committing.
In order to return to AutoCommit mode supply the Transaction.AUTO_COMMIT to this method. Since this represents a return to AutoCommit mode the previous Transaction will be commited.
setTransaction
in interface FeatureStore<SimpleFeatureType,SimpleFeature>
transaction
- DOCUMENT ME!FeatureStore.setTransaction(org.geotools.data.Transaction)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |