SIMULACRO EXAMEN - Red Metro

This commit is contained in:
rocio.montero1
2026-11-07 13:14:22 +01:00
commit 9865dbd9c5
28 changed files with 1201 additions and 0 deletions
@@ -0,0 +1,22 @@
package es.madrid.redmetro.rmr.service;
import java.util.List;
import es.madrid.redmetro.rmr.dao.ITren;
import es.madrid.redmetro.rmr.dao.impl.TrenJDBC;
import es.madrid.redmetro.rmr.exception.RedMetroException;
import es.madrid.redmetro.rmr.model.Tren;
public class TrenService {
private ITren trenDAO = new TrenJDBC();
public void insertarTren (Tren tren) throws RedMetroException {
trenDAO.insertarTren(tren);
}
public List<Tren> obtenerTodosLosTrenes() throws RedMetroException {
return trenDAO.obtenerTodosLosTrenes();
}
}