Skip to content

UserDAO

Paulo Markes edited this page Apr 30, 2016 · 2 revisions

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.

[Home] (Home)
Rules to stylesheet
  • [Stylesheet] (Stylesheet)
Description of Classes, Methods and Attributes
Controller Classes
  • [EditOrRemoveFragment] (EditOrRemoveFragment)

  • [RegisterFragment] (RegisterFragment)

  • [ShowUser] (ShowUser)

  • [ShowPlaceRank] (ShowPlaceRank)

  • [ShowTop5Ranking] (ShowTop5Ranking)

  • [ListEvents] (ListEvents)

  • [DisableAccountFragment] (DisableAccountFragment)

DAO Classes
  • [PlaceDAO] (PlaceDAO)

  • [UserDAO] (UserDAO)

  • [EventCategoryDAO] (EventCategoryDAO)

  • [UserEvaluationDAO] (UserEvaluationDAO)

Model Classes
  • [EventEvaluation] (Class-EventEvaluation)

  • [Place] (Place)

  • [User] (Class-User)

  • [UserEvaluation] (UserEvaluation)

Clone this wiki locally