public class Neo4jIndexManager extends Object
Node and Relationship indexes.| Constructor and Description |
|---|
Neo4jIndexManager(Neo4jDatastoreProvider provider) |
| Modifier and Type | Method and Description |
|---|---|
org.neo4j.graphdb.Node |
findNode(EntityKey entityKey)
Looks for a
Node in the index. |
org.neo4j.graphdb.index.IndexHits<org.neo4j.graphdb.Node> |
findNodes(String tableName)
Return all the indexed nodes corresponding to an entity type.
|
org.neo4j.graphdb.Relationship |
findRelationship(org.neo4j.graphdb.RelationshipType type,
RowKey rowKey)
Looks for a
Relationship in the index. |
void |
index(org.neo4j.graphdb.Node node,
EntityKey entityKey)
Index a
Node. |
void |
index(org.neo4j.graphdb.Relationship relationship)
Index a
Relationship. |
void |
remove(org.neo4j.graphdb.Node entityNode) |
void |
remove(org.neo4j.graphdb.Relationship rel)
Remove a
Relationship from the index. |
public Neo4jIndexManager(Neo4jDatastoreProvider provider)
public void index(org.neo4j.graphdb.Node node,
EntityKey entityKey)
Node.node - the Node to indexentityKey - the EntityKey representing the nodefindNode(EntityKey)public void index(org.neo4j.graphdb.Relationship relationship)
Relationship.relationship - the Relationship to indexfindRelationship(RelationshipType, RowKey)public void remove(org.neo4j.graphdb.Relationship rel)
Relationship from the index.rel - the Relationship is going to be removed from the indexpublic org.neo4j.graphdb.Relationship findRelationship(org.neo4j.graphdb.RelationshipType type,
RowKey rowKey)
Relationship in the index.type - the RelationshipType of the wanted relationshiprowKey - the RowKey that representing the relationship.public org.neo4j.graphdb.Node findNode(EntityKey entityKey)
Node in the index.entityKey - the EntityKey that identify the node.public void remove(org.neo4j.graphdb.Node entityNode)
public org.neo4j.graphdb.index.IndexHits<org.neo4j.graphdb.Node> findNodes(String tableName)
tableName - the name of the table representing the entityCopyright © 2010-2013 Hibernate. All Rights Reserved.