Class EstimateStatisticDao
java.lang.Object
com.atlassian.greenhopper.service.rapid.view.GenericActiveObjectsDao<Long,EstimateStatisticAO>
com.atlassian.greenhopper.manager.estimatestatistic.EstimateStatisticDao
- All Implemented Interfaces:
RelatedEntityDao<Long,
RapidViewAO, EstimateStatisticAO, StatisticsFieldConfig>
@Service
public class EstimateStatisticDao
extends GenericActiveObjectsDao<Long,EstimateStatisticAO>
implements RelatedEntityDao<Long,RapidViewAO,EstimateStatisticAO,StatisticsFieldConfig>
DAO for
EstimateStatisticAO
records.-
Field Summary
Fields inherited from class com.atlassian.greenhopper.service.rapid.view.GenericActiveObjectsDao
ao, entityType, log
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteForParent
(RapidViewAO rapidViewAO) Delete all records for specified parent.getForParent
(RapidViewAO rapidViewAO) Return all the records for the specified parent.getForParent
(Long primaryKey) Return all the records for the specified parent.updateForParent
(RapidViewAO rapidViewAO, List<StatisticsFieldConfig> models) Set the list of domain objects onto the parent record.updateOne
(RapidViewAO rapidViewAO, StatisticsFieldConfig estimateStatistic)
-
Constructor Details
-
EstimateStatisticDao
public EstimateStatisticDao()
-
-
Method Details
-
getForParent
Description copied from interface:RelatedEntityDao
Return all the records for the specified parent.- Specified by:
getForParent
in interfaceRelatedEntityDao<Long,
RapidViewAO, EstimateStatisticAO, StatisticsFieldConfig> - Parameters:
rapidViewAO
-- Returns:
- the records
-
getForParent
Description copied from interface:RelatedEntityDao
Return all the records for the specified parent.- Specified by:
getForParent
in interfaceRelatedEntityDao<Long,
RapidViewAO, EstimateStatisticAO, StatisticsFieldConfig> - Parameters:
primaryKey
-- Returns:
- the records
-
getOne
-
updateForParent
@Nonnull public List<EstimateStatisticAO> updateForParent(RapidViewAO rapidViewAO, List<StatisticsFieldConfig> models) Description copied from interface:RelatedEntityDao
Set the list of domain objects onto the parent record. This will create new or updated existing records as necessary.- Specified by:
updateForParent
in interfaceRelatedEntityDao<Long,
RapidViewAO, EstimateStatisticAO, StatisticsFieldConfig> - Parameters:
rapidViewAO
-models
-- Returns:
- the updated list of domain objects
-
updateOne
@Nonnull public EstimateStatisticAO updateOne(RapidViewAO rapidViewAO, StatisticsFieldConfig estimateStatistic) -
deleteForParent
Description copied from interface:RelatedEntityDao
Delete all records for specified parent.- Specified by:
deleteForParent
in interfaceRelatedEntityDao<Long,
RapidViewAO, EstimateStatisticAO, StatisticsFieldConfig> - Parameters:
rapidViewAO
-
-