Kereta Yarsi Indonesia
|
Public Member Functions | |
Train | getTrainByTrainName (String trainName) |
The TrainDAO
interface provides methods for accessing and manipulating train data in the database. Implementations of this interface should provide the actual database operations for train-related data.
This interface defines the method for retrieving a train based on its name.
Train model.TrainDAO.getTrainByTrainName | ( | String | trainName | ) |
Retrieves a train from the database based on the specified train name.
trainName | the name of the train to retrieve |
Train
object corresponding to the specified train name, or null
if no such train exists Implemented in controller.TrainController.