java.lang.Object
org.neo4j.ogm.result.adapter.BaseAdapter
org.neo4j.ogm.result.adapter.GraphModelAdapter
- All Implemented Interfaces:
ResultAdapter<Map<String,Object>, GraphModel>
public abstract class GraphModelAdapter
extends BaseAdapter
implements ResultAdapter<Map<String,Object>,GraphModel>
This adapter will transform an embedded response into a json response
- Author:
- Vince Bickers, Luanne Misquitta, Michael J. Simons
-
Field Summary
Fields inherited from interface org.neo4j.ogm.result.adapter.ResultAdapter
PATTERN_COMPREHENSION_PATTERN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionParses a row from the result object and transforms it into a GraphModelabstract Longabstract booleanabstract booleanabstract booleanisRelationship(Object value) abstract longnodesInPath(Object path) properties(Object container) abstract longrelationshipId(Object relationship) abstract StringrelationshipType(Object relationship) relsInPath(Object path) abstract LongstartNodeId(Object relationship) Methods inherited from class org.neo4j.ogm.result.adapter.BaseAdapter
convertArrayPropertiesToCollection
-
Constructor Details
-
GraphModelAdapter
public GraphModelAdapter()
-
-
Method Details
-
adapt
Parses a row from the result object and transforms it into a GraphModel- Specified by:
adaptin interfaceResultAdapter<Map<String,Object>, GraphModel> - Parameters:
data- the data to transform, given as a map- Returns:
- the data transformed to an
GraphModel
-
isPath
-
isNode
-
isRelationship
-
nodeId
-
labels
-
relationshipId
-
relationshipType
-
startNodeId
-
endNodeId
-
properties
-
nodesInPath
-
relsInPath
-