Class CardColorAOMapper

java.lang.Object
com.atlassian.greenhopper.manager.color.CardColorAOMapper
All Implemented Interfaces:
AOMapper<CardColorAO,CardColor>, RelatedAOMapper<RapidViewAO,CardColorAO,CardColor>

@Service public class CardColorAOMapper extends Object implements RelatedAOMapper<RapidViewAO,CardColorAO,CardColor>
  • Field Details

  • Constructor Details

    • CardColorAOMapper

      public CardColorAOMapper()
  • Method Details

    • toAO

      @Nonnull public Map<String,Object> toAO(CardColor cardColor)
      Description copied from interface: AOMapper
      Return a mapping of AO column names to values which will represent the domain object.

      The keys of the map must be the exact names of the columns as they will appear in AO. E.g. for a column fieldId the column name would be FIELD_ID.

      Note: the ID (primary key) column does not need to be included. This is only used when persisting new domain objects to AO.

      Specified by:
      toAO in interface AOMapper<CardColorAO,CardColor>
      Parameters:
      cardColor - the new domain object
      Returns:
      a map containing the columns and values
    • toAO

      @Nonnull public Map<String,Object> toAO(RapidViewAO rapidViewAO, CardColor cardColor)
      Description copied from interface: RelatedAOMapper
      Returns a map representation of the domain object, similar to AOMapper.toAO(Object) but also incorporating the parent record information.
      Specified by:
      toAO in interface RelatedAOMapper<RapidViewAO,CardColorAO,CardColor>
      Returns:
    • toModel

      @Nonnull public CardColor toModel(CardColorAO cardColorAO)
      Description copied from interface: AOMapper
      Constructs a (usually immutable) domain object from the AO record.
      Specified by:
      toModel in interface AOMapper<CardColorAO,CardColor>
      Parameters:
      cardColorAO - the record to use
      Returns:
      the domain object
    • update

      public void update(CardColor source, CardColorAO target)
      Description copied from interface: AOMapper
      Copies fields from a domain object to the AO record representation. Note that the save() method must not be called.
      Specified by:
      update in interface AOMapper<CardColorAO,CardColor>
      Parameters:
      source - the domain object
      target - the corresponding AO record
    • toModels

      public List<CardColor> toModels(Iterable<CardColorAO> cardColorAos)