Examples of createDataStore()


Examples of org.geotools.data.wfs.WFSDataStoreFactory.createDataStore()

            Map<String, Serializable> params = new HashMap<String, Serializable>();
            params.put(WFSDataStoreFactory.URL.key, SERVER_URL);
            params.put("USE_PULL_PARSER", Boolean.TRUE);
            WFSDataStoreFactory dataStoreFactory = new WFSDataStoreFactory();
            wfs = dataStoreFactory.createDataStore(params);
            LOGGER.fine("WFS datastore created");
        }
    }

    @Test
View Full Code Here

Examples of org.geotools.data.ws.WSDataStoreFactory.createDataStore()

        properties.put("WSDataStoreFactory:TIMEOUT", new Integer(30000));
        properties.put("WSDataStoreFactory:TEMPLATE_DIRECTORY", TEST_DIRECTORY);
        properties.put("WSDataStoreFactory:TEMPLATE_NAME", "request.ftl");
        properties.put("WSDataStoreFactory:CAPABILITIES_FILE_LOCATION", TEST_DIRECTORY + "ws_capabilities_equals_removed.xml");

        XmlDataStore ds = dsf.createDataStore(properties);
        assertNotNull(ds);
    }
   
   
}
View Full Code Here

Examples of org.geotools.data.ws.WSDataStoreFactory.createDataStore()

        params.put(WSDataStoreFactory.GET_CONNECTION_URL.key, url);
        params.put(WSDataStoreFactory.TEMPLATE_DIRECTORY.key, new URL("file:" + BASE_DIRECTORY));
        params.put(WSDataStoreFactory.TEMPLATE_NAME.key, "request.ftl");
        params.put(WSDataStoreFactory.CAPABILITIES_FILE_LOCATION.key, url);

        XmlDataStore dataStore = dsf.createDataStore(params);
        assertTrue(dataStore instanceof WS_DataStore);
    }
}
View Full Code Here

Examples of org.mongodb.morphia.Morphia.createDatastore()

        mapper.getConverters().addConverter(new AxisListConverter());
        mapper.getConverters().addConverter(new ResultConverter());
        mapper.getOptions().setActLikeSerializer(true);
        mapper.getOptions().objectFactory = new CustomMorphiaObjectFactory(MongoRepository.class.getClassLoader());

        Datastore datastore = morphia.createDatastore(new Fongo(SetupConfig.get().getDbName()).getMongo(), SetupConfig.get().getDbName());

        Whitebox.setInternalState(MongoRepository.class, "datastore", datastore);
    }

    @After
View Full Code Here

Examples of org.mongodb.morphia.Morphia.createDatastore()

        } catch (UnknownHostException e) {
            throw new RuntimeException(e.getMessage(), e);
        }
        String databaseName = SetupConfig.get().getDbName();

        return morphia.createDatastore(mongo, databaseName);
    }

}
View Full Code Here

Examples of org.sumus.dwh.DatawareHouse.createDataStore()

  }

  public DataStore createDataStore() {
    try {
      DatawareHouse datawareHouse = new DatawareHouse (new DatawareHouseDelegate(new FileLocator(folder)));
      DataStore dataStore = datawareHouse.createDataStore(DataStoreDefinition.DATA_STORE_NAME);
      defineDataStore(dataStore);
      return dataStore;
    }
    catch (DatawareHouseException e) {
      throw new RuntimeException("DataStore " + DataStoreDefinition.DATA_STORE_NAME + " already exists");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.