com.atlassian.greenhopper.service.rapid.view
Class GenericActiveObjectsDao<PK,E extends net.java.ao.RawEntity<PK>>

java.lang.Object
  extended by com.atlassian.greenhopper.service.rapid.view.GenericActiveObjectsDao<PK,E>
Direct Known Subclasses:
AuditEntryDao, BoardAdminDao, CardColorDao, ColumnDao, ColumnStatusDao, DetailViewFieldDao, EstimateStatisticDao, NonWorkingDayDao, QuickFilterDao, RankableObjectDao, RapidViewDao, SprintDao, SprintMarkerDao, StatisticsFieldDao, SubqueryDao, SwimlaneDao, TrackingStatisticDao, VersionMetaDataDao, WorkingDaysDao

public abstract class GenericActiveObjectsDao<PK,E extends net.java.ao.RawEntity<PK>>
extends java.lang.Object


Field Summary
protected  com.atlassian.activeobjects.external.ActiveObjects ao
           
protected  java.lang.Class<E> entityType
           
protected  LoggerWrapper log
           
 
Constructor Summary
GenericActiveObjectsDao()
           
 
Method Summary
 E create(java.util.Map<java.lang.String,java.lang.Object> fields)
           
 void delete(E... entities)
           
 void delete(PK primaryKey)
           
protected  E[] findBy(java.lang.String query, java.lang.Object... parameters)
           
 void flushAll()
           
 ServiceOutcome<E> load(PK primaryKey)
           
protected  void preDelete(E... entities)
           
 void save(E entity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final LoggerWrapper log

ao

protected com.atlassian.activeobjects.external.ActiveObjects ao

entityType

protected final java.lang.Class<E extends net.java.ao.RawEntity<PK>> entityType
Constructor Detail

GenericActiveObjectsDao

public GenericActiveObjectsDao()
Method Detail

load

public ServiceOutcome<E> load(PK primaryKey)

create

public E create(java.util.Map<java.lang.String,java.lang.Object> fields)

save

public void save(E entity)

delete

public void delete(PK primaryKey)

delete

public void delete(E... entities)

preDelete

protected void preDelete(E... entities)

findBy

protected E[] findBy(java.lang.String query,
                     java.lang.Object... parameters)

flushAll

public void flushAll()
See Also:
ActiveObjects.flushAll()


Copyright © 2007-2014 Atlassian. All Rights Reserved.