Class SampleDataAccess
- Object
-
- SampleDataAccess
-
- All Implemented Interfaces:
DataAccess<FeatureType,Feature>
public class SampleDataAccess extends Object implements DataAccess<FeatureType,Feature>
Sample implementation ofDataAccess
for testing. Create withSampleDataAccessFactory
.- Since:
- 2.6
- Author:
- Ben Caradoc-Davies (CSIRO Earth Science and Resource Engineering)
-
-
Constructor Summary
Constructors Constructor Description SampleDataAccess()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createSchema(FeatureType featureType)
Unsupported operation.void
dispose()
Nothing to dispose.FeatureSource<FeatureType,Feature>
getFeatureSource(Name typeName)
Access to the named resource.ServiceInfo
getInfo()
Unsupported operation.List<Name>
getNames()
Get the feature type names provided by thisDataAccess
.FeatureType
getSchema(Name name)
Return the feature type for supported type name.void
removeSchema(Name typeName)
Unsupported operation.void
updateSchema(Name typeName, FeatureType featureType)
Unsupported operation.
-
-
-
Method Detail
-
createSchema
public void createSchema(FeatureType featureType) throws IOException
Unsupported operation.- Specified by:
createSchema
in interfaceDataAccess<FeatureType,Feature>
- Parameters:
featureType
- FetureType to add to DataStore- Throws:
IOException
- If featureType cannot be created- See Also:
DataAccess.createSchema(org.geotools.api.feature.type.FeatureType)
-
dispose
public void dispose()
Nothing to dispose.- Specified by:
dispose
in interfaceDataAccess<FeatureType,Feature>
- See Also:
DataAccess.dispose()
-
getFeatureSource
public FeatureSource<FeatureType,Feature> getFeatureSource(Name typeName) throws IOException
Description copied from interface:DataAccess
Access to the named resource.The level of access is represented by the instance of the FeatureSource being returned.
Formally:
- FeatureSource - read-only access
- FeatureStore - read-write access
- FetureLocking - concurrency control
-
Additional interfaces may be supported by the implementation you are using.
- Specified by:
getFeatureSource
in interfaceDataAccess<FeatureType,Feature>
- Returns:
- Access to the named resource being made available
- Throws:
IOException
- See Also:
DataAccess.getFeatureSource(org.geotools.api.feature.type.Name)
-
getInfo
public ServiceInfo getInfo()
Unsupported operation.- Specified by:
getInfo
in interfaceDataAccess<FeatureType,Feature>
- Returns:
- SeviceInfo
- See Also:
DataAccess.getInfo()
-
getNames
public List<Name> getNames() throws IOException
Get the feature type names provided by thisDataAccess
. OnlySampleDataAccessData.MAPPEDFEATURE_TYPE_NAME
is supported.- Specified by:
getNames
in interfaceDataAccess<FeatureType,Feature>
- Returns:
- Names of the available contents.
- Throws:
IOException
- See Also:
DataAccess.getNames()
-
getSchema
public FeatureType getSchema(Name name) throws IOException
Return the feature type for supported type name. OnlySampleDataAccessData.MAPPEDFEATURE_TYPE_NAME
is supported.- Specified by:
getSchema
in interfaceDataAccess<FeatureType,Feature>
- Parameters:
name
- Type name a the resource from getNames()- Returns:
- Description of the FeatureType being made avaialble
- Throws:
IOException
- See Also:
DataAccess.getSchema(org.geotools.api.feature.type.Name)
-
updateSchema
public void updateSchema(Name typeName, FeatureType featureType) throws IOException
Unsupported operation.- Specified by:
updateSchema
in interfaceDataAccess<FeatureType,Feature>
- Throws:
IOException
- if the operation failed- See Also:
DataAccess.updateSchema(org.geotools.api.feature.type.Name, org.geotools.api.feature.type.FeatureType)
-
removeSchema
public void removeSchema(Name typeName) throws IOException
Unsupported operation.- Specified by:
removeSchema
in interfaceDataAccess<FeatureType,Feature>
- Throws:
IOException
- if the operation failed- See Also:
DataAccess.removeSchema(org.geotools.api.feature.type.Name)
-
-