com.atlassian.greenhopper.manager.workingdays
Class WorkingDaysDao

java.lang.Object
  extended by com.atlassian.greenhopper.service.rapid.view.GenericActiveObjectsDao<java.lang.Long,WorkingDaysAO>
      extended by com.atlassian.greenhopper.manager.workingdays.WorkingDaysDao
All Implemented Interfaces:
RelatedEntityDao<java.lang.Long,RapidViewAO,WorkingDaysAO,WorkingDaysConfig>

@Service
public class WorkingDaysDao
extends GenericActiveObjectsDao<java.lang.Long,WorkingDaysAO>
implements RelatedEntityDao<java.lang.Long,RapidViewAO,WorkingDaysAO,WorkingDaysConfig>


Field Summary
 
Fields inherited from class com.atlassian.greenhopper.service.rapid.view.GenericActiveObjectsDao
ao, entityType, log
 
Constructor Summary
WorkingDaysDao()
           
 
Method Summary
 void deleteForParent(RapidViewAO rapidViewAO)
          Delete all records for specified parent.
 WorkingDaysAO[] getForParent(java.lang.Long primaryKey)
          Return all the records for the specified parent.
 WorkingDaysAO[] getForParent(RapidViewAO rapidViewAO)
          Return all the records for the specified parent.
 WorkingDaysAO getOne(java.lang.Long rapidViewId)
           
protected  void preDelete(WorkingDaysAO... entities)
           
 java.util.List<WorkingDaysAO> updateForParent(RapidViewAO rapidViewAO, java.util.List<WorkingDaysConfig> models)
          Set the list of domain objects onto the parent record.
 WorkingDaysAO updateOne(RapidViewAO rapidViewAO, WorkingDaysConfig workingDaysConfig)
           
 
Methods inherited from class com.atlassian.greenhopper.service.rapid.view.GenericActiveObjectsDao
create, delete, delete, findBy, flushAll, load, save
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkingDaysDao

public WorkingDaysDao()
Method Detail

getForParent

@NotNull
public WorkingDaysAO[] 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,WorkingDaysAO,WorkingDaysConfig>
Returns:
the records

getForParent

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

getOne

public WorkingDaysAO getOne(java.lang.Long rapidViewId)

updateForParent

@NotNull
public java.util.List<WorkingDaysAO> updateForParent(RapidViewAO rapidViewAO,
                                                             java.util.List<WorkingDaysConfig> 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,WorkingDaysAO,WorkingDaysConfig>
Returns:
the updated list of domain objects

updateOne

@NotNull
public WorkingDaysAO updateOne(RapidViewAO rapidViewAO,
                                       WorkingDaysConfig workingDaysConfig)

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,WorkingDaysAO,WorkingDaysConfig>

preDelete

protected void preDelete(WorkingDaysAO... entities)
Overrides:
preDelete in class GenericActiveObjectsDao<java.lang.Long,WorkingDaysAO>


Copyright © 2007-2014 Atlassian. All Rights Reserved.