Class AbstractRelatedAOListMapper<P,T extends Entity,U extends com.atlassian.jira.entity.WithId>
java.lang.Object
com.atlassian.greenhopper.manager.AbstractRelatedAOListMapper<P,T,U>
- All Implemented Interfaces:
AOListMapper<T,
U>
- Direct Known Subclasses:
BoardAdminAOListMapper
,CardColorAOListMapper
,CardLayoutFieldAOListMapper
,ColumnAOListMapper
,DetailViewFieldAOListMapper
,EstimateStatisticAOListMapper
,NonWorkingDayAOListMapper
,QuickFilterAOListMapper
,SubqueryAOListMapper
,SwimlaneAOListMapper
,TrackingStatisticAOListMapper
,WorkingDaysAOListMapper
public abstract class AbstractRelatedAOListMapper<P,T extends Entity,U extends com.atlassian.jira.entity.WithId>
extends Object
implements AOListMapper<T,U>
Abstract class of a
AOListMapper
for an entity AbstractRelatedAOListMapper
which has a relationship with parent entity AbstractRelatedAOListMapper
.- Since:
- v5.9.5
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractRelatedAOListMapper
(P parentAO, RelatedAOMapper<P, T, U> mapper) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCreateValues
(U model, Map<String, Object> params) Provide the db parameter for T to be created.findExisting
(T[] recordAOs, U model) Get an existing T for given u.Get the class of Tabstract T[]
Provides all existing T.abstract void
postCreateUpdate
(T recordAO, U model) Called on the updated AO object (either once created or updated/saved).abstract void
Called before the element is deleted, gives the mapper a chance to clean up child objectsvoid
Updates an AO.
-
Field Details
-
parentAO
-
mapper
protected final RelatedAOMapper<P,T extends Entity, mapperU extends com.atlassian.jira.entity.WithId>
-
-
Constructor Details
-
AbstractRelatedAOListMapper
-
-
Method Details
-
addCreateValues
Description copied from interface:AOListMapper
Provide the db parameter for T to be created.- Specified by:
addCreateValues
in interfaceAOListMapper<P,
T extends Entity>
-
setValues
Description copied from interface:AOListMapper
Updates an AO. Note that save should not be called.- Specified by:
setValues
in interfaceAOListMapper<P,
T extends Entity>
-
findExisting
Description copied from interface:AOListMapper
Get an existing T for given u. Returns null if not found.- Specified by:
findExisting
in interfaceAOListMapper<P,
T extends Entity>
-
fromAO
- Specified by:
fromAO
in interfaceAOListMapper<P,
T extends Entity>
-
getActiveObjectClass
Description copied from interface:AOListMapper
Get the class of T- Specified by:
getActiveObjectClass
in interfaceAOListMapper<P,
T extends Entity>
-
postCreateUpdate
Description copied from interface:AOListMapper
Called on the updated AO object (either once created or updated/saved). Gives the mapper a chance to do further work, e.g. update child objects.- Specified by:
postCreateUpdate
in interfaceAOListMapper<P,
T extends Entity>
-
preDelete
Description copied from interface:AOListMapper
Called before the element is deleted, gives the mapper a chance to clean up child objects- Specified by:
preDelete
in interfaceAOListMapper<P,
T extends Entity>
-
getExisting
Description copied from interface:AOListMapper
Provides all existing T.- Specified by:
getExisting
in interfaceAOListMapper<P,
T extends Entity>
-