UserDAO - ShutUpPaulo/TecProg_2016-01 GitHub Wiki
Class UserDAO
Class Attributes
No attributes
Methods
UserDAO
Return type: Constructor
Arguments: Activity currentActivity
Description:
UserDAO
Return type: Constructor
Arguments:
Description:
saveUser
Return type: String
Arguments: User user
Description: Method that executes the query to save an user at database.
searchUserById
Return type: String
Arguments: int idUser
Description: Method that searches an user at database through his id.
deleteUserByUsername
Return type: String
Arguments: String username
Description: Method that executes the query to delete an user at database using his username.
deleteUserById
Return type: String
Arguments: int idUser
Description: Method used to execute the query to delete an user at database using his id.
updateUser
Return type: String
Arguments: User user
Description: Method that updates the user information at database.
disableUserById
Return type: String
Arguments: int idUser
Description: Method that updates the user status to disabled at database.
searchUserByUsername
Return type: JSONObject
Arguments: String username
Description: Method that searches an user in database through his username.
searchUserByName
Return type: JSONObject
Arguments: String name
Description: Method that searches to users at database by his name.