Eliminar .class
This commit is contained in:
parent
a2a34bb933
commit
8a59e3886d
@ -3,40 +3,21 @@
|
|||||||
*/
|
*/
|
||||||
package es.redmetro.amt1.dao;
|
package es.redmetro.amt1.dao;
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import es.redmetro.amt1.vo.Tren;
|
import es.redmetro.amt1.vo.Tren;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Interfaz que contiene las operaciones que se van a realizar sobre Trenes
|
* Interfaz que contiene las operaciones que se van a realizar sobre Trenes
|
||||||
* @author Isidoro Nevares Martín - Virgen de la Paloma
|
* @author Isidoro Nevares Martín - Virgen de la Paloma
|
||||||
* @date 4 abr 2025
|
* @date 22 febrero 2026
|
||||||
* @version 1.0
|
* @version 1.0
|
||||||
*/
|
*/
|
||||||
public interface ITrenDAO {
|
public interface ITrenDAO {
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param tren
|
|
||||||
*/
|
|
||||||
public void anyadirTren(Tren tren);
|
public void anyadirTren(Tren tren);
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param idTren
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
public Tren buscarTrenPorID(int idTren);
|
public Tren buscarTrenPorID(int idTren);
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
public List<Tren> buscarTrenes();
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param tren
|
|
||||||
*/
|
|
||||||
public void actualizarInformacionTren(Tren tren);
|
public void actualizarInformacionTren(Tren tren);
|
||||||
|
|
||||||
|
public Tren borrarTrenPorID(int idTren);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,7 +4,6 @@
|
|||||||
package es.redmetro.amt1.dao.impl;
|
package es.redmetro.amt1.dao.impl;
|
||||||
|
|
||||||
import java.sql.Connection;
|
import java.sql.Connection;
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import es.redmetro.amt1.dao.ITrenDAO;
|
import es.redmetro.amt1.dao.ITrenDAO;
|
||||||
import es.redmetro.amt1.vo.Tren;
|
import es.redmetro.amt1.vo.Tren;
|
||||||
@ -30,16 +29,18 @@ public class TrenDaoJDBC implements ITrenDAO {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public List<Tren> buscarTrenes() {
|
|
||||||
// TODO Auto-generated method stub
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void actualizarInformacionTren(Tren tren) {
|
public void actualizarInformacionTren(Tren tren) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Tren borrarTrenPorID(int idTren) {
|
||||||
|
// TODO Auto-generated method stub
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -7,15 +7,15 @@ package es.redmetro.amt1.vo;
|
|||||||
* Clase VO que maneja informacón de Cochera.
|
* Clase VO que maneja informacón de Cochera.
|
||||||
*
|
*
|
||||||
* @author Isidoro Nevares Martín - IES Virgen de la Paloma.
|
* @author Isidoro Nevares Martín - IES Virgen de la Paloma.
|
||||||
* @date 1 abr 2025
|
* @date 22 febrero 2026
|
||||||
* @version 1.0
|
* @version 1.0
|
||||||
*/
|
*/
|
||||||
public class Cochera {
|
public class Cochera {
|
||||||
|
|
||||||
public int identificador;
|
private int identificador;
|
||||||
public boolean esDeposito;;
|
private boolean esDeposito;;
|
||||||
public String nombre;
|
protected String nombre;
|
||||||
public String direccion;
|
protected String direccion;
|
||||||
|
|
||||||
public int getIdentificador() {
|
public int getIdentificador() {
|
||||||
return identificador;
|
return identificador;
|
||||||
|
|||||||
@ -7,7 +7,7 @@ package es.redmetro.amt1.vo;
|
|||||||
* Clase VO que maneja información de Color.
|
* Clase VO que maneja información de Color.
|
||||||
*
|
*
|
||||||
* @author Isidoro Nevares Martín - IES Virgen de la Paloma
|
* @author Isidoro Nevares Martín - IES Virgen de la Paloma
|
||||||
* @date 1 abr 2025
|
* @date 22 febrero 2026
|
||||||
* @version 1.0
|
* @version 1.0
|
||||||
*/
|
*/
|
||||||
public class Color {
|
public class Color {
|
||||||
@ -16,28 +16,4 @@ public class Color {
|
|||||||
private String nombre;
|
private String nombre;
|
||||||
private String codigoHexadecimal;
|
private String codigoHexadecimal;
|
||||||
|
|
||||||
public int getIdColor() {
|
|
||||||
return idColor;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setIdColor(int idColor) {
|
|
||||||
this.idColor = idColor;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getNombre() {
|
|
||||||
return nombre;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setNombre(String nombre) {
|
|
||||||
this.nombre = nombre;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getCodigoHexadecimal() {
|
|
||||||
return codigoHexadecimal;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCodigoHexadecimal(String codigoHexadecimal) {
|
|
||||||
this.codigoHexadecimal = codigoHexadecimal;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -7,46 +7,14 @@ package es.redmetro.amt1.vo;
|
|||||||
* Clase VO que maneja información de Estacion.
|
* Clase VO que maneja información de Estacion.
|
||||||
*
|
*
|
||||||
* @author Isidoro Nevares Martín - IES Virgen de la Paloma
|
* @author Isidoro Nevares Martín - IES Virgen de la Paloma
|
||||||
* @date 1 abr 2025
|
* @date 22 febrero 2026
|
||||||
* @version 1.0
|
* @version 1.0
|
||||||
*/
|
*/
|
||||||
public class Estacion {
|
public class Estacion {
|
||||||
|
|
||||||
private String codigo;
|
private String codigo;
|
||||||
private String nombre;
|
private String nombre;
|
||||||
private String direccion;
|
public String direccion;
|
||||||
private boolean esIntercambiador;
|
public boolean esIntercambiador;
|
||||||
|
|
||||||
public String getCodigo() {
|
|
||||||
return codigo;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCodigo(String codigo) {
|
|
||||||
this.codigo = codigo;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getNombre() {
|
|
||||||
return nombre;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setNombre(String nombre) {
|
|
||||||
this.nombre = nombre;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getDireccion() {
|
|
||||||
return direccion;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDireccion(String direccion) {
|
|
||||||
this.direccion = direccion;
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean isEsIntercambiador() {
|
|
||||||
return esIntercambiador;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setEsIntercambiador(boolean esIntercambiador) {
|
|
||||||
this.esIntercambiador = esIntercambiador;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -9,7 +9,7 @@ import java.util.Date;
|
|||||||
* Clase VO que maneja información de Linea.
|
* Clase VO que maneja información de Linea.
|
||||||
*
|
*
|
||||||
* @author Isidoro Nevares Martín - IES Virgen de la Paloma
|
* @author Isidoro Nevares Martín - IES Virgen de la Paloma
|
||||||
* @date 1 abr 2025
|
* @date 22 febrero 2026
|
||||||
* @version 1.0
|
* @version 1.0
|
||||||
*/
|
*/
|
||||||
public class Linea {
|
public class Linea {
|
||||||
@ -22,60 +22,4 @@ public class Linea {
|
|||||||
private String numeroKms;
|
private String numeroKms;
|
||||||
private Color color;
|
private Color color;
|
||||||
|
|
||||||
public String getCodigoLinea() {
|
|
||||||
return codigoLinea;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCodigoLinea(String codigoLinea) {
|
|
||||||
this.codigoLinea = codigoLinea;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getNumero() {
|
|
||||||
return numero;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setNumero(int numero) {
|
|
||||||
this.numero = numero;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getNombreCorto() {
|
|
||||||
return nombreCorto;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setNombreCorto(String nombreCorto) {
|
|
||||||
this.nombreCorto = nombreCorto;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getNombreLargo() {
|
|
||||||
return nombreLargo;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setNombreLargo(String nombreLargo) {
|
|
||||||
this.nombreLargo = nombreLargo;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Date getFechaInauguracion() {
|
|
||||||
return fechaInauguracion;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setFechaInauguracion(Date fechaInauguracion) {
|
|
||||||
this.fechaInauguracion = fechaInauguracion;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getNumeroKms() {
|
|
||||||
return numeroKms;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setNumeroKms(String numeroKms) {
|
|
||||||
this.numeroKms = numeroKms;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Color getColor() {
|
|
||||||
return color;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setColor(Color color) {
|
|
||||||
this.color = color;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -7,7 +7,7 @@ package es.redmetro.amt1.vo;
|
|||||||
* Clase VO que maneja información de Reserva.
|
* Clase VO que maneja información de Reserva.
|
||||||
*
|
*
|
||||||
* @author Isidoro Nevares Martín - IES Virgen de la Paloma
|
* @author Isidoro Nevares Martín - IES Virgen de la Paloma
|
||||||
* @date 1 abr 2025
|
* @date 22 febrero 2026
|
||||||
* @version 1.0
|
* @version 1.0
|
||||||
*/
|
*/
|
||||||
public class LineaEstacion {
|
public class LineaEstacion {
|
||||||
@ -16,28 +16,4 @@ public class LineaEstacion {
|
|||||||
private Estacion estacion;
|
private Estacion estacion;
|
||||||
private int numeroOrden;
|
private int numeroOrden;
|
||||||
|
|
||||||
public Linea getLinea() {
|
|
||||||
return linea;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLinea(Linea linea) {
|
|
||||||
this.linea = linea;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Estacion getEstacion() {
|
|
||||||
return estacion;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setEstacion(Estacion estacion) {
|
|
||||||
this.estacion = estacion;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getNumeroOrden() {
|
|
||||||
return numeroOrden;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setNumeroOrden(int numeroOrden) {
|
|
||||||
this.numeroOrden = numeroOrden;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -9,7 +9,7 @@ import java.util.Date;
|
|||||||
* Clase VO que maneja información de Tren.
|
* Clase VO que maneja información de Tren.
|
||||||
*
|
*
|
||||||
* @author Isidoro Nevares Martín - IES Virgen de la Paloma
|
* @author Isidoro Nevares Martín - IES Virgen de la Paloma
|
||||||
* @date 1 abr 2025
|
* @date 22 febrero 2026
|
||||||
* @version 1.0
|
* @version 1.0
|
||||||
*/
|
*/
|
||||||
public class Tren {
|
public class Tren {
|
||||||
@ -21,52 +21,4 @@ public class Tren {
|
|||||||
private Cochera cochera;
|
private Cochera cochera;
|
||||||
private Linea linea;
|
private Linea linea;
|
||||||
|
|
||||||
public String getCodigoTren() {
|
}
|
||||||
return codigoTren;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCodigoTren(String codigoTren) {
|
|
||||||
this.codigoTren = codigoTren;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getModelo() {
|
|
||||||
return modelo;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setModelo(String modelo) {
|
|
||||||
this.modelo = modelo;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getEmpresa() {
|
|
||||||
return empresa;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setEmpresa(String empresa) {
|
|
||||||
this.empresa = empresa;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Date getFechaReserva() {
|
|
||||||
return fechaReserva;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setFechaReserva(Date fechaReserva) {
|
|
||||||
this.fechaReserva = fechaReserva;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Cochera getCochera() {
|
|
||||||
return cochera;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCochera(Cochera cochera) {
|
|
||||||
this.cochera = cochera;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Linea getLinea() {
|
|
||||||
return linea;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLinea(Linea linea) {
|
|
||||||
this.linea = linea;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user