Spring Data Graph

org.springframework.data.neo4j.rest.index
Class RestIndex<T extends org.neo4j.graphdb.PropertyContainer>

java.lang.Object
  extended by org.springframework.data.neo4j.rest.index.RestIndex<T>
All Implemented Interfaces:
org.neo4j.graphdb.index.Index<T>, org.neo4j.graphdb.index.ReadableIndex<T>
Direct Known Subclasses:
RestNodeIndex, RestRelationshipIndex

public abstract class RestIndex<T extends org.neo4j.graphdb.PropertyContainer>
extends Object
implements org.neo4j.graphdb.index.Index<T>

Since:
24.01.11
Author:
mh

Field Summary
protected  RestGraphDatabase restGraphDatabase
           
protected  RestRequest restRequest
           
 
Method Summary
 void add(T entity, String key, Object value)
           
protected abstract  T createEntity(Map<?,?> item)
           
 void delete()
           
 org.neo4j.graphdb.index.IndexHits<T> get(String key, Object value)
           
 String getName()
           
protected  String indexPath()
           
protected  String indexPath(String key)
           
protected  String indexPath(String key, Object value)
           
 org.neo4j.graphdb.index.IndexHits<T> query(Object value)
           
 org.neo4j.graphdb.index.IndexHits<T> query(String key, Object value)
           
 void remove(T entity)
           
 void remove(T entity, String key)
           
 void remove(T entity, String key, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.neo4j.graphdb.index.ReadableIndex
getEntityType
 

Field Detail

restRequest

protected final RestRequest restRequest

restGraphDatabase

protected final RestGraphDatabase restGraphDatabase
Method Detail

getName

public String getName()
Specified by:
getName in interface org.neo4j.graphdb.index.ReadableIndex<T extends org.neo4j.graphdb.PropertyContainer>

add

public void add(T entity,
                String key,
                Object value)
Specified by:
add in interface org.neo4j.graphdb.index.Index<T extends org.neo4j.graphdb.PropertyContainer>

indexPath

protected String indexPath()

indexPath

protected String indexPath(String key)

indexPath

protected String indexPath(String key,
                           Object value)

remove

public void remove(T entity,
                   String key,
                   Object value)
Specified by:
remove in interface org.neo4j.graphdb.index.Index<T extends org.neo4j.graphdb.PropertyContainer>

remove

public void remove(T entity)
Specified by:
remove in interface org.neo4j.graphdb.index.Index<T extends org.neo4j.graphdb.PropertyContainer>

remove

public void remove(T entity,
                   String key)
Specified by:
remove in interface org.neo4j.graphdb.index.Index<T extends org.neo4j.graphdb.PropertyContainer>

delete

public void delete()
Specified by:
delete in interface org.neo4j.graphdb.index.Index<T extends org.neo4j.graphdb.PropertyContainer>

get

public org.neo4j.graphdb.index.IndexHits<T> get(String key,
                                                Object value)
Specified by:
get in interface org.neo4j.graphdb.index.ReadableIndex<T extends org.neo4j.graphdb.PropertyContainer>

query

public org.neo4j.graphdb.index.IndexHits<T> query(String key,
                                                  Object value)
Specified by:
query in interface org.neo4j.graphdb.index.ReadableIndex<T extends org.neo4j.graphdb.PropertyContainer>

createEntity

protected abstract T createEntity(Map<?,?> item)

query

public org.neo4j.graphdb.index.IndexHits<T> query(Object value)
Specified by:
query in interface org.neo4j.graphdb.index.ReadableIndex<T extends org.neo4j.graphdb.PropertyContainer>

Spring Data Graph

Copyright © 2011 SpringSource. All Rights Reserved.