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 //
138139140141142143144145146147148
// // 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
161162163164165166167168169170171
try { while (writer.hasNext()) { String fid = writer.next().getID(); Set featureIds = new HashSet(); featureIds.add(factory.featureId(fid)); locking.unLockFeatures(factory.id(featureIds)); writer.remove(); deleted++; } } finally { writer.close();
250251252253254255256257258259260
// make sure we unlock if ((request.getLockId() != null) && store instanceof FeatureLocking && (request.getReleaseAction() == AllSomeType.SOME_LITERAL)) { SimpleFeatureLocking locking; locking = (SimpleFeatureLocking) store; locking.unLockFeatures(filter); } } // Post process - gather the same features after the update, and if (!fids.isEmpty()) {
258259260261262263264265266267268
// make sure we unlock if ((request.getLockId() != null) && store instanceof FeatureLocking && (request.isReleaseActionSome())) { SimpleFeatureLocking locking; locking = (SimpleFeatureLocking) store; locking.unLockFeatures(filter); } } // Post process - gather the same features after the update, and if (!fids.isEmpty()) {
146147148149150151152153154155156
169170171172173174175176177178179