Class SampleDataAccess
- Object
-
- SampleDataAccess
-
- All Implemented Interfaces:
DataAccess<FeatureType,Feature>
public class SampleDataAccess extends Object implements DataAccess<FeatureType,Feature>
Sample implementation ofDataAccessfor 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 voidcreateSchema(FeatureType featureType)Unsupported operation.voiddispose()Nothing to dispose.FeatureSource<FeatureType,Feature>getFeatureSource(Name typeName)Access to the named resource.ServiceInfogetInfo()Unsupported operation.List<Name>getNames()Get the feature type names provided by thisDataAccess.FeatureTypegetSchema(Name name)Return the feature type for supported type name.voidremoveSchema(Name typeName)Unsupported operation.voidupdateSchema(Name typeName, FeatureType featureType)Unsupported operation.
-
-
-
Method Detail
-
createSchema
public void createSchema(FeatureType featureType) throws IOException
Unsupported operation.- Specified by:
createSchemain 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:
disposein interfaceDataAccess<FeatureType,Feature>- See Also:
DataAccess.dispose()
-
getFeatureSource
public FeatureSource<FeatureType,Feature> getFeatureSource(Name typeName) throws IOException
Description copied from interface:DataAccessAccess 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:
getFeatureSourcein 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:
getInfoin 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_NAMEis supported.- Specified by:
getNamesin 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_NAMEis supported.- Specified by:
getSchemain 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:
updateSchemain 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:
removeSchemain interfaceDataAccess<FeatureType,Feature>- Throws:
IOException- if the operation failed- See Also:
DataAccess.removeSchema(org.geotools.api.feature.type.Name)
-
-