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 TypeMethodDescriptionvoidcreateSchema(FeatureType featureType) Unsupported operation.voiddispose()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.voidremoveSchema(Name typeName) Unsupported operation.voidupdateSchema(Name typeName, FeatureType featureType) Unsupported operation.
-
Constructor Details
-
SampleDataAccess
public SampleDataAccess()
-
-
Method Details
-
createSchema
Unsupported operation.- Specified by:
createSchemain 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:
disposein interfaceDataAccess<FeatureType,Feature> - See Also:
-
getFeatureSource
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:
-
getInfo
Unsupported operation.- Specified by:
getInfoin interfaceDataAccess<FeatureType,Feature> - Returns:
- SeviceInfo
- See Also:
-
getNames
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:
-
getSchema
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:
-
updateSchema
Unsupported operation.- Specified by:
updateSchemain interfaceDataAccess<FeatureType,Feature> - Throws:
IOException- if the operation failed- See Also:
-
removeSchema
Unsupported operation.- Specified by:
removeSchemain interfaceDataAccess<FeatureType,Feature> - Throws:
IOException- if the operation failed- See Also:
-