If this content state is used for Transaction.AUTO_COMMIT the notification will be passed to all interested parties.
If not this event will be recored as part of a BatchFeatureEvent that will to be issued using issueBatchFeatureEvent() @param event
269270271272273274275276277278
} if (contentState.hasListener()) { // issue notificaiton FeatureEvent event = new FeatureEvent(this, Type.CHANGED, affectedBounds, filter); contentState.fireFeatureEvent(event); } } }
386387388389390391392393394395396
bounds.expandToInclude( geometry.getEnvelopeInternal() ); } } // issue notificaiton FeatureEvent event = new FeatureEvent(this, Type.CHANGED, bounds, preFilter ); state.fireFeatureEvent( event ); } } finally { if(tx == null || tx == Transaction.AUTO_COMMIT) { getDataStore().closeSafe(cx); }
435436437438439440441442443444445
} getDataStore().delete(featureType, preFilter, cx); if( state.hasListener() ){ // issue notification FeatureEvent event = new FeatureEvent(this, Type.REMOVED, bounds, preFilter ); state.fireFeatureEvent( event ); } } finally { if(tx == null || tx == Transaction.AUTO_COMMIT) { getDataStore().closeSafe(cx); }