Kereta Yarsi Indonesia
|
Public Member Functions | |
boolean | createTicket (Ticket ticket) |
ResultSet | getTicket (String ticketId) |
ResultSet | getAllJoin (String ticketId) |
The TicketDAO
interface provides methods for performing operations on ticket data in the database. Implementations of this interface should provide the actual database interactions.
This interface defines methods to create a ticket, retrieve a ticket by its ID, and retrieve a joined result set of all related ticket data.
boolean model.TicketDAO.createTicket | ( | Ticket | ticket | ) |
Creates a new ticket in the database.
ticket | the Ticket object containing ticket details |
true
if the ticket was successfully created; false
otherwise Implemented in controller.TicketController.
ResultSet model.TicketDAO.getAllJoin | ( | String | ticketId | ) |
Retrieves all related ticket data from the database in a joined result set.
ticketId | the ID of the ticket to retrieve related data for |
ResultSet
containing the joined data of the ticket and its related entities Implemented in controller.TicketController.
ResultSet model.TicketDAO.getTicket | ( | String | ticketId | ) |
Retrieves a ticket from the database by its ID.
ticketId | the ID of the ticket to retrieve |
ResultSet
containing the ticket data, or null
if no ticket was found Implemented in controller.TicketController.