All pastes #988865 Raw Edit

Mine

public text v1 · immutable
#988865 ·published 2008-04-17 22:41 UTC
rendered paste body
   if (myFTC == null){
            DataStore store = DataStoreUtils.acquireDataStore(
                    myDSC.getConnectionParams(),
                    (ServletContext)null
                    );

            FeatureType type = store.getSchema(featureTypeName);

            if (type == null){
                throw new Exception(
                        "FeatureType " + featureTypeName + 
                        " in DataStore " + dataStoreName +
                        "not found."
                        );
            } else {
                myFTC = new FeatureTypeConfig(dataStoreName, type, false);
            }
        }