Package ecar.pojo

Examples of ecar.pojo.EnderecoEnd


     */
    public void setEnderecosEntidade( HttpServletRequest request, EntidadeEnt entidade )
                              throws ECARException
    {
        int numEnderecos = Integer.parseInt( request.getParameter( "contEnderecos" ) );
        EnderecoEnd endereco;

        for ( int i = 1; i <= numEnderecos; i++ )
        {
            if ( "S".equals( Pagina.getParamStr( request, "adicionaEndereco" + i ) ) )
            {
                endereco = new EnderecoEnd(  );
                endereco.setEntidadeEnt( entidade );
                endereco.setBairroEnd( Pagina.getParamStr( request, "bairroEnd" + i ) );
                endereco.setCepEnd( Integer.valueOf( Pagina.getParamInt( request, "cepEnd" + i ) ) );
                endereco.setCidadeEnd( Pagina.getParamStr( request, "cidadeEnd" + i ) );
                endereco.setComplementoEnd( Pagina.getParamStr( request, "complementoEnd" + i ) );
                endereco.setEnderecoEnd( Pagina.getParamStr( request, "enderecoEnd" + i ) );
                endereco.setIdEnd( Pagina.getParamStr( request, "idEnd" + i ) );

                if ( ! "".equals( Pagina.getParamStr( request, "tipoEnderecoTpend" + i ) ) )
                {
                    endereco.setTipoEnderecoTend( (TipoEnderecoTend) super.buscar(
                                                                                   TipoEnderecoTend.class,
                                                                                   Long.valueOf( Pagina.getParamStr( request,
                                                                                                                     "tipoEnderecoTpend" +
                                                                                                                     i ) ) ) );
                }

                if ( ! "".equals( Pagina.getParamStr( request, "uf" + i ) ) )
                {
                    endereco.setUf( (Uf) super.buscar(
                                                       Uf.class,
                                                       Pagina.getParamStr( request, "uf" + i ) ) );
                }

                if ( entidade.getEnderecoEnds(  ) == null )
View Full Code Here


            {
                Iterator itEnd = entidade.getEnderecoEnds(  ).iterator(  );

                while ( itEnd.hasNext(  ) )
                {
                    EnderecoEnd endereco = (EnderecoEnd) itEnd.next(  );
                    session.delete( endereco );
                    objetos.add( endereco );
                }
            }
View Full Code Here

TOP

Related Classes of ecar.pojo.EnderecoEnd

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.