public void remove() throws IOException { if (live == null) { throw new IOException("No current feature to remove"); } if (origional != null) { // String typeName = live.getFeatureType().getTypeName(); // Transaction autoCommit = Transaction.AUTO_COMMIT; state.fireFeatureRemoved(featureSource, origional); // store.listenerManager.fireFeaturesRemoved(typeName, // autoCommit,ReferencedEnvelope.reference(origional.getBounds()), false); } origional = null; live = null; // prevent live and remove from being written out } // remove end
/** @see org.geotools.data.FeatureWriter#remove() */ public void remove() throws IOException { if (writer == null) { throw new IOException("FeatureWriter has been closed"); } state.fireFeatureRemoved(store, feature); writer.remove(); }
/** @see org.geotools.data.FeatureWriter#remove() */ public void remove() throws IOException { if (live != null) { // mark live as removed diff.remove(live.getID()); state.fireFeatureRemoved(store, live); live = null; current = null; } else if (current != null) { // cancel additional content current = null; } }
public void remove() throws IOException { try { dataStore.delete(featureType, last.getID(), st.getConnection()); // issue notification ContentEntry entry = featureSource.getEntry(); ContentState state = entry.getState(this.tx); if (state.hasListener()) { state.fireFeatureRemoved(featureSource, last); } } catch (SQLException e) { throw (IOException) new IOException().initCause(e); } }
/** * @see org.geotools.data.FeatureWriter#remove() */ public void remove() throws IOException { state.fireFeatureRemoved(store, feature); writer.remove(); }
/** * @see org.geotools.data.FeatureWriter#remove() */ public void remove() throws IOException { if (live != null) { // mark live as removed diff.remove(live.getID()); state.fireFeatureRemoved(store, live); live = null; current = null; } else if (current != null) { // cancel additional content current = null; } }
public void remove() throws IOException { try { dataStore.delete(featureType, last.getID(), st.getConnection()); // issue notification ContentEntry entry = featureSource.getEntry(); ContentState state = entry.getState( this.tx ); if( state.hasListener() ){ state.fireFeatureRemoved( featureSource, last ); } } catch (SQLException e) { throw (IOException) new IOException().initCause(e); } }
state.fireFeatureRemoved(store, feature); } else { try {