public interface AccountDao
Modifier and Type | Method and Description |
---|---|
BSAccount |
getAccount(int userid)
Get a BSAccount based on a numeric userid
|
BSAccount |
getAccount(java.lang.String username) |
BSAccount |
getAccount(java.lang.String username,
java.lang.String password)
Get an Account based on username and password.
|
BSAccount |
getAccountByEmail(java.lang.String email) |
BSAccount |
getAccountByToken(int token) |
int |
getUserCount() |
void |
insertAccount(BSAccount account) |
void |
resetTable()
Used by the mem driver to empty the "database"
|
void |
updateAccount(BSAccount account) |
void |
updateAccountPassword(BSAccount account,
java.lang.String newPassword)
Change the user's password
|
BSAccount getAccount(java.lang.String username)
BSAccount getAccount(int userid)
userid
- The useridBSAccount getAccountByEmail(java.lang.String email)
BSAccount getAccountByToken(int token)
BSAccount getAccount(java.lang.String username, java.lang.String password)
username
- His typed in usernamepassword
- His typed in passwordvoid insertAccount(BSAccount account)
void updateAccount(BSAccount account)
void updateAccountPassword(BSAccount account, java.lang.String newPassword)
account
- His BSAccountnewPassword
- His new passwordint getUserCount()
void resetTable()