org.springframework.data.neo4j.support.typerepresentation
Class NoopRelationshipTypeRepresentationStrategy
java.lang.Object
org.springframework.data.neo4j.support.typerepresentation.NoopRelationshipTypeRepresentationStrategy
- All Implemented Interfaces:
- RelationshipTypeRepresentationStrategy, TypeRepresentationStrategy<org.neo4j.graphdb.Relationship>
public class NoopRelationshipTypeRepresentationStrategy
- extends Object
- implements RelationshipTypeRepresentationStrategy
Method Summary |
long |
count(Class<?> entityClass)
|
<U> org.neo4j.helpers.collection.ClosableIterable<org.neo4j.graphdb.Relationship> |
|
findAll(Class<U> clazz)
|
Class<?> |
getJavaType(org.neo4j.graphdb.Relationship state)
|
void |
postEntityCreation(org.neo4j.graphdb.Relationship state,
Class<?> type)
Callback for setting up and/or storing type information after creation. |
void |
preEntityRemoval(org.neo4j.graphdb.Relationship state)
Callback for cleaning up type information before removal. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NoopRelationshipTypeRepresentationStrategy
public NoopRelationshipTypeRepresentationStrategy()
postEntityCreation
public void postEntityCreation(org.neo4j.graphdb.Relationship state,
Class<?> type)
- Description copied from interface:
TypeRepresentationStrategy
- Callback for setting up and/or storing type information after creation.
- Specified by:
postEntityCreation
in interface TypeRepresentationStrategy<org.neo4j.graphdb.Relationship>
- Parameters:
state
- Backing state of entity being createdtype
- Type of entity being created
findAll
public <U> org.neo4j.helpers.collection.ClosableIterable<org.neo4j.graphdb.Relationship> findAll(Class<U> clazz)
- Specified by:
findAll
in interface TypeRepresentationStrategy<org.neo4j.graphdb.Relationship>
- Parameters:
clazz
- Type whose instances should be iterated over
- Returns:
- lazy Iterable over all instances of the given type
count
public long count(Class<?> entityClass)
- Specified by:
count
in interface TypeRepresentationStrategy<org.neo4j.graphdb.Relationship>
- Returns:
- number of instances of this class contained in the graph
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
getJavaType
public Class<?> getJavaType(org.neo4j.graphdb.Relationship state)
- Specified by:
getJavaType
in interface TypeRepresentationStrategy<org.neo4j.graphdb.Relationship>
- Returns:
- java type that of the node entity of this node
Copyright © 2011 SpringSource. All Rights Reserved.