uk.ac.cisban.rod.dao
Class Delete

java.lang.Object
  extended by uk.ac.cisban.rod.dao.Delete

public class Delete
extends java.lang.Object

Allows deletion of LogEvents, Repeats, MasterplateSets, and Plates.

Since:
14-Oct-2009, 15:43:43
Author:
Morgan Taschuk

Constructor Summary
Delete(DAO dao)
          Initializes the Delete class.
 
Method Summary
 void deleteLogs(ActionApplication aApp)
          Deletes all LogEvents from the database for the ActionApplication.
 void deleteLogs(javax.jdo.PersistenceManager pm, ActionApplication aApp)
          Deletes from the database.
 void deleteLogs(Repeat r)
          Deletes from the database.
 void deleteMasterplateSet(MasterplateSet m)
          Deletes the MasterplateSet from the database.
 void deleteMasterplateSetAndPlates(MasterplateSet m)
          Deletes the MasterplateSet and associated Masterplates from the database.
 void deleteRepeat(Repeat repeat)
          Deletes the given repeat.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Delete

public Delete(DAO dao)
Initializes the Delete class.

Parameters:
dao -
Method Detail

deleteRepeat

public void deleteRepeat(Repeat repeat)
Deletes the given repeat.

Parameters:
repeat - must be detached

deleteMasterplateSetAndPlates

public void deleteMasterplateSetAndPlates(MasterplateSet m)
                                   throws QueryNotFoundException
Deletes the MasterplateSet and associated Masterplates from the database.

Parameters:
m -
Throws:
QueryNotFoundException

deleteMasterplateSet

public void deleteMasterplateSet(MasterplateSet m)
                          throws QueryNotFoundException
Deletes the MasterplateSet from the database.

Parameters:
m -
Throws:
QueryNotFoundException

deleteLogs

public void deleteLogs(Repeat r)
                throws QueryNotFoundException
Deletes from the database.

Parameters:
r -
Throws:
QueryNotFoundException

deleteLogs

public void deleteLogs(javax.jdo.PersistenceManager pm,
                       ActionApplication aApp)
Deletes from the database.

Parameters:
pm -
aApp -

deleteLogs

public void deleteLogs(ActionApplication aApp)
Deletes all LogEvents from the database for the ActionApplication.

Parameters:
aApp -


Copyright © 2010. All Rights Reserved.