public boolean refresh(String authID, Transaction transaction) throws IOException { List<DataStore> stores = cache.getDataStores(); for (DataStore store : stores) { if ((store.getLockingManager() != null) && store.getLockingManager().exists(authID)) { return store.getLockingManager().refresh(authID, transaction); } } return false; }
/** * @see org.geotools.data.LockingManager#refresh(java.lang.String, * org.geotools.data.Transaction) */ public boolean refresh(String authID, Transaction transaction) throws IOException { Iterator i = dataStores.values().iterator(); while (i.hasNext()) { AbstractFileDataStore afds = (AbstractFileDataStore) i.next(); if ((afds.getLockingManager() != null) && afds.getLockingManager().exists(authID)) { return afds.getLockingManager().refresh(authID, transaction); } } return false; }
public boolean refresh(String authID, Transaction transaction) throws IOException { List<DataStore> stores = cache.getDataStores(); for (DataStore store : stores) { if ((store.getLockingManager() != null) && store.getLockingManager().exists(authID)) { return store.getLockingManager().refresh(authID, transaction); } } return false; }
public boolean refresh(String authID, Transaction transaction) throws IOException { List<DataStore> stores = cache.getDataStores(); for (DataStore store : stores) { if ((store.getLockingManager() != null) && store.getLockingManager().exists(authID)) { return store.getLockingManager().refresh(authID, transaction); } } return false; }
t.addAuthorization(lockId); if (lockingManager.refresh(lockId, t)) { refresh = true;
t.addAuthorization(fLock.getAuthorization()); DataStore dataStore = (DataStore) source.getDataStore(); dataStore.getLockingManager().refresh(fLock.getAuthorization(), t); } finally { t.commit();