@Test public void testCreateDataStorePreconditions() { Map badParams = new HashMap(); try { factory.createDataStore(badParams); fail("allowed bad params"); } catch (IOException e) { } badParams.put("dbtype", "app-schema"); try { factory.createDataStore(badParams); fail("allowed bad params"); } catch (IOException e) { } badParams.put("url", "file: try { factory.createDataStore(badParams); fail("allowed bad params"); } catch (IOException e) { } }
public DataAccess<FeatureType, Feature> createDataStore(Map params) throws IOException { final Set<AppSchemaDataAccess> registeredAppSchemaStores = new HashSet<AppSchemaDataAccess>(); try { return createDataStore(params, false, new DataAccessMap(), registeredAppSchemaStores); } catch (Exception ex) { for (AppSchemaDataAccess appSchemaDataAccess : registeredAppSchemaStores) { appSchemaDataAccess.dispose(); } throw ex; } }
AppSchemaDataAccessFactory implements DataAccessFactory { public DataAccess<FeatureType, Feature> createDataStore(Map params) throws IOException { final Set<AppSchemaDataAccess> registeredAppSchemaStores = new HashSet<AppSchemaDataAccess>(); try { return createDataStore(params, false, new DataAccessMap(), registeredAppSchemaStores); } catch (Exception ex) { for (AppSchemaDataAccess appSchemaDataAccess : registeredAppSchemaStores) { appSchemaDataAccess.dispose(); } throw ex; } } }
AppSchemaDataAccessFactory implements DataAccessFactory { public DataAccess<FeatureType, Feature> createDataStore(Map params) throws IOException { final Set<AppSchemaDataAccess> registeredAppSchemaStores = new HashSet<AppSchemaDataAccess>(); try { return createDataStore(params, false, new DataAccessMap(), registeredAppSchemaStores); } catch (Exception ex) { for (AppSchemaDataAccess appSchemaDataAccess : registeredAppSchemaStores) { appSchemaDataAccess.dispose(); } throw ex; } } AppSchemaDataAccessFactory(); }
AppSchemaDataAccessFactory implements DataAccessFactory { public DataAccess<FeatureType, Feature> createDataStore(Map params) throws IOException { final Set<AppSchemaDataAccess> registeredAppSchemaStores = new HashSet<AppSchemaDataAccess>(); try { return createDataStore(params, false, new DataAccessMap(), registeredAppSchemaStores); } catch (Exception ex) { for (AppSchemaDataAccess appSchemaDataAccess : registeredAppSchemaStores) { appSchemaDataAccess.dispose(); } throw ex; } } AppSchemaDataAccessFactory(); DataAccess<FeatureType, Feature> createDataStore(Map params); DataAccess<FeatureType, Feature> createDataStore(
            Map params,
            boolean hidden,
            DataAccessMap sourceDataStoreMap,
            final Set<AppSchemaDataAccess> registeredAppSchemaStores); DataStore createNewDataStore(Map params); String getDisplayName(); String getDescription(); DataStoreFactorySpi.Param[] getParametersInfo(); boolean canProcess(Map params); boolean isAvailable(); Map getImplementationHints(); }
AppSchemaDataAccessFactory implements DataAccessFactory { public DataAccess<FeatureType, Feature> createDataStore(Map params) throws IOException { final Set<AppSchemaDataAccess> registeredAppSchemaStores = new HashSet<AppSchemaDataAccess>(); try { return createDataStore(params, false, new DataAccessMap(), registeredAppSchemaStores); } catch (Exception ex) { for (AppSchemaDataAccess appSchemaDataAccess : registeredAppSchemaStores) { appSchemaDataAccess.dispose(); } throw ex; } } AppSchemaDataAccessFactory(); DataAccess<FeatureType, Feature> createDataStore(Map params); DataAccess<FeatureType, Feature> createDataStore(
            Map params,
            boolean hidden,
            DataAccessMap sourceDataStoreMap,
            final Set<AppSchemaDataAccess> registeredAppSchemaStores); DataStore createNewDataStore(Map params); String getDisplayName(); String getDescription(); DataStoreFactorySpi.Param[] getParametersInfo(); boolean canProcess(Map params); boolean isAvailable(); Map getImplementationHints(); static final String DBTYPE_STRING; static final DataAccessFactory.Param DBTYPE; static final DataAccessFactory.Param URL; }