Spring Data Neo4j

org.springframework.data.neo4j.support.typerepresentation
Class NoopRelationshipTypeRepresentationStrategy

java.lang.Object
  extended by org.springframework.data.neo4j.support.typerepresentation.NoopRelationshipTypeRepresentationStrategy
All Implemented Interfaces:
RelationshipTypeRepresentationStrategy, TypeRepresentationStrategy<org.neo4j.graphdb.Relationship>

public class NoopRelationshipTypeRepresentationStrategy
extends Object
implements RelationshipTypeRepresentationStrategy


Constructor Summary
NoopRelationshipTypeRepresentationStrategy()
           
 
Method Summary
 long count(StoredEntityType type)
           
<U> org.neo4j.helpers.collection.ClosableIterable<org.neo4j.graphdb.Relationship>
findAll(StoredEntityType type)
           
 void preEntityRemoval(org.neo4j.graphdb.Relationship state)
          Callback for cleaning up type information before removal.
 Object readAliasFrom(org.neo4j.graphdb.Relationship state)
           
 void writeTypeTo(org.neo4j.graphdb.Relationship state, StoredEntityType type)
          Callback for setting up and/or storing type information after creation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoopRelationshipTypeRepresentationStrategy

public NoopRelationshipTypeRepresentationStrategy()
Method Detail

writeTypeTo

public void writeTypeTo(org.neo4j.graphdb.Relationship state,
                        StoredEntityType type)
Description copied from interface: TypeRepresentationStrategy
Callback for setting up and/or storing type information after creation.

Specified by:
writeTypeTo in interface TypeRepresentationStrategy<org.neo4j.graphdb.Relationship>
Parameters:
state - Backing state of entity being created
type - Type of entity being created

findAll

public <U> org.neo4j.helpers.collection.ClosableIterable<org.neo4j.graphdb.Relationship> findAll(StoredEntityType type)
Specified by:
findAll in interface TypeRepresentationStrategy<org.neo4j.graphdb.Relationship>

count

public long count(StoredEntityType type)
Specified by:
count in interface TypeRepresentationStrategy<org.neo4j.graphdb.Relationship>

preEntityRemoval

public void preEntityRemoval(org.neo4j.graphdb.Relationship state)
Description copied from interface: TypeRepresentationStrategy
Callback for cleaning up type information before removal. If state does not have any state associated, doesn't do anything.

Specified by:
preEntityRemoval in interface TypeRepresentationStrategy<org.neo4j.graphdb.Relationship>
Parameters:
state - Backing state of entity being removed

readAliasFrom

public Object readAliasFrom(org.neo4j.graphdb.Relationship state)
Specified by:
readAliasFrom in interface TypeRepresentationStrategy<org.neo4j.graphdb.Relationship>
Returns:
java type that of the node entity of this node

Spring Data Neo4j

Copyright © 2012 SpringSource. All Rights Reserved.