Authorization must be provided prior before calling this method.
void releaseLock( String lockId, LockingDataSource ds ){ ds.setAuthorization( "LOCK534" ); ds.unLockFeatures(); }
349350351352353354355356357358359
// // We cannot grab the fids offline using AUTO_COMMIT // because we may have removed some of them earlier in the // transaction // locking.unLockFeatures(filter); store.removeFeatures(filter); } else { // This a bit better and what should be done, we will // need to rework the gt2 locking api to work with // fids or something
373374375376377378379380381382383
transaction); try { while (writer.hasNext()) { String fid = writer.next().getID(); locking.unLockFeatures(factory .createFidFilter(fid)); writer.remove(); } } finally { writer.close();
495496497498499500501502503504505
} if ((request.getLockId() != null) && store instanceof FeatureLocking && (request.getReleaseAction() == TransactionRequest.SOME)) { FeatureLocking locking = (FeatureLocking) store; locking.unLockFeatures(filter); } // Post process - check features for changed boundary and // pass them off to the ValidationProcessor //