com.atlassian.greenhopper.service.rapid.view.subquery
Class SubqueryDao

java.lang.Object
  extended by com.atlassian.greenhopper.service.rapid.view.GenericActiveObjectsDao<java.lang.Long,SubqueryAO>
      extended by com.atlassian.greenhopper.service.rapid.view.subquery.SubqueryDao
All Implemented Interfaces:
RelatedEntityDao<java.lang.Long,RapidViewAO,SubqueryAO,Subquery>

@Service
public class SubqueryDao
extends GenericActiveObjectsDao<java.lang.Long,SubqueryAO>
implements RelatedEntityDao<java.lang.Long,RapidViewAO,SubqueryAO,Subquery>


Field Summary
 
Fields inherited from class com.atlassian.greenhopper.service.rapid.view.GenericActiveObjectsDao
ao, entityType, log
 
Constructor Summary
SubqueryDao()
           
 
Method Summary
 void deleteForParent(RapidViewAO rapidViewAO)
          Delete all records for specified parent.
 SubqueryAO findByRapidViewAndSection(RapidView rapidView, Subquery.Section section)
           
 SubqueryAO[] getForParent(java.lang.Long rapidViewId)
          Return all the records for the specified parent.
 SubqueryAO[] getForParent(RapidViewAO rapidViewAO)
          Return all the records for the specified parent.
 java.util.List<SubqueryAO> updateForParent(RapidViewAO rapidViewAO, java.util.List<Subquery> subqueries)
          Set the list of domain objects onto the parent record.
 
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

SubqueryDao

public SubqueryDao()
Method Detail

getForParent

public SubqueryAO[] 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,SubqueryAO,Subquery>
Returns:
the records

getForParent

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

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

updateForParent

public java.util.List<SubqueryAO> updateForParent(RapidViewAO rapidViewAO,
                                                  java.util.List<Subquery> subqueries)
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,SubqueryAO,Subquery>
Returns:
the updated list of domain objects

findByRapidViewAndSection

public SubqueryAO findByRapidViewAndSection(RapidView rapidView,
                                            Subquery.Section section)

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,SubqueryAO,Subquery>


Copyright © 2007-2014 Atlassian. All Rights Reserved.