/* (c) 2017 Open Source Geospatial Foundation - all rights reserved
* This code is licensed under the GPL 2.0 license, available at the root
* application directory.
*/
package org.geoserver.opensearch.eo.store;
import java.io.IOException;
import org.geoserver.feature.retype.RetypingDataStore;
import org.geotools.data.DataStore;
/**
* Handles idiosyncrasies in database table naming, for the moment only lowercase vs uppercase,
* later we could extend it to handle property names and the like
*/
class LowercasingDataStore extends RetypingDataStore {
public LowercasingDataStore(DataStore wrapped) throws IOException {
super(wrapped);
}
@Override
protected String transformFeatureTypeName(String originalName) {
return originalName.toLowerCase();
}
}