hirondelle.predict.main.deleteaccount
Class DeleteAccountDAO
Object
hirondelle.predict.main.deleteaccount.DeleteAccountDAO
final class DeleteAccountDAO
- extends Object
Data Access Object (DAO) for deleting user accounts.
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DeleteAccountDAO
DeleteAccountDAO()
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):
- Prediction (this is a looping operation)
- PredictionList
- UserRole
- Users
- Parameters:
aLoginName
- current user's login nameaUserId
- underlying database id corresponding to the login nameaLists
- all prediction lists owned by the user
- Throws:
DAOException
Copyright Hirondelle Systems - Generated 2013Oct19.12.27