|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.arcsde.data.ArcSdeFeatureSource
org.geotools.arcsde.data.ArcSdeFeatureStore
public class ArcSdeFeatureStore
Field Summary |
---|
Fields inherited from class org.geotools.arcsde.data.ArcSdeFeatureSource |
---|
dataStore, transaction, typeInfo |
Constructor Summary | |
---|---|
ArcSdeFeatureStore(org.geotools.arcsde.data.FeatureTypeInfo typeInfo,
ArcSDEDataStore arcSDEDataStore)
|
Method Summary | |
---|---|
java.util.List<org.opengis.filter.identity.FeatureId> |
addFeatures(FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> collection)
Adds all features from the passed feature collection to the datasource. |
Transaction |
getTransaction()
Used to access the Transaction this DataSource is currently opperating against. |
void |
modifyFeatures(org.opengis.feature.type.AttributeDescriptor[] attributes,
java.lang.Object[] values,
org.opengis.filter.Filter filter)
Modifies the passed attribute types with the passed objects in all features that correspond to the passed OGS filter. |
void |
modifyFeatures(org.opengis.feature.type.AttributeDescriptor type,
java.lang.Object value,
org.opengis.filter.Filter filter)
Modifies the passed attribute types with the passed objects in all features that correspond to the passed OGS filter. |
void |
removeFeatures(org.opengis.filter.Filter filter)
Removes all of the features specificed by the passed filter from the collection. |
void |
setFeatures(FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> reader)
Deletes the all the current Features of this datasource and adds the new collection. |
void |
setTransaction(Transaction transaction)
Sets this FeatureStore transaction. |
Methods inherited from class org.geotools.arcsde.data.ArcSdeFeatureSource |
---|
addFeatureListener, getBounds, getBounds, getBounds, getCount, getCount, getDataStore, getfeatureReader, getFeatures, getFeatures, getFeatures, getInfo, getName, getQueryCapabilities, getSchema, getSession, getSupportedHints, getVersionHandler, removeFeatureListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.geotools.data.FeatureSource |
---|
addFeatureListener, getBounds, getBounds, getCount, getDataStore, getFeatures, getFeatures, getFeatures, getInfo, getName, getQueryCapabilities, getSchema, getSupportedHints, removeFeatureListener |
Constructor Detail |
---|
public ArcSdeFeatureStore(org.geotools.arcsde.data.FeatureTypeInfo typeInfo, ArcSDEDataStore arcSDEDataStore)
Method Detail |
---|
public Transaction getTransaction()
FeatureStore
Example Use: adding features to a road DataSource
Transaction t = roads.getTransaction();
try{
roads.addFeatures( features );
roads.getTransaction().commit();
}
catch( IOException erp ){
//something went wrong;
roads.getTransaction().rollback();
}
getTransaction
in interface FeatureStore<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
Transaction.AUTO_COMMIT
FeatureStore.getTransaction()
public void setTransaction(Transaction transaction)
If transaction is not auto commit, initiates an ArcTransactionState
with the
dataStore's connection pool as key.
setTransaction
in interface FeatureStore<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
transaction
- DOCUMENT ME!FeatureStore.setTransaction(Transaction)
public java.util.List<org.opengis.filter.identity.FeatureId> addFeatures(FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> collection) throws java.io.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<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
collection
- The collection of features to add.
java.io.IOException
- if anything goes wrong.FeatureStore#addFeatures(FeatureCollection)
public void modifyFeatures(org.opengis.feature.type.AttributeDescriptor[] attributes, java.lang.Object[] values, org.opengis.filter.Filter filter) throws java.io.IOException
FeatureStore
modifyFeatures
in interface FeatureStore<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
attributes
- The attributes to modify.values
- The values to put in the attribute types.filter
- An OGC filter to note which attributes to modify.
java.io.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.FeatureStore.modifyFeatures(AttributeDescriptor[], Object[], Filter)
public final void modifyFeatures(org.opengis.feature.type.AttributeDescriptor type, java.lang.Object value, org.opengis.filter.Filter filter) throws java.io.IOException
FeatureStore
modifyFeatures
in interface FeatureStore<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.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.
java.io.IOException
- If modificaton is not supported, if the object type
do not match the attribute type.FeatureStore.modifyFeatures(AttributeDescriptor, Object, Filter)
public void removeFeatures(org.opengis.filter.Filter filter) throws java.io.IOException
FeatureStore
removeFeatures
in interface FeatureStore<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
filter
- An OpenGIS filter; specifies which features to remove.
java.io.IOException
- If anything goes wrong.FeatureStore.removeFeatures(Filter)
public void setFeatures(FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> reader) throws java.io.IOException
FeatureStore
setFeatures
in interface FeatureStore<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
reader
- - the collection to be written
java.io.IOException
- if there are any datasource errors.FeatureStore.setFeatures(FeatureReader)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |