public class EntityGraphMapper extends Object implements EntityToGraphMapper
EntityToGraphMapper that is driven by an instance of MetaData.| Constructor and Description |
|---|
EntityGraphMapper(MetaData metaData,
MappingContext mappingContext)
Constructs a new
EntityGraphMapper that uses the given MetaData. |
| Modifier and Type | Method and Description |
|---|---|
CypherContext |
map(Object entity)
Processes the given object and any of its composite persistent objects and produces Cypher queries to persist their state
in Neo4j.
|
CypherContext |
map(Object entity,
int horizon)
Processes the given object and any of its composite persistent objects to the specified depth and produces Cypher queries
to persist their state in Neo4j.
|
public EntityGraphMapper(MetaData metaData, MappingContext mappingContext)
EntityGraphMapper that uses the given MetaData.metaData - The MetaData containing the mapping informationmappingContext - The MappingContext for the current sessionpublic CypherContext map(Object entity)
EntityToGraphMappermap in interface EntityToGraphMapperentity - The "root" node of the object graph to persistCypherContext object containing the statements required to persist the given object to Neo4j, along
with a representation of the changes to be made by the Cypher statements never nullpublic CypherContext map(Object entity, int horizon)
EntityToGraphMappermap in interface EntityToGraphMapperentity - The "root" node of the object graph to persisthorizon - The number of objects away from the "root" to traverse when looking for objects to mapCypherContext object containing the statements required to persist the given object to Neo4j, along
with a representation of the changes to be made by the Cypher statements never nullCopyright © 2015 Neo Technology, Inc.. All rights reserved.