EventCategoryDAO - ShutUpPaulo/TecProg_2016-01 GitHub Wiki

Class EventCategoryDAO

Class Attributes

No attributes

Methods

EventCategoryDAO

Return type: Constructor

Arguments: Activity currentActivity - Current activity to show message of connection problem

Description: Constructor to instantiate an EventCategoryDAO object

searchCategoriesByEventId

Return type: JSONObject - Data of the categories of the event

Arguments: int idEvent - Identifier of the event

Description: Method that searches the categories of an event with a given identifier

searchCategoriesByEventId attributes

Name Type Description Default Value
QUERY String Stores the query to search the categories of a given event in database "SELECT idCategory FROM event_category WHERE idEvent = " + idEvent
eventCategoriesQueryResult JSONObject Stores the result of the search that contains the data of the event categories