Examples of createDataStore()


Examples of com.buschmais.cdo.spi.bootstrap.CdoDatastoreProvider.createDatastore()

        }
        if (!CdoDatastoreProvider.class.isAssignableFrom(providerType)) {
            throw new CdoException(providerType.getName() + " specified as CDO provider must implement " + CdoDatastoreProvider.class.getName());
        }
        CdoDatastoreProvider cdoDatastoreProvider = CdoDatastoreProvider.class.cast(ClassHelper.newInstance(providerType));
        Datastore<?, ?, ?> datastore = cdoDatastoreProvider.createDatastore(cdoUnit);
        return new CdoManagerFactoryImpl(cdoUnit, datastore);
    }

}
View Full Code Here

Examples of com.github.jmkgreen.morphia.Morphia.createDatastore()

        }
        try {
            final MongoClient mongoClient = new MongoClient(ConfigurationHelper.prop.getProperty("mongo.host") );
            final Morphia morphia = new Morphia();
            morphia.map(Meteolog.class).map(News.class).map(Cache.class).map(MapReduceMinMax.class).map(MapReduceHistoryMinMax.class);
            ds = morphia.createDatastore(mongoClient, ConfigurationHelper.prop.getProperty("mongo.dbname"));
            ds.ensureCaps();
            ds.ensureIndexes();
        } catch (Exception e) {
            throw new RuntimeException("Error initializing mongo db", e);
        }
View Full Code Here

Examples of com.google.code.morphia.Morphia.createDatastore()

    private static Datastore getDatastore() throws Exception {
        Morphia morphia = new Morphia();
        PureMorphiaUser.ensureMapped(morphia);
        Mongo mongo = new Mongo();
        return morphia.createDatastore(mongo, "mydatabase");
    }

    public static void crud() throws Exception {
        Datastore ds = getDatastore();
        // create
View Full Code Here

Examples of org.geoserver.catalog.CatalogFactory.createDataStore()

        ns.setURI( "nsURI" );
       
        ws = factory.createWorkspace();
        ws.setName( "wsName");
       
        ds = factory.createDataStore();
        ds.setEnabled(true);
        ds.setName( "dsName");
        ds.setDescription("dsDescription");
        ds.setWorkspace( ws );
       
View Full Code Here

Examples of org.geoserver.catalog.CatalogFactory.createDataStore()

        CatalogFactory cFactory = catalog.getFactory();
       
        WorkspaceInfo ws = cFactory.createWorkspace();
        ws.setName( "foo" );
       
        DataStoreInfo ds1 = cFactory.createDataStore();
        ds1.setName( "bar" );
        ds1.setWorkspace( ws );
       
        ByteArrayOutputStream out = out();
        persister.save( ds1 , out );
View Full Code Here

Examples of org.geoserver.catalog.CatalogFactory.createDataStore()

        NamespaceInfo ns = cFactory.createNamespace();
        ns.setPrefix( "acme" );
        ns.setURI( "http://acme.org" );
        catalog.add( ns );
       
        DataStoreInfo ds = cFactory.createDataStore();
        ds.setWorkspace( ws );
        ds.setName( "foo" );
        catalog.add( ds );
       
        CoverageStoreInfo cs = cFactory.createCoverageStore();
View Full Code Here

Examples of org.geoserver.catalog.CatalogFactory.createDataStore()

        NamespaceInfo ns = cFactory.createNamespace();
        ns.setPrefix( "acme" );
        ns.setURI( "http://acme.org" );
        catalog.add( ns );
       
        DataStoreInfo ds = cFactory.createDataStore();
        ds.setWorkspace( ws );
        ds.setName( "foo" );
        catalog.add( ds );
       
        FeatureTypeInfo ft = cFactory.createFeatureType();
View Full Code Here

Examples of org.geoserver.catalog.CatalogFactory.createDataStore()

        NamespaceInfo ns = cFactory.createNamespace();
        ns.setPrefix( "acme" );
        ns.setURI( "http://acme.org" );
        catalog.add( ns );
       
        DataStoreInfo ds = cFactory.createDataStore();
        ds.setWorkspace( ws );
        ds.setName( "foo" );
        catalog.add( ds );
       
        FeatureTypeInfo ft = cFactory.createFeatureType();
View Full Code Here

Examples of org.geoserver.catalog.CatalogFactory.createDataStore()

            Map resolved = ResourcePool.getParams(map, cat.getResourceLoader() );
            DataAccess dataStore = DataAccessFinder.getDataStore(resolved);           
            if( dataStore == null ){
                throw new IllegalArgumentException("Connection parameters incomplete (does not match an available data store, coverage store or wms store).");
            }
            DataStoreInfo info = factory.createDataStore();
            info.setWorkspace(workspace);
            info.setType(name);
            info.getConnectionParameters().putAll(map);
            try {
                info.setDescription( dataStore.getInfo().getDescription());
View Full Code Here

Examples of org.geotools.arcsde.ArcSDEDataStoreFactory.createDataStore()

    params.put(ArcSDEDataStoreFactory.PORT_PARAM.key, port);
    params.put(ArcSDEDataStoreFactory.INSTANCE_PARAM.key, instance);
    params.put(ArcSDEDataStoreFactory.USER_PARAM.key, user);
    params.put(ArcSDEDataStoreFactory.PASSWORD_PARAM.key, passwd);
    ArcSDEDataStoreFactory dsFactory = new ArcSDEDataStoreFactory();
    DataStore ds = dsFactory.createDataStore(params);
    return ds;
  }

  public static DataStore getDataStoreFromOracle(String host, int port,
      String user, String passwd, String instance) throws Exception {
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.