Predictions 4.10.0.0

hirondelle.predict.main.deleteaccount
Class DeleteAccountDAO

Object
  extended by hirondelle.predict.main.deleteaccount.DeleteAccountDAO

final class DeleteAccountDAO
extends Object

Data Access Object (DAO) for deleting user accounts.


Constructor Summary
DeleteAccountDAO()
           
 
Method Summary
(package private)  int delete(SafeText aLoginName, Id aUserId, List<PredictionList> aLists)
          Delete the current user's account.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeleteAccountDAO

DeleteAccountDAO()
Method Detail

delete

int delete(SafeText aLoginName,
           Id aUserId,
           List<PredictionList> aLists)
     throws DAOException
Delete the current user's account.

All data is deleted, with no recovery possible. A transaction is used here to wrap multiple operations.

Return the total number of records deleted.

This method deletes data from the following tables (in the given order):

Parameters:
aLoginName - current user's login name
aUserId - underlying database id corresponding to the login name
aLists - all prediction lists owned by the user
Throws:
DAOException

Predictions 4.10.0.0

Copyright Hirondelle Systems - Generated 2013Oct19.12.27