Package org.ita.capes

Examples of org.ita.capes.ApplicationException


          aux.setCep("");
          aux.setCidade("");
          aux.setEstado("");
          aux.setHomepage("");
          List<IefInfoTela> auxLista = iefInfoTelaDAO.query(aux);
          if(auxLista.size()>1) throw new ApplicationException("Mais de um IefInfoTela com num "+aux.getNum());
          else if(auxLista.size()==0) throw new ApplicationException("Sem elemento IefInfoTela com num "+aux.getNum());
          else {
            //todas informacoes que nao sao setadas em corrente
            handler.getCorrente().setIdIef(auxLista.get(0).getIdIef());
            handler.getCorrente().setLatitude(auxLista.get(0).getLatitude());
            handler.getCorrente().setLongitude(auxLista.get(0).getLongitude());
View Full Code Here

TOP

Related Classes of org.ita.capes.ApplicationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.