Update TrainDao.java ysx

pull/1/head
prwfxgajt 8 months ago
parent 8b8cb5df31
commit 1cf6336e5a

@ -1,82 +1,96 @@
package com.cn.dao;
package com.cn.dao; // 定义接口所在的包名
import java.sql.SQLException;
import java.util.List;
import java.sql.SQLException; // 导入SQLException类
import java.util.List; // 导入List接口
import com.cn.domain.Train;
import com.cn.domain.Train; // 导入Train实体类
/**
*
* @ClassName: TrainDao
* TrainDao访DAO
* <p></p>
* @ClassName: TrainDao
* @Description: Train
* @author: ljy
* @date: 201991 1:33:46
*/
public interface TrainDao {
/**
*
* @return 1
* @throws SQLException
*/
int add(Train train) throws SQLException;
/**
*
* @return 1
* @throws SQLException
*/
int delete(Integer trainId) throws SQLException;
/**
*
* @return 1
* @throws SQLException
*/
int update(Train train) throws SQLException;
/**
*
* @return Trainlist
* @throws SQLException
*/
List<Train> getAll() throws SQLException;
/**
* id
* @return Train
* @throws SQLException
*/
Train getById(Integer trainId) throws SQLException;
/**
*
* @return Trainlist
* @throws SQLException
*/
List<Train> getByTrainNumber(String trainNumber) throws SQLException;
/**
*
* @param startStation
* @param endStation
* @param startTime
* @return Train
* @throws SQLException
*/
List<Train> getByStartEndStation(String startStation, String endStation, String startTime) throws SQLException;
/**
*
* @return
* @throws SQLException
*/
List<Train> getAllStartStation() throws SQLException;
/**
*
* @return
* @throws SQLException
*/
List<Train> getAllEndStation() throws SQLException;
/**
*
* <p>Train</p>
* @param train
* @return 10
* @throws SQLException
*/
int add(Train train) throws SQLException;
/**
* ID
* <p>IDID</p>
* @param trainId ID
* @return 10
* @throws SQLException
*/
int delete(Integer trainId) throws SQLException;
/**
*
* <p>TrainID</p>
* @param train
* @return 10
* @throws SQLException
*/
int update(Train train) throws SQLException;
/**
*
* <p></p>
* @return
* @throws SQLException
*/
List<Train> getAll() throws SQLException;
/**
* ID
* <p>IDID</p>
* @param trainId ID
* @return ID
* @throws SQLException
*/
Train getById(Integer trainId) throws SQLException;
/**
*
* <p></p>
* @param trainNumber
* @return
* @throws SQLException
*/
List<Train> getByTrainNumber(String trainNumber) throws SQLException;
/**
*
* <p></p>
* @param startStation
* @param endStation
* @param startTime
* @return
* @throws SQLException
*/
List<Train> getByStartEndStation(String startStation, String endStation, String startTime) throws SQLException;
/**
*
* <p></p>
* @return
* @throws SQLException
*/
List<Train> getAllStartStation() throws SQLException;
/**
*
* <p></p>
* @return
* @throws SQLException
*/
List<Train> getAllEndStation() throws SQLException;
}

Loading…
Cancel
Save