public abstract class AbstractIndexWrapper<S extends org.neo4j.graphdb.PropertyContainer,T extends org.structr.api.graph.PropertyContainer> extends Object implements org.structr.api.index.Index<T>
Modifier and Type | Field and Description |
---|---|
protected Neo4jDatabaseService |
graphDb |
protected org.neo4j.graphdb.index.Index<S> |
index |
Constructor and Description |
---|
AbstractIndexWrapper(Neo4jDatabaseService graphDb,
org.neo4j.graphdb.index.Index<S> index) |
Modifier and Type | Method and Description |
---|---|
void |
add(T t,
String key,
Object value,
Class typeHint) |
protected abstract Object |
convertForIndexing(Object source,
Class typeHint) |
protected abstract Object |
convertForQuerying(Object source,
Class typeHint) |
org.structr.api.QueryResult<T> |
get(String key,
Object value,
Class typeHint) |
org.structr.api.QueryResult<T> |
query(String key,
Object value,
Class typeHint) |
void |
remove(T t) |
void |
remove(T t,
String key) |
protected S |
unwrap(T propertyContainer) |
protected Neo4jDatabaseService graphDb
protected org.neo4j.graphdb.index.Index<S extends org.neo4j.graphdb.PropertyContainer> index
public AbstractIndexWrapper(Neo4jDatabaseService graphDb, org.neo4j.graphdb.index.Index<S> index)
public void add(T t, String key, Object value, Class typeHint)
add
in interface org.structr.api.index.Index<T extends org.structr.api.graph.PropertyContainer>
public void remove(T t)
remove
in interface org.structr.api.index.Index<T extends org.structr.api.graph.PropertyContainer>
public void remove(T t, String key)
remove
in interface org.structr.api.index.Index<T extends org.structr.api.graph.PropertyContainer>
public org.structr.api.QueryResult<T> query(String key, Object value, Class typeHint)
query
in interface org.structr.api.index.Index<T extends org.structr.api.graph.PropertyContainer>
public org.structr.api.QueryResult<T> get(String key, Object value, Class typeHint)
get
in interface org.structr.api.index.Index<T extends org.structr.api.graph.PropertyContainer>
Copyright © 2016. All rights reserved.