Class NonWorkingDayDao
java.lang.Object
com.atlassian.greenhopper.service.rapid.view.GenericActiveObjectsDao<Long,NonWorkingDayAO>
com.atlassian.greenhopper.manager.workingdays.NonWorkingDayDao
- All Implemented Interfaces:
RelatedEntityDao<Long,
WorkingDaysAO, NonWorkingDayAO, NonWorkingDay>
@Service
public class NonWorkingDayDao
extends GenericActiveObjectsDao<Long,NonWorkingDayAO>
implements RelatedEntityDao<Long,WorkingDaysAO,NonWorkingDayAO,NonWorkingDay>
-
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
(WorkingDaysAO workingDaysAO) Delete all records for specified parent.getForParent
(WorkingDaysAO workingDaysAO) Return all the records for the specified parent.getForParent
(Long primaryKey) Return all the records for the specified parent.updateForParent
(WorkingDaysAO workingDaysAO, List<NonWorkingDay> models) Set the list of domain objects onto the parent record.
-
Constructor Details
-
NonWorkingDayDao
public NonWorkingDayDao()
-
-
Method Details
-
getForParent
Description copied from interface:RelatedEntityDao
Return all the records for the specified parent.- Specified by:
getForParent
in interfaceRelatedEntityDao<Long,
WorkingDaysAO, NonWorkingDayAO, NonWorkingDay> - Parameters:
workingDaysAO
-- Returns:
- the records
-
getForParent
Description copied from interface:RelatedEntityDao
Return all the records for the specified parent.- Specified by:
getForParent
in interfaceRelatedEntityDao<Long,
WorkingDaysAO, NonWorkingDayAO, NonWorkingDay> - Parameters:
primaryKey
-- Returns:
- the records
-
updateForParent
@Nonnull public List<NonWorkingDayAO> updateForParent(WorkingDaysAO workingDaysAO, List<NonWorkingDay> 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,
WorkingDaysAO, NonWorkingDayAO, NonWorkingDay> - Parameters:
workingDaysAO
-models
-- Returns:
- the updated list of domain objects
-
deleteForParent
Description copied from interface:RelatedEntityDao
Delete all records for specified parent.- Specified by:
deleteForParent
in interfaceRelatedEntityDao<Long,
WorkingDaysAO, NonWorkingDayAO, NonWorkingDay> - Parameters:
workingDaysAO
-
-