Package org.neo4j.ogm.context
Class GraphRowModelMapper
java.lang.Object
org.neo4j.ogm.context.GraphRowModelMapper
- All Implemented Interfaces:
ResponseMapper<org.neo4j.ogm.model.GraphModel>
public class GraphRowModelMapper
extends Object
implements ResponseMapper<org.neo4j.ogm.model.GraphModel>
- Author:
- Michael J. Simons
-
Constructor Summary
ConstructorDescriptionGraphRowModelMapper
(MetaData metaData, MappingContext mappingContext, EntityInstantiator entityInstantiator) -
Method Summary
-
Constructor Details
-
GraphRowModelMapper
public GraphRowModelMapper(MetaData metaData, MappingContext mappingContext, EntityInstantiator entityInstantiator)
-
-
Method Details
-
map
public <T> Iterable<T> map(Class<T> type, org.neo4j.ogm.response.Response<org.neo4j.ogm.model.GraphModel> response) Description copied from interface:ResponseMapper
Maps the data representation in the given response onto instances ofT
.- Specified by:
map
in interfaceResponseMapper<org.neo4j.ogm.model.GraphModel>
- Type Parameters:
T
- type of the result- Parameters:
type
- TheClass
defining the type to which each entities in the response should be mappedresponse
- TheResponse
object containing the data to map onto the objects- Returns:
- An
Iterable
of typeT
containing relevant data extracted from the response
-