Kereta Yarsi Indonesia
Loading...
Searching...
No Matches
model.TicketDAO Interface Reference
Inheritance diagram for model.TicketDAO:
controller.TicketController

Public Member Functions

boolean createTicket (Ticket ticket)
 
ResultSet getTicket (String ticketId)
 
ResultSet getAllJoin (String ticketId)
 

Detailed Description

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.

See also
Ticket
ResultSet
controller.TicketController
Version
1.0
Since
2024-06-23
Author
Muhammad Rizal Anditama Nugraha

Member Function Documentation

◆ createTicket()

boolean model.TicketDAO.createTicket ( Ticket  ticket)

Creates a new ticket in the database.

Parameters
ticketthe Ticket object containing ticket details
Returns
true if the ticket was successfully created; false otherwise

Implemented in controller.TicketController.

◆ getAllJoin()

ResultSet model.TicketDAO.getAllJoin ( String  ticketId)

Retrieves all related ticket data from the database in a joined result set.

Parameters
ticketIdthe ID of the ticket to retrieve related data for
Returns
a ResultSet containing the joined data of the ticket and its related entities

Implemented in controller.TicketController.

◆ getTicket()

ResultSet model.TicketDAO.getTicket ( String  ticketId)

Retrieves a ticket from the database by its ID.

Parameters
ticketIdthe ID of the ticket to retrieve
Returns
a ResultSet containing the ticket data, or null if no ticket was found

Implemented in controller.TicketController.


The documentation for this interface was generated from the following file: