Class VersionMetaDataAOMapper
java.lang.Object
com.atlassian.greenhopper.manager.AbstractAOMapper<VersionMetaDataAO,LegacyVersionMetaDataImpl>
com.atlassian.greenhopper.manager.version.VersionMetaDataAOMapper
- All Implemented Interfaces:
AOMapper<VersionMetaDataAO,LegacyVersionMetaDataImpl>
@Service
public class VersionMetaDataAOMapper
extends AbstractAOMapper<VersionMetaDataAO,LegacyVersionMetaDataImpl>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontoAO(LegacyVersionMetaDataImpl model) Return a mapping of AO column names to values which will represent the domain object.toModel(VersionMetaDataAO versionMetaDataAO) Constructs a (usually immutable) domain object from the AO record.voidupdate(LegacyVersionMetaDataImpl source, VersionMetaDataAO 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
-
VersionMetaDataAOMapper
public VersionMetaDataAOMapper()
-
-
Method Details
-
toAO
Description copied from interface:AOMapperReturn 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.- Parameters:
model- the new domain object- Returns:
- a map containing the columns and values
-
toModel
Description copied from interface:AOMapperConstructs a (usually immutable) domain object from the AO record.- Parameters:
versionMetaDataAO- the record to use- Returns:
- the domain object
-
update
Description copied from interface:AOMapperCopies fields from a domain object to the AO record representation. Note that the save() method must not be called.- Parameters:
source- the domain objecttarget- the corresponding AO record
-