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 java.util.Map.Entry;
import javax.ejb.Stateless;
import mx.com.bcm.banamex.ae.negocio.catalogo.bo.CatalogoEstaticosBOBeanLocal;
import mx.com.bcm.banamex.ae.negocio.constantes.CatalogoEstaticos;
import mx.com.bcm.banamex.ae.persistencia.constantes.NumeroFormatoType;
import mx.com.bcm.banamex.ae.persistencia.exception.EfectivoAplicacionBOException;
import mx.com.bcm.banamex.ae.persistencia.vo.EstaticosVO;
@Stateless
public class CatalogoEstaticosBOImplBean implements CatalogoEstaticosBOBeanLocal {
public EstaticosVO consultaPorTipoInstrumento(int id) throws EfectivoAplicacionBOException {
EstaticosVO estaticosVO = new EstaticosVO();
String clave = String.format(NumeroFormatoType.FORMATO_ENTERO.getFormato(), new Object[]{Integer.valueOf(id)});
Iterator iterador = CatalogoEstaticos.getTipoInstrumento().entrySet().iterator();
while(iterador.hasNext()) {
Entry e = (Entry)iterador.next();
if(((String)e.getKey()).equals(clave)) {
estaticosVO.setId((String)e.getKey());
estaticosVO.setDesc((String)e.getValue());
}
}
return estaticosVO;
}
public EstaticosVO consultaPorIndicadorAsociado(int id) throws EfectivoAplicacionBOException {
EstaticosVO estaticosVO = new EstaticosVO();
String clave = String.format(NumeroFormatoType.FORMATO_ENTERO.getFormato(), new Object[]{Integer.valueOf(id)});
Iterator var4 = CatalogoEstaticos.getIndicadorAsociado().entrySet().iterator();
while(var4.hasNext()) {
Entry e = (Entry)var4.next();
if(((String)e.getKey()).equals(clave)) {
estaticosVO.setId((String)e.getKey());
estaticosVO.setDesc((String)e.getValue());
}
}
return estaticosVO;
}
public EstaticosVO consultaPorTipoUsoCuenta(int id) throws EfectivoAplicacionBOException {
EstaticosVO estaticosVO = new EstaticosVO();
String clave = String.format(NumeroFormatoType.FORMATO_ENTERO.getFormato(), new Object[]{Integer.valueOf(id)});
Iterator var4 = CatalogoEstaticos.getTipoUsoCuenta().entrySet().iterator();
while(var4.hasNext()) {
Entry e = (Entry)var4.next();
if(((String)e.getKey()).equals(clave)) {
estaticosVO.setId((String)e.getKey());
estaticosVO.setDesc((String)e.getValue());
}
}
return estaticosVO;
}
public EstaticosVO consultaPorTipoCuenta(int id) throws EfectivoAplicacionBOException {
EstaticosVO estaticosVO = new EstaticosVO();
String clave = String.format(NumeroFormatoType.FORMATO_ENTERO.getFormato(), new Object[]{Integer.valueOf(id)});
Iterator var4 = CatalogoEstaticos.getTipoCuenta().entrySet().iterator();
while(var4.hasNext()) {
Entry e = (Entry)var4.next();
if(((String)e.getKey()).equals(clave)) {
estaticosVO.setId((String)e.getKey());
estaticosVO.setDesc((String)e.getValue());
}
}
return estaticosVO;
}
public EstaticosVO consultaPorTipoReferenciaCuenta(int id) throws EfectivoAplicacionBOException {
EstaticosVO estaticosVO = new EstaticosVO();
String clave = String.format(NumeroFormatoType.FORMATO_ENTERO.getFormato(), new Object[]{Integer.valueOf(id)});
Iterator var4 = CatalogoEstaticos.getTipoReferenciaCuenta().entrySet().iterator();
while(var4.hasNext()) {
Entry e = (Entry)var4.next();
if(((String)e.getKey()).equals(clave)) {
estaticosVO.setId((String)e.getKey());
estaticosVO.setDesc((String)e.getValue());
}
}
return estaticosVO;
}
public List consultTipoInstrumento() throws EfectivoAplicacionBOException {
ArrayList listEstaticosVO = new ArrayList();
EstaticosVO estaticosVO = new EstaticosVO();
Iterator var3 = CatalogoEstaticos.getTipoInstrumento().entrySet().iterator();
while(var3.hasNext()) {
Entry e = (Entry)var3.next();
estaticosVO.setId((String)e.getKey());
estaticosVO.setDesc((String)e.getValue());
listEstaticosVO.add(estaticosVO);
}
return listEstaticosVO;
}
public List consultIndicadorAsociado() throws EfectivoAplicacionBOException {
ArrayList listEstaticosVO = new ArrayList();
EstaticosVO estaticosVO = new EstaticosVO();
Iterator var3 = CatalogoEstaticos.getIndicadorAsociado().entrySet().iterator();
while(var3.hasNext()) {
Entry e = (Entry)var3.next();
estaticosVO.setId((String)e.getKey());
estaticosVO.setDesc((String)e.getValue());
listEstaticosVO.add(estaticosVO);
}
return listEstaticosVO;
}
public List consultTipoUsoCuenta() throws EfectivoAplicacionBOException {
ArrayList listEstaticosVO = new ArrayList();
EstaticosVO estaticosVO = new EstaticosVO();
Iterator var3 = CatalogoEstaticos.getTipoUsoCuenta().entrySet().iterator();
while(var3.hasNext()) {
Entry e = (Entry)var3.next();
estaticosVO.setId((String)e.getKey());
estaticosVO.setDesc((String)e.getValue());
listEstaticosVO.add(estaticosVO);
}
return listEstaticosVO;
}
public List consultTipoCuenta() throws EfectivoAplicacionBOException {
ArrayList listEstaticosVO = new ArrayList();
EstaticosVO estaticosVO = new EstaticosVO();
Iterator var3 = CatalogoEstaticos.getTipoCuenta().entrySet().iterator();
while(var3.hasNext()) {
Entry e = (Entry)var3.next();
estaticosVO.setId((String)e.getKey());
estaticosVO.setDesc((String)e.getValue());
listEstaticosVO.add(estaticosVO);
}
return listEstaticosVO;
}
public List consultSubBovedasTipoReferenciaCuenta() throws EfectivoAplicacionBOException {
ArrayList listEstaticosVO = new ArrayList();
EstaticosVO estaticosVO = new EstaticosVO();
Iterator var3 = CatalogoEstaticos.getTipoReferenciaCuenta().entrySet().iterator();
while(var3.hasNext()) {
Entry e = (Entry)var3.next();
estaticosVO.setId((String)e.getKey());
estaticosVO.setDesc((String)e.getValue());
listEstaticosVO.add(estaticosVO);
}
return listEstaticosVO;
}
}