public class EntityMapper extends RepositoryMapper
Map between an EntityDetail or EntityProxy object and a collection of database rows. This mapping can go in either direction.
  • Constructor Details

    • EntityMapper

      public EntityMapper(EntityDetail entityDetail, OMRSRepositoryHelper repositoryHelper, String repositoryName)
      Construct an entity mapper using an OMRS instance.
      Parameters:
      entityDetail - full entity
      repositoryHelper - repository helper
      repositoryName - repository name
    • EntityMapper

      public EntityMapper(EntityProxy entityProxy, OMRSRepositoryHelper repositoryHelper, String repositoryName)
      Construct an entity mapper using an OMRS instance.
      Parameters:
      entityProxy - entity proxy
      repositoryHelper - repository helper
      repositoryName - repository name
    • EntityMapper

      public EntityMapper(Map<String,JDBCDataValue> entityTableRow, List<Map<String,JDBCDataValue>> entityPropertiesTableRows, List<ClassificationMapper> classificationMappers, OMRSRepositoryHelper repositoryHelper, String repositoryName)
      Construct an entity mapper using the values from the database.
      Parameters:
      entityTableRow - row from the entity table
      entityPropertiesTableRows - rows from the entity properties table
      classificationMappers - mappers representing the entity's classifications
      repositoryHelper - repository helper
      repositoryName - repository name
  • Method Details