/** * Updates the given {@link Feature} instance. * * TODO Use a copy of the original feature to avoid modifications on rollback. Difficult part: Consider updating of * references. * * @param feature * feature to be updated, must not be <code>null</code> * @param replacementProps * properties to be replaced, must not be <code>null</code> * @throws FeatureStoreException * if the update would result in an invalid feature instance */ public void update( final Feature feature, final List<ParsedPropertyReplacement> replacementProps ) throws FeatureStoreException { for ( final ParsedPropertyReplacement replacement : replacementProps ) { update( feature, replacement ); } }
features = fs.query( query ); for ( final Feature feature : features ) { new FeatureUpdater().update( feature, replacementProps ); updateFeatureBlob( blobUpdateStmt, feature ); updatedFids.add( feature.getId() );
new FeatureUpdater().update( feature, replacementProps ); if ( lock != null ) { lock.release( feature.getId() );