Class GeoPKGDataStoreWrapper
Object
DataStoreWrapper
GeoPKGDataStoreWrapper
- All Implemented Interfaces:
DataAccess<SimpleFeatureType,,SimpleFeature> DataStore
SQLite and thus GeoPackage cannot mix DDL and DML transactions, as DML always tries to grab a read lock on the
database, thus causing failures when trying to create tables (DDL) while other connections are performing DML
operations.
This wrapper thus forces all feature stores to operate in auto-commit mode, ignoring any attempt to set a transaction.
This is currently necessary as haversting does exactly that, creating new featuretypes while files are being ingested over a transaction. In the future we migth want to break the DataStore API and allow passing a Transaction to createSchema, allowing to run all operations (DDL and DML) within the same transaction.
-
Field Summary
Fields inherited from class DataStoreWrapper
auxiliaryFolder, COORDINATE_REFERENCE_SYSTEM, datastore, HIDDEN_FOLDER, LOGGER, MAPPEDNAME, mapping, NAME, SCHEMA -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected FeatureTypeMappergetFeatureTypeMapper(SimpleFeatureType featureType) Return a specificFeatureTypeMapperinstance on top of an input featureTypeprotected SimpleFeatureSourcetransformFeatureStore(SimpleFeatureStore source, FeatureTypeMapper mapper) Methods inherited from class DataStoreWrapper
createSchema, dispose, getFeatureReader, getFeatureSource, getFeatureSource, getFeatureTypeMapper, getFeatureWriter, getFeatureWriter, getFeatureWriterAppend, getInfo, getLockingManager, getNames, getSchema, getSchema, getTypeNames, removeSchema, removeSchema, storeMapper, storeProperties, updateSchema, updateSchema
-
Constructor Details
-
GeoPKGDataStoreWrapper
-
-
Method Details
-
getFeatureTypeMapper
Description copied from class:DataStoreWrapperReturn a specificFeatureTypeMapperinstance on top of an input featureType- Specified by:
getFeatureTypeMapperin classDataStoreWrapper- Throws:
Exception
-
transformFeatureStore
protected SimpleFeatureSource transformFeatureStore(SimpleFeatureStore source, FeatureTypeMapper mapper) throws IOException - Overrides:
transformFeatureStorein classDataStoreWrapper- Throws:
IOException
-