Package org.neo4j.ogm.context
Class GraphRowListModelMapper
java.lang.Object
org.neo4j.ogm.context.GraphRowListModelMapper
- All Implemented Interfaces:
ResponseMapper<org.neo4j.ogm.model.GraphRowListModel>
public class GraphRowListModelMapper
extends Object
implements ResponseMapper<org.neo4j.ogm.model.GraphRowListModel>
- Author:
- Vince Bickers, Michael J. Simons, Niels Oertel
-
Constructor Summary
ConstructorsConstructorDescriptionGraphRowListModelMapper
(MetaData metaData, MappingContext mappingContext, EntityInstantiator entityInstantiator) -
Method Summary
-
Constructor Details
-
GraphRowListModelMapper
public GraphRowListModelMapper(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.GraphRowListModel> 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.GraphRowListModel>
- 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
-