com.atlassian.greenhopper.manager.workingdays
Class NonWorkingDayDao

java.lang.Object
  extended by com.atlassian.greenhopper.global.AbstractLoggable
      extended by com.atlassian.greenhopper.service.rapid.view.GenericActiveObjectsDao<java.lang.Long,NonWorkingDayAO>
          extended by com.atlassian.greenhopper.manager.workingdays.NonWorkingDayDao
All Implemented Interfaces:
RelatedEntityDao<java.lang.Long,WorkingDaysAO,NonWorkingDayAO,NonWorkingDay>

@Service
public class NonWorkingDayDao
extends GenericActiveObjectsDao<java.lang.Long,NonWorkingDayAO>
implements RelatedEntityDao<java.lang.Long,WorkingDaysAO,NonWorkingDayAO,NonWorkingDay>


Field Summary
 
Fields inherited from class com.atlassian.greenhopper.service.rapid.view.GenericActiveObjectsDao
ao, entityType
 
Fields inherited from class com.atlassian.greenhopper.global.AbstractLoggable
logger
 
Constructor Summary
NonWorkingDayDao()
           
 
Method Summary
 void deleteForParent(WorkingDaysAO workingDaysAO)
          Delete all records for specified parent.
 NonWorkingDayAO[] getForParent(java.lang.Long primaryKey)
          Return all the records for the specified parent.
 NonWorkingDayAO[] getForParent(WorkingDaysAO workingDaysAO)
          Return all the records for the specified parent.
 java.util.List<NonWorkingDayAO> updateForParent(WorkingDaysAO workingDaysAO, java.util.List<NonWorkingDay> models)
          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, load, preDelete, save
 
Methods inherited from class com.atlassian.greenhopper.global.AbstractLoggable
logDebug, logError, logException, logInfo, logTrace, logWarn, setInfoLogLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NonWorkingDayDao

public NonWorkingDayDao()
Method Detail

getForParent

@NotNull
public NonWorkingDayAO[] getForParent(WorkingDaysAO workingDaysAO)
Description copied from interface: RelatedEntityDao
Return all the records for the specified parent.

Specified by:
getForParent in interface RelatedEntityDao<java.lang.Long,WorkingDaysAO,NonWorkingDayAO,NonWorkingDay>
Returns:
the records

getForParent

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

updateForParent

@NotNull
public java.util.List<NonWorkingDayAO> updateForParent(WorkingDaysAO workingDaysAO,
                                                               java.util.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 interface RelatedEntityDao<java.lang.Long,WorkingDaysAO,NonWorkingDayAO,NonWorkingDay>
Returns:
the updated list of domain objects

deleteForParent

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

Specified by:
deleteForParent in interface RelatedEntityDao<java.lang.Long,WorkingDaysAO,NonWorkingDayAO,NonWorkingDay>


Copyright © 2007-2013 Atlassian. All Rights Reserved.