public class TypeRepresentationStrategies extends Object implements TypeRepresentationStrategy<org.neo4j.graphdb.PropertyContainer>
| Constructor and Description |
|---|
TypeRepresentationStrategies(Neo4jMappingContext mappingContext,
TypeRepresentationStrategy<org.neo4j.graphdb.Node> nodeTypeRepresentationStrategy,
TypeRepresentationStrategy<org.neo4j.graphdb.Relationship> relationshipTypeRepresentationStrategy) |
| Modifier and Type | Method and Description |
|---|---|
long |
count(StoredEntityType type) |
<U> org.neo4j.helpers.collection.ClosableIterable<org.neo4j.graphdb.PropertyContainer> |
findAll(StoredEntityType type) |
TypeRepresentationStrategy<org.neo4j.graphdb.Node> |
getNodeTypeRepresentationStrategy() |
TypeRepresentationStrategy<org.neo4j.graphdb.Relationship> |
getRelationshipTypeRepresentationStrategy() |
boolean |
isLabelBased() |
void |
preEntityRemoval(org.neo4j.graphdb.PropertyContainer state)
Callback for cleaning up type information before removal.
|
Object |
readAliasFrom(org.neo4j.graphdb.PropertyContainer state) |
void |
writeTypeTo(org.neo4j.graphdb.PropertyContainer state,
StoredEntityType type)
Callback for setting up and/or storing type information after creation.
|
public TypeRepresentationStrategies(Neo4jMappingContext mappingContext, TypeRepresentationStrategy<org.neo4j.graphdb.Node> nodeTypeRepresentationStrategy, TypeRepresentationStrategy<org.neo4j.graphdb.Relationship> relationshipTypeRepresentationStrategy)
public void writeTypeTo(org.neo4j.graphdb.PropertyContainer state,
StoredEntityType type)
TypeRepresentationStrategywriteTypeTo in interface TypeRepresentationStrategy<org.neo4j.graphdb.PropertyContainer>state - Backing state of entity being createdtype - Type of entity being createdpublic <U> org.neo4j.helpers.collection.ClosableIterable<org.neo4j.graphdb.PropertyContainer> findAll(StoredEntityType type)
findAll in interface TypeRepresentationStrategy<org.neo4j.graphdb.PropertyContainer>public long count(StoredEntityType type)
count in interface TypeRepresentationStrategy<org.neo4j.graphdb.PropertyContainer>public Object readAliasFrom(org.neo4j.graphdb.PropertyContainer state)
readAliasFrom in interface TypeRepresentationStrategy<org.neo4j.graphdb.PropertyContainer>public void preEntityRemoval(org.neo4j.graphdb.PropertyContainer state)
TypeRepresentationStrategypreEntityRemoval in interface TypeRepresentationStrategy<org.neo4j.graphdb.PropertyContainer>state - Backing state of entity being removedpublic boolean isLabelBased()
isLabelBased in interface TypeRepresentationStrategy<org.neo4j.graphdb.PropertyContainer>public TypeRepresentationStrategy<org.neo4j.graphdb.Node> getNodeTypeRepresentationStrategy()
public TypeRepresentationStrategy<org.neo4j.graphdb.Relationship> getRelationshipTypeRepresentationStrategy()
Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.