com.atlassian.greenhopper.manager.estimatestatistic
Class EstimateStatisticDao

java.lang.Object
  extended by com.atlassian.greenhopper.service.rapid.view.GenericActiveObjectsDao<java.lang.Long,EstimateStatisticAO>
      extended by com.atlassian.greenhopper.manager.estimatestatistic.EstimateStatisticDao
All Implemented Interfaces:
RelatedEntityDao<java.lang.Long,RapidViewAO,EstimateStatisticAO,StatisticsFieldConfig>

@Service
public class EstimateStatisticDao
extends GenericActiveObjectsDao<java.lang.Long,EstimateStatisticAO>
implements RelatedEntityDao<java.lang.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
EstimateStatisticDao()
           
 
Method Summary
 void deleteForParent(RapidViewAO rapidViewAO)
          Delete all records for specified parent.
 EstimateStatisticAO[] getForParent(java.lang.Long primaryKey)
          Return all the records for the specified parent.
 EstimateStatisticAO[] getForParent(RapidViewAO rapidViewAO)
          Return all the records for the specified parent.
 EstimateStatisticAO getOne(java.lang.Long rapidViewId)
           
 java.util.List<EstimateStatisticAO> updateForParent(RapidViewAO rapidViewAO, java.util.List<StatisticsFieldConfig> models)
          Set the list of domain objects onto the parent record.
 EstimateStatisticAO updateOne(RapidViewAO rapidViewAO, StatisticsFieldConfig estimateStatistic)
           
 
Methods inherited from class com.atlassian.greenhopper.service.rapid.view.GenericActiveObjectsDao
create, delete, delete, findBy, flushAll, load, preDelete, save
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EstimateStatisticDao

public EstimateStatisticDao()
Method Detail

getForParent

@NotNull
public EstimateStatisticAO[] getForParent(RapidViewAO rapidViewAO)
Description copied from interface: RelatedEntityDao
Return all the records for the specified parent.

Specified by:
getForParent in interface RelatedEntityDao<java.lang.Long,RapidViewAO,EstimateStatisticAO,StatisticsFieldConfig>
Returns:
the records

getForParent

public EstimateStatisticAO[] getForParent(java.lang.Long primaryKey)
Description copied from interface: RelatedEntityDao
Return all the records for the specified parent.

Specified by:
getForParent in interface RelatedEntityDao<java.lang.Long,RapidViewAO,EstimateStatisticAO,StatisticsFieldConfig>
Returns:
the records

getOne

public EstimateStatisticAO getOne(java.lang.Long rapidViewId)

updateForParent

@NotNull
public java.util.List<EstimateStatisticAO> updateForParent(RapidViewAO rapidViewAO,
                                                                   java.util.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 interface RelatedEntityDao<java.lang.Long,RapidViewAO,EstimateStatisticAO,StatisticsFieldConfig>
Returns:
the updated list of domain objects

updateOne

@NotNull
public EstimateStatisticAO updateOne(RapidViewAO rapidViewAO,
                                             StatisticsFieldConfig estimateStatistic)

deleteForParent

public void deleteForParent(RapidViewAO rapidViewAO)
Description copied from interface: RelatedEntityDao
Delete all records for specified parent.

Specified by:
deleteForParent in interface RelatedEntityDao<java.lang.Long,RapidViewAO,EstimateStatisticAO,StatisticsFieldConfig>


Copyright © 2007-2014 Atlassian. All Rights Reserved.