hirondelle.predict.pub.register
Class RegisterDAO
Object
hirondelle.predict.pub.register.RegisterDAO
final class RegisterDAO
- extends Object
Data Access Object (DAO) for registration of new users.
Method Summary |
(package private) void |
add(Register aRegister)
Add a newly registered user to the database. |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RegisterDAO
RegisterDAO()
add
void add(Register aRegister)
throws DAOException,
DuplicateException
- Add a newly registered user to the database.
The password is saved using a hash - see PasswordHasher
.
The user is saved, and assigned a 'user' role.
The implementation uses a database transaction. If the user has attempted to use a Login Name
or Email Address that already exists, then the transaction will be rolled back.
- Throws:
DAOException
DuplicateException
Copyright Hirondelle Systems - Generated 2013Oct19.12.27