|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.data.FeatureSourceRepository
Another Quick hack of a DataRepository as a bridge to the Opperations api. This time we are storing by FeatureType, not DataStores will be harned in the configuration of this class.
| Field Summary | |
protected java.util.SortedMap |
featuresources
Map of FeatuerSource by dataStoreId:typeName |
| Constructor Summary | |
FeatureSourceRepository()
|
|
| Method Summary | |
DataStore |
datastore(java.lang.String id)
Implement getDataStores. |
java.util.Map |
getDataStores()
Access to the set of registered DataStores. |
java.util.SortedMap |
getFeatureSources()
All FeatureTypes by dataStoreId:typeName |
java.util.Set |
getPrefixes()
Retrieve prefix set. |
boolean |
lockExists(java.lang.String lockID)
Implement lockExists. |
boolean |
lockRefresh(java.lang.String lockID,
Transaction transaction)
Implement lockRefresh. |
boolean |
lockRelease(java.lang.String lockID,
Transaction transaction)
Implement lockRelease. |
void |
register(java.lang.String id,
FeatureSource featureSource)
Implement registerDataStore. |
FeatureSource |
source(java.lang.String dataStoreId,
java.lang.String typeName)
FeatureSoruce access. |
java.util.SortedMap |
types()
All FeatureTypes by dataStoreId:typeName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.SortedMap featuresources
| Constructor Detail |
public FeatureSourceRepository()
| Method Detail |
public java.util.SortedMap getFeatureSources()
getFeatureSources in interface Repository
public java.util.Set getPrefixes()
throws java.io.IOException
getPrefixes in interface Repositoryjava.io.IOExceptionorg.geotools.data.Catalog#getPrefixes()public java.util.SortedMap types()
public boolean lockExists(java.lang.String lockID)
lockExists in interface RepositorylockID -
org.geotools.data.Catalog#lockExists(java.lang.String)
public boolean lockRefresh(java.lang.String lockID,
Transaction transaction)
throws java.io.IOException
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.
lockRefresh in interface RepositorylockID - Authorizataion of lock to refreshtransaction - Transaction used to authorize refresh
java.io.IOException - If opperation encounters problems, or lock not found
java.lang.IllegalArgumentException - if lockID is nullorg.geotools.data.Catalog#lockRefresh(java.lang.String, org.geotools.data.Transaction)
public boolean lockRelease(java.lang.String lockID,
Transaction transaction)
throws java.io.IOException
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.
lockRelease in interface RepositorylockID - Authorizataion of lock to refreshtransaction - Transaction used to authorize refresh
java.io.IOException - If opperation encounters problems
java.lang.IllegalArgumentException - if lockID is nullorg.geotools.data.Catalog#lockRefresh(java.lang.String, org.geotools.data.Transaction)
public void register(java.lang.String id,
FeatureSource featureSource)
throws java.io.IOException
Description ...
java.io.IOExceptionorg.geotools.data.Catalog#registerDataStore(org.geotools.data.DataStore)public DataStore datastore(java.lang.String id)
Description ...
org.geotools.data.Catalog#getDataStores(java.lang.String)public java.util.Map getDataStores()
The provided Set may not be modified :-)
getDataStores in interface Repositoryorg.geotools.data.Catalog#getDataStores(java.lang.String)
public FeatureSource source(java.lang.String dataStoreId,
java.lang.String typeName)
throws java.io.IOException
Repository
source in interface RepositorydataStoreId - typeName -
java.io.IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||