Red Hat Application Migration Toolkit
package mx.com.bcm.banamex.ae.negocio.catalogo.bo.impl; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import javax.ejb.EJB; import javax.ejb.Stateless; import javax.ejb.TransactionAttribute; import javax.ejb.TransactionAttributeType; import mx.com.bcm.banamex.ae.negocio.catalogo.bo.CatalogoSIRHBOBeanLocal; import mx.com.bcm.banamex.ae.persistencia.assambler.SIRHAssambler; import mx.com.bcm.banamex.ae.persistencia.dao.CatalogoSIRHDAOBeanLocal; import mx.com.bcm.banamex.ae.persistencia.exception.EfectivoAplicacionBOException; import mx.com.bcm.banamex.ae.persistencia.exception.EfectivoAplicacionDAOException; import mx.com.bcm.banamex.ae.persistencia.modelo.Estructura; import mx.com.bcm.banamex.ae.persistencia.vo.EstructuraVO; @Stateless public class CatalogoSIRHBOImplBean implements CatalogoSIRHBOBeanLocal { @EJB private CatalogoSIRHDAOBeanLocal sirhDAO; @TransactionAttribute(TransactionAttributeType.SUPPORTS) public List consultaEstructura() throws EfectivoAplicacionBOException { ArrayList listaEstructuraVO = new ArrayList(); List listaEstructura = this.sirhDAO.findAll(); Iterator var3 = listaEstructura.iterator(); while(var3.hasNext()) { Estructura elemento = (Estructura)var3.next(); EstructuraVO estructuraVO = SIRHAssambler.getEstructuraVO(elemento); listaEstructuraVO.add(estructuraVO); } return listaEstructuraVO; } public List consultaSirhPorBoveda(EstructuraVO estructuraVO) throws EfectivoAplicacionBOException { ArrayList listaEstructuraVO = new ArrayList(); new ArrayList(); try { List listaEstructura = this.sirhDAO.consultaSirhPorBoveda(estructuraVO); Iterator e = listaEstructura.iterator(); while(e.hasNext()) { Estructura elemento = (Estructura)e.next(); EstructuraVO sirhVO = SIRHAssambler.getEstructuraVO(elemento); listaEstructuraVO.add(sirhVO); } return listaEstructuraVO; } catch (EfectivoAplicacionDAOException var7) { throw new EfectivoAplicacionBOException("Ocurrio un error ,favor de revisar el log "); } } }