Package com.buschmais.cdo.neo4j.impl.datastore

Examples of com.buschmais.cdo.neo4j.impl.datastore.RestNeo4jDatastore


        String protocol = url.getProtocol().toLowerCase();
        if ("file".equals(protocol)) {
            GraphDatabaseService graphDatabaseService = new GraphDatabaseFactory().newEmbeddedDatabase(url.getPath());
            return new EmbeddedNeo4jDatastore(graphDatabaseService);
        } else if ("http".equals(protocol) || "https".equals(protocol)) {
            return new RestNeo4jDatastore(url.toExternalForm());
        }
        return null;
    }
View Full Code Here


import java.net.URI;

class RemoteDatastoreFactory implements DatastoreFactory<RestNeo4jDatastore> {

    @Override public RestNeo4jDatastore createGraphDatabaseService(URI uri) throws MalformedURLException {
        return new RestNeo4jDatastore(uri.toURL().toExternalForm());
    }
View Full Code Here

TOP

Related Classes of com.buschmais.cdo.neo4j.impl.datastore.RestNeo4jDatastore

Copyright © 2018 www.massapicom. 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.