public class RelationshipMapper extends RepositoryMapper
Map between a relationship object and a collection of database rows. This mapping can go in either direction.
  • Constructor Details

    • RelationshipMapper

      public RelationshipMapper(Relationship relationship, OMRSRepositoryHelper repositoryHelper, String repositoryName)
      Construct a relationship mapper using an OMRS instance.
      Parameters:
      relationship - relationship
      repositoryHelper - repository helper
      repositoryName - repository name
    • RelationshipMapper

      public RelationshipMapper(Map<String,JDBCDataValue> relationshipTableRow, List<Map<String,JDBCDataValue>> relationshipPropertiesTableRows, EntityMapper end1Mapper, EntityMapper end2Mapper, OMRSRepositoryHelper repositoryHelper, String repositoryName)
      Construct a relationship mapper using the values from the database.
      Parameters:
      relationshipTableRow - row from the relationship table
      relationshipPropertiesTableRows - rows from the relationship properties table
      end1Mapper - entity mapper for the end1 proxy
      end2Mapper - entity mapper for the end2 proxy
      repositoryHelper - repository helper
      repositoryName - repository name
  • Method Details