Class SampleDataAccess
Object
SampleDataAccess
- All Implemented Interfaces:
DataAccess<FeatureType,
Feature>
Sample implementation of
DataAccess
for testing. Create with SampleDataAccessFactory
.- Since:
- 2.6
- Author:
- Ben Caradoc-Davies (CSIRO Earth Science and Resource Engineering)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
createSchema
(FeatureType featureType) Unsupported operation.void
dispose()
Nothing to dispose.getFeatureSource
(Name typeName) Access to the named resource.getInfo()
Unsupported operation.getNames()
Get the feature type names provided by thisDataAccess
.Return the feature type for supported type name.void
removeSchema
(Name typeName) Unsupported operation.void
updateSchema
(Name typeName, FeatureType featureType) Unsupported operation.
-
Constructor Details
-
SampleDataAccess
public SampleDataAccess()
-
-
Method Details
-
createSchema
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:
-
dispose
public void dispose()Nothing to dispose.- Specified by:
dispose
in interfaceDataAccess<FeatureType,
Feature> - See Also:
-
getFeatureSource
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:
-
getInfo
Unsupported operation.- Specified by:
getInfo
in interfaceDataAccess<FeatureType,
Feature> - Returns:
- SeviceInfo
- See Also:
-
getNames
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:
-
getSchema
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:
-
updateSchema
Unsupported operation.- Specified by:
updateSchema
in interfaceDataAccess<FeatureType,
Feature> - Throws:
IOException
- if the operation failed- See Also:
-
removeSchema
Unsupported operation.- Specified by:
removeSchema
in interfaceDataAccess<FeatureType,
Feature> - Throws:
IOException
- if the operation failed- See Also:
-