Red Hat Application Migration Toolkit
package mx.com.bcm.banamex.ae.negocio.catalogo.bo.impl; import java.util.ArrayList; import java.util.Date; 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.CatalogoFechasContablesBOBeanLocal; import mx.com.bcm.banamex.ae.persistencia.assambler.FechaContableAssambler; import mx.com.bcm.banamex.ae.persistencia.dao.CatalogoFechasContablesDAOBeanLocal; import mx.com.bcm.banamex.ae.persistencia.exception.EfectivoAplicacionBOException; import mx.com.bcm.banamex.ae.persistencia.modelo.FechaContable; import mx.com.bcm.banamex.ae.persistencia.vo.FechaContableVO; @Stateless public class CatalogoFechasContablesBOImplBean implements CatalogoFechasContablesBOBeanLocal { @EJB private CatalogoFechasContablesDAOBeanLocal fechaContableDAO; @TransactionAttribute(TransactionAttributeType.SUPPORTS) public FechaContableVO consultaFechaContablePorid(Date date) throws EfectivoAplicacionBOException { FechaContable fechaContable = (FechaContable)this.fechaContableDAO.findById(date); new FechaContableVO(); FechaContableVO fechaVO = FechaContableAssambler.getFechaContableVO(fechaContable); return fechaVO; } @TransactionAttribute(TransactionAttributeType.SUPPORTS) public List consultaFechasContables() throws EfectivoAplicacionBOException { ArrayList listFechasContablesVO = new ArrayList(); List fechasContables = this.fechaContableDAO.findAll(); Iterator var3 = fechasContables.iterator(); while(var3.hasNext()) { FechaContable elemento = (FechaContable)var3.next(); FechaContableVO fechaContableVO = FechaContableAssambler.getFechaContableVO(elemento); listFechasContablesVO.add(fechaContableVO); } return listFechasContablesVO; } }