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

java.lang.Object
  extended by com.atlassian.greenhopper.service.rapid.view.GenericActiveObjectsDao<java.lang.Long,ColumnAO>
      extended by com.atlassian.greenhopper.service.rapid.view.ColumnDao
All Implemented Interfaces:
RelatedEntityDao<java.lang.Long,RapidViewAO,ColumnAO,Column>

@Service
public class ColumnDao
extends GenericActiveObjectsDao<java.lang.Long,ColumnAO>
implements RelatedEntityDao<java.lang.Long,RapidViewAO,ColumnAO,Column>


Field Summary
 
Fields inherited from class com.atlassian.greenhopper.service.rapid.view.GenericActiveObjectsDao
ao, entityType, log
 
Constructor Summary
ColumnDao()
           
 
Method Summary
 ColumnAO createWithStatuses(java.util.Map<java.lang.String,java.lang.Object> stringObjectMap, java.util.List<java.lang.String> statusIds, int position)
           
 void deleteForParent(RapidViewAO rapidViewAO)
          Delete all records for specified parent.
 ColumnAO getColumn(long columnId)
           
 ColumnAO[] getForParent(java.lang.Long rapidViewId)
          Return all the records for the specified parent.
 ColumnAO[] getForParent(RapidViewAO parent)
          Return all the records for the specified parent.
protected  void preDelete(ColumnAO... entities)
           
 java.util.List<ColumnAO> updateForParent(RapidViewAO rapidView, java.util.List<Column> columns)
          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, save
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColumnDao

public ColumnDao()
Method Detail

getColumn

public ColumnAO getColumn(long columnId)

getForParent

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

getForParent

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

updateForParent

public java.util.List<ColumnAO> updateForParent(RapidViewAO rapidView,
                                                java.util.List<Column> columns)
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,ColumnAO,Column>
Returns:
the updated list of domain objects

createWithStatuses

public ColumnAO createWithStatuses(java.util.Map<java.lang.String,java.lang.Object> stringObjectMap,
                                   java.util.List<java.lang.String> statusIds,
                                   int position)

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,ColumnAO,Column>

preDelete

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


Copyright © 2007-2013 Atlassian. All Rights Reserved.