Class SubqueryAOMapper
java.lang.Object
com.atlassian.greenhopper.service.rapid.view.subquery.SubqueryAOMapper
- All Implemented Interfaces:
AOMapper<SubqueryAO,
,Subquery> RelatedAOMapper<RapidViewAO,
SubqueryAO, Subquery>
@Service
public class SubqueryAOMapper
extends Object
implements RelatedAOMapper<RapidViewAO,SubqueryAO,Subquery>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontoAO
(RapidViewAO rapidViewAO, Subquery subquery) Returns a map representation of the domain object, similar toAOMapper.toAO(Object)
but also incorporating the parent record information.Return a mapping of AO column names to values which will represent the domain object.toModel
(SubqueryAO subqueryAO) Constructs a (usually immutable) domain object from the AO record.void
update
(Subquery subquery, SubqueryAO subqueryAO) Copies fields from a domain object to the AO record representation.
-
Field Details
-
SUBQUERY_SECTION
- See Also:
-
-
Constructor Details
-
SubqueryAOMapper
public SubqueryAOMapper()
-
-
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,
SubqueryAO, Subquery> - 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<SubqueryAO,
Subquery> - Parameters:
subquery
- 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<SubqueryAO,
Subquery> - Parameters:
subqueryAO
- 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<SubqueryAO,
Subquery> - Parameters:
subquery
- the domain objectsubqueryAO
- the corresponding AO record
-