Package org.neo4j.ogm.context
Interface ResponseMapper<M>
- Type Parameters:
M
- The Response model
- All Known Implementing Classes:
GraphRowListModelMapper
,GraphRowModelMapper
public interface ResponseMapper<M>
Specification for an object-model mapper, which can map a model M onto arbitrary Java objects.
- Author:
- Vince Bickers
-
Method Summary
-
Method Details
-
map
Maps the data representation in the given response onto instances ofT
.- 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
-