com.atlassian.greenhopper.service.rapid.view
Class SwimlaneDao

java.lang.Object
  extended by com.atlassian.greenhopper.service.rapid.view.GenericActiveObjectsDao<java.lang.Long,SwimlaneAO>
      extended by com.atlassian.greenhopper.service.rapid.view.SwimlaneDao
All Implemented Interfaces:
RelatedEntityDao<java.lang.Long,RapidViewAO,SwimlaneAO,Swimlane>

@Service
public class SwimlaneDao
extends GenericActiveObjectsDao<java.lang.Long,SwimlaneAO>
implements RelatedEntityDao<java.lang.Long,RapidViewAO,SwimlaneAO,Swimlane>


Field Summary
 
Fields inherited from class com.atlassian.greenhopper.service.rapid.view.GenericActiveObjectsDao
ao, entityType, log
 
Constructor Summary
SwimlaneDao()
           
 
Method Summary
 void deleteForParent(RapidViewAO rapidViewAO)
          Delete all records for specified parent.
 SwimlaneAO[] getForParent(java.lang.Long rapidViewId)
          Return all the records for the specified parent.
 SwimlaneAO[] getForParent(RapidViewAO parent)
          Return all the records for the specified parent.
 SwimlaneAO getSwimlane(long rapidViewId, long swimlaneId)
           
 java.util.List<SwimlaneAO> updateForParent(RapidViewAO rapidViewAO, java.util.List<Swimlane> swimlanes)
          Set the list of domain objects onto the parent record.
 SwimlaneAO updateSwimlane(Swimlane swimlane, ErrorCollection errors)
           
 
Methods inherited from class com.atlassian.greenhopper.service.rapid.view.GenericActiveObjectsDao
create, delete, delete, findBy, load, preDelete, save
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwimlaneDao

public SwimlaneDao()
Method Detail

getSwimlane

public SwimlaneAO getSwimlane(long rapidViewId,
                              long swimlaneId)

getForParent

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

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

getForParent

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

updateSwimlane

public SwimlaneAO updateSwimlane(Swimlane swimlane,
                                 ErrorCollection errors)

updateForParent

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

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,SwimlaneAO,Swimlane>


Copyright © 2007-2013 Atlassian. All Rights Reserved.