com.atlassian.greenhopper.manager.color
Class CardColorDao

java.lang.Object
  extended by com.atlassian.greenhopper.global.AbstractLoggable
      extended by com.atlassian.greenhopper.service.rapid.view.GenericActiveObjectsDao<java.lang.Long,CardColorAO>
          extended by com.atlassian.greenhopper.manager.color.CardColorDao
All Implemented Interfaces:
RelatedEntityDao<java.lang.Long,RapidViewAO,CardColorAO,CardColor>

@Service
public class CardColorDao
extends GenericActiveObjectsDao<java.lang.Long,CardColorAO>
implements RelatedEntityDao<java.lang.Long,RapidViewAO,CardColorAO,CardColor>


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
CardColorDao()
           
 
Method Summary
 void deleteForParent(RapidViewAO rapidViewAO)
          Delete all records for specified parent.
 CardColorAO[] getForParent(java.lang.Long primaryKey)
          Return all the records for the specified parent.
 CardColorAO[] getForParent(RapidViewAO rapidViewAO)
          Return all the records for the specified parent.
 ServiceOutcome<CardColorAO> update(CardColor cardColor)
           
 java.util.List<CardColorAO> updateForParent(RapidViewAO rapidViewAO, java.util.List<CardColor> 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CardColorDao

public CardColorDao()
Method Detail

getForParent

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

getForParent

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

updateForParent

@NotNull
public java.util.List<CardColorAO> updateForParent(RapidViewAO rapidViewAO,
                                                           java.util.List<CardColor> 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,CardColorAO,CardColor>
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,CardColorAO,CardColor>

update

public ServiceOutcome<CardColorAO> update(CardColor cardColor)


Copyright © 2007-2012 Atlassian. All Rights Reserved.