All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.neo4j.rest.graphdb.RestAPIInternal Maven / Gradle / Ivy

Go to download

pring Data Neo4j Wrapper for the Neo4j REST API, provides a Graph Database proxy for the remote invocation.

There is a newer version: 3.4.6.RELEASE
Show newest version
package org.neo4j.rest.graphdb;

import org.neo4j.graphdb.PropertyContainer;
import org.neo4j.rest.graphdb.converter.RestEntityExtractor;
import org.neo4j.rest.graphdb.entity.RestEntity;
import org.neo4j.rest.graphdb.entity.RestNode;
import org.neo4j.rest.graphdb.entity.RestRelationship;

import java.util.Map;

/**
 * @author mh
 * @since 21.09.14
 */
public interface RestAPIInternal {
    RestNode getNodeById(long id, RestAPI.Load force);
    RestRelationship getRelationshipById(long id, RestAPI.Load force);

    boolean hasToUpdate(long lastUpdate);

    String getBaseUri();

    RestEntityExtractor getEntityExtractor();

    // todo add to cache or update data in cache
    RestEntity createRestEntity(Map data);

    void resetIndex(Class type);

    public enum Load {
        FromCache,
        FromServer,
        ForceFromServer
    }

    RestRequest getRestRequest();

    RestNode addToCache(RestNode restNode);
    RestRelationship addToCache(RestRelationship restRelationship);
    RestNode getNodeFromCache(long id);
    RestRelationship getRelFromCache(long id);
    void removeNodeFromCache(long id);
    void removeRelFromCache(long id);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy