com.atlassian.greenhopper.manager.audit
Class AuditEntryAOMapper
java.lang.Object
com.atlassian.greenhopper.manager.AbstractAOMapper<AuditEntryAO,AuditEntry>
com.atlassian.greenhopper.manager.audit.AuditEntryAOMapper
- All Implemented Interfaces:
- AOMapper<AuditEntryAO,AuditEntry>
@Service
public class AuditEntryAOMapper
- extends AbstractAOMapper<AuditEntryAO,AuditEntry>
Method Summary |
java.util.Map<java.lang.String,java.lang.Object> |
toAO(AuditEntry model)
Return a mapping of AO column names to values which will represent the domain object. |
AuditEntry |
toModel(AuditEntryAO record)
Constructs a (usually immutable) domain object from the AO record. |
void |
update(AuditEntry source,
AuditEntryAO target)
Copies fields from a domain object to the AO record representation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AuditEntryAOMapper
public AuditEntryAOMapper()
toAO
public java.util.Map<java.lang.String,java.lang.Object> toAO(AuditEntry model)
- 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.
- Parameters:
model
- the new domain object
- Returns:
- a map containing the columns and values
toModel
public AuditEntry toModel(AuditEntryAO record)
- Description copied from interface:
AOMapper
- Constructs a (usually immutable) domain object from the AO record.
- Parameters:
record
- the record to use
- Returns:
- the domain object
update
public void update(AuditEntry source,
AuditEntryAO 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.
- Parameters:
source
- the domain objecttarget
- the corresponding AO record
Copyright © 2007-2014 Atlassian. All Rights Reserved.