diff --git a/src/com/rjconsultores/ventaboletos/service/ConexionService.java b/src/com/rjconsultores/ventaboletos/service/ConexionService.java index 84537aa15..151a1b708 100644 --- a/src/com/rjconsultores/ventaboletos/service/ConexionService.java +++ b/src/com/rjconsultores/ventaboletos/service/ConexionService.java @@ -1,5 +1,9 @@ package com.rjconsultores.ventaboletos.service; +import java.util.List; + +import com.rjconsultores.ventaboletos.vo.conexion.ConexionVO; + public interface ConexionService { @@ -8,5 +12,6 @@ public interface ConexionService { * */ public void gerarConexiones(); - + + public List buscarConexiones(Integer origenId,Integer destinoId); } diff --git a/src/com/rjconsultores/ventaboletos/service/impl/ConexionServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/ConexionServiceImpl.java index 898b44ec8..5d4e2b221 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/ConexionServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/ConexionServiceImpl.java @@ -1,5 +1,7 @@ package com.rjconsultores.ventaboletos.service.impl; +import java.util.List; + import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -7,6 +9,7 @@ import org.springframework.transaction.annotation.Transactional; import com.rjconsultores.ventaboletos.dao.ConexionDAO; import com.rjconsultores.ventaboletos.service.ConexionService; import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado; +import com.rjconsultores.ventaboletos.vo.conexion.ConexionVO; @Service("conexionService") public class ConexionServiceImpl implements ConexionService { @@ -20,4 +23,9 @@ public class ConexionServiceImpl implements ConexionService { conexionDAO.generarConexiones(UsuarioLogado.getUsuarioLogado().getUsuarioId()); } + @Override + public List buscarConexiones(Integer origenId, Integer destinoId) { + return conexionDAO.buscarConexiones(origenId, destinoId); + } + } diff --git a/src/com/rjconsultores/ventaboletos/vo/conexion/ConexionVO.java b/src/com/rjconsultores/ventaboletos/vo/conexion/ConexionVO.java new file mode 100644 index 000000000..a0b7260c7 --- /dev/null +++ b/src/com/rjconsultores/ventaboletos/vo/conexion/ConexionVO.java @@ -0,0 +1,40 @@ +package com.rjconsultores.ventaboletos.vo.conexion; + +public class ConexionVO { + private String conOrigen; + private String conDestino; + private Integer grupo; + private String tramoOrigen; + private String tramoDestino; + public String getConOrigen() { + return conOrigen; + } + public void setConOrigen(String conOrigen) { + this.conOrigen = conOrigen; + } + public String getConDestino() { + return conDestino; + } + public void setConDestino(String conDestino) { + this.conDestino = conDestino; + } + public Integer getGrupo() { + return grupo; + } + public void setGrupo(Integer grupo) { + this.grupo = grupo; + } + public String getTramoOrigen() { + return tramoOrigen; + } + public void setTramoOrigen(String tramoOrigen) { + this.tramoOrigen = tramoOrigen; + } + public String getTramoDestino() { + return tramoDestino; + } + public void setTramoDestino(String tramoDestino) { + this.tramoDestino = tramoDestino; + } + +}