Class RowModelAdapter

java.lang.Object
org.neo4j.ogm.result.adapter.RowModelAdapter
All Implemented Interfaces:
ResultAdapter<Map<String,Object>,RowModel>

public abstract class RowModelAdapter extends Object implements ResultAdapter<Map<String,Object>,RowModel>
This adapter will transform a Map<String,Object> typically representing an Embedded or Bolt response into a RowModel response
Author:
vince, Luanne Misquitta
  • Constructor Details

    • RowModelAdapter

      public RowModelAdapter()
  • Method Details

    • adapt

      public RowModel adapt(Map<String,Object> data)
      Reads the next row from the result object and transforms it into a RowModel object
      Specified by:
      adapt in interface ResultAdapter<Map<String,Object>,RowModel>
      Parameters:
      data - the data to transform, given as a map
      Returns:
      the data transformed to an RowModel
    • setColumns

      public void setColumns(List<String> columns)
    • isPath

      public abstract boolean isPath(Object value)
    • isNode

      public abstract boolean isNode(Object value)
    • isRelationship

      public abstract boolean isRelationship(Object value)