|
Spring Data Graph | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.neo4j.support.typerepresentation.IndexingRelationshipTypeRepresentationStrategy
public class IndexingRelationshipTypeRepresentationStrategy
| Field Summary | |
|---|---|
static String |
INDEX_KEY
|
static String |
INDEX_NAME
|
static String |
TYPE_PROPERTY_NAME
|
| Constructor Summary | |
|---|---|
IndexingRelationshipTypeRepresentationStrategy(org.neo4j.graphdb.GraphDatabaseService graphDb,
org.springframework.data.persistence.EntityInstantiator<RelationshipBacked,org.neo4j.graphdb.Relationship> relationshipEntityInstantiator)
|
|
| Method Summary | ||
|---|---|---|
long |
count(Class<? extends RelationshipBacked> entityClass)
|
|
|
createEntity(org.neo4j.graphdb.Relationship state)
Instantiate the entity given its state. |
|
|
createEntity(org.neo4j.graphdb.Relationship state,
Class<U> type)
Instantiate the entity given its state. |
|
|
findAll(Class<U> clazz)
|
|
Class<? extends RelationshipBacked> |
getJavaType(org.neo4j.graphdb.Relationship relationship)
|
|
void |
postEntityCreation(org.neo4j.graphdb.Relationship state,
Class<? extends RelationshipBacked> 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. |
|
|
projectEntity(org.neo4j.graphdb.Relationship state,
Class<U> type)
Instantiate the entity of the given type, with the given state as backing state. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String INDEX_NAME
public static final String TYPE_PROPERTY_NAME
public static final String INDEX_KEY
| Constructor Detail |
|---|
public IndexingRelationshipTypeRepresentationStrategy(org.neo4j.graphdb.GraphDatabaseService graphDb,
org.springframework.data.persistence.EntityInstantiator<RelationshipBacked,org.neo4j.graphdb.Relationship> relationshipEntityInstantiator)
| Method Detail |
|---|
public void postEntityCreation(org.neo4j.graphdb.Relationship state,
Class<? extends RelationshipBacked> type)
TypeRepresentationStrategy
postEntityCreation in interface TypeRepresentationStrategy<org.neo4j.graphdb.Relationship,RelationshipBacked>state - Backing state of entity being createdtype - Type of entity being createdpublic <U extends RelationshipBacked> org.neo4j.helpers.collection.ClosableIterable<U> findAll(Class<U> clazz)
findAll in interface TypeRepresentationStrategy<org.neo4j.graphdb.Relationship,RelationshipBacked>clazz - Type whose instances should be iterated over
public long count(Class<? extends RelationshipBacked> entityClass)
count in interface TypeRepresentationStrategy<org.neo4j.graphdb.Relationship,RelationshipBacked>public Class<? extends RelationshipBacked> getJavaType(org.neo4j.graphdb.Relationship relationship)
getJavaType in interface TypeRepresentationStrategy<org.neo4j.graphdb.Relationship,RelationshipBacked>public void preEntityRemoval(org.neo4j.graphdb.Relationship state)
TypeRepresentationStrategy
preEntityRemoval in interface TypeRepresentationStrategy<org.neo4j.graphdb.Relationship,RelationshipBacked>state - Backing state of entity being removedpublic <U extends RelationshipBacked> U createEntity(org.neo4j.graphdb.Relationship state)
TypeRepresentationStrategy
createEntity in interface TypeRepresentationStrategy<org.neo4j.graphdb.Relationship,RelationshipBacked>U - Helper parameter for castless usestate - Backing state of entity to be instantiated
public <U extends RelationshipBacked> U createEntity(org.neo4j.graphdb.Relationship state,
Class<U> type)
TypeRepresentationStrategyIllegalArgumentException is thrown.
createEntity in interface TypeRepresentationStrategy<org.neo4j.graphdb.Relationship,RelationshipBacked>state - Backing state of entity to be instantiatedtype - Type of entity to be instantiated
public <U extends RelationshipBacked> U projectEntity(org.neo4j.graphdb.Relationship state,
Class<U> type)
TypeRepresentationStrategy
projectEntity in interface TypeRepresentationStrategy<org.neo4j.graphdb.Relationship,RelationshipBacked>state - Backing state of entity to be instantiatedtype - Type of entity to be instantiated
|
Spring Data Graph | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||