| java.lang.Object org.geotools.data.DefaultRepository
DefaultRepository | public class DefaultRepository implements Repository(Code) | | Quick hack of a DataRepository allows me to bridge the existing DataStore
API with these experiments for a Opperations api.
I have used the old DefaultCatalaog as a starting point.
This also serves as a reminder that we need CrossDataStore functionality
- at least for Locks. And possibly for "Query".
author: Jody Garnett |
datastores | protected SortedMap datastores(Code) | | Map of DataStore by dataStoreId
|
datastore | public DataStore datastore(String id)(Code) | | Implement getDataStores.
Description ...
See Also: org.geotools.data.Catalog.getDataStores(java.lang.String) Parameters: id - a String giving the name of the DataStore the DataStore with the given name |
getDataStores | public Map getDataStores()(Code) | | Access to the set of registered DataStores.
The provided Set may not be modified :-)
See Also: org.geotools.data.Catalog.getDataStores(java.lang.String) |
getPrefixes | public Set getPrefixes() throws IOException(Code) | | Retrieve prefix set.
See Also: org.geotools.data.Catalog.getPrefixes Set of namespace prefixes throws: IOException - |
lockExists | public boolean lockExists(String lockID)(Code) | | Implement lockExists.
See Also: org.geotools.data.Catalog.lockExists(java.lang.String) Parameters: lockID - |
lockRefresh | public boolean lockRefresh(String lockID, Transaction transaction) throws IOException(Code) | | Implement lockRefresh.
Currently it is an error if the lockID is not found. Because if
we can't find it we cannot refresh it.
Since locks are time sensitive it is impossible to check
if a lockExists and then be sure it will still exist when you try to
refresh it. Nothing we do can protect client code from this fact, they
will need to do with the IOException when (not if) this situation
occurs.
See Also: org.geotools.data.Catalog.lockRefresh(java.lang.Stringorg.geotools.data.Transaction) Parameters: lockID - Authorizataion of lock to refresh Parameters: transaction - Transaction used to authorize refresh throws: IOException - If opperation encounters problems, or lock not found throws: IllegalArgumentException - if lockID is null |
lockRelease | public boolean lockRelease(String lockID, Transaction transaction) throws IOException(Code) | | Implement lockRelease.
Currently it is not and error if the lockID is not found, it may
have expired. Since locks are time sensitive it is impossible to check
if a lockExists and then be sure it will still exist when you try to
release it.
See Also: org.geotools.data.Catalog.lockRefresh(java.lang.Stringorg.geotools.data.Transaction) Parameters: lockID - Authorizataion of lock to refresh Parameters: transaction - Transaction used to authorize refresh throws: IOException - If opperation encounters problems throws: IllegalArgumentException - if lockID is null |
register | public void register(String id, DataStore dataStore) throws IOException(Code) | | Implement registerDataStore.
Description ...
See Also: org.geotools.data.Catalog.registerDataStore(org.geotools.data.DataStore) Parameters: dataStore - throws: IOException - |
|
|