Class CardLayoutFieldAOMapper
java.lang.Object
com.atlassian.greenhopper.manager.AbstractAOMapper<CardLayoutFieldAO,CardLayoutField>
com.atlassian.greenhopper.manager.cardlayout.CardLayoutFieldAOMapper
- All Implemented Interfaces:
AOMapper<CardLayoutFieldAO,
,CardLayoutField> RelatedAOMapper<RapidViewAO,
CardLayoutFieldAO, CardLayoutField>
@Service
public class CardLayoutFieldAOMapper
extends AbstractAOMapper<CardLayoutFieldAO,CardLayoutField>
implements RelatedAOMapper<RapidViewAO,CardLayoutFieldAO,CardLayoutField>
Maps to
CardLayoutField
- Since:
- v6.5
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontoAO
(CardLayoutField cardLayoutField) Return a mapping of AO column names to values which will represent the domain object.toAO
(RapidViewAO parent, CardLayoutField cardLayoutField) Returns a map representation of the domain object, similar toAOMapper.toAO(Object)
but also incorporating the parent record information.toModel
(CardLayoutFieldAO record) Constructs a (usually immutable) domain object from the AO record.void
update
(CardLayoutField source, CardLayoutFieldAO target) Copies fields from a domain object to the AO record representation.Methods inherited from class com.atlassian.greenhopper.manager.AbstractAOMapper
getActiveObjectClass, toModel, toModel
-
Constructor Details
-
CardLayoutFieldAOMapper
public CardLayoutFieldAOMapper()
-
-
Method Details
-
toAO
Description copied from interface:RelatedAOMapper
Returns a map representation of the domain object, similar toAOMapper.toAO(Object)
but also incorporating the parent record information.- Specified by:
toAO
in interfaceRelatedAOMapper<RapidViewAO,
CardLayoutFieldAO, CardLayoutField> - Parameters:
parent
-cardLayoutField
-- Returns:
-
toAO
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 interfaceAOMapper<CardLayoutFieldAO,
CardLayoutField> - Parameters:
cardLayoutField
- the new domain object- Returns:
- a map containing the columns and values
-
toModel
Description copied from interface:AOMapper
Constructs a (usually immutable) domain object from the AO record.- Specified by:
toModel
in interfaceAOMapper<CardLayoutFieldAO,
CardLayoutField> - Parameters:
record
- the record to use- Returns:
- the domain object
-
update
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 interfaceAOMapper<CardLayoutFieldAO,
CardLayoutField> - Parameters:
source
- the domain objecttarget
- the corresponding AO record
-