Class ColumnAOMapper
java.lang.Object
com.atlassian.greenhopper.service.rapid.view.ColumnAOMapper
- All Implemented Interfaces:
AOMapper<ColumnAO,
,Column> RelatedAOMapper<RapidViewAO,
ColumnAO, Column>
@Service
public class ColumnAOMapper
extends Object
implements RelatedAOMapper<RapidViewAO,ColumnAO,Column>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn a mapping of AO column names to values which will represent the domain object.toAO
(RapidViewAO rapidViewAO, Column model) Returns a map representation of the domain object, similar toAOMapper.toAO(Object)
but also incorporating the parent record information.Constructs a (usually immutable) domain object from the AO record.void
Copies fields from a domain object to the AO record representation.
-
Constructor Details
-
ColumnAOMapper
public ColumnAOMapper()
-
-
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,
ColumnAO, Column> - 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. -
toModel
Description copied from interface:AOMapper
Constructs a (usually immutable) domain object from the AO record. -
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.
-