Package modelo

Examples of modelo.Productora


         
        try {
            List<Productora> results = (List<Productora>) q.execute(input.getNombre());
            if (results.isEmpty()) {
             
              Productora prod = new Productora(input.getNombre(), input.getPais(), input.getDireccion(), input.getTelefono(), input.getDesde());      
                try {
                    pm.makePersistent(prod);
                } finally {
                    pm.close();
                }
View Full Code Here


            }
        } finally {
          pm.close();
        }
       
        return new Productora();
 
View Full Code Here

              List<Productora> results2 = (List<Productora>) q2.execute(input);
              if (!results2.isEmpty()) {

                for (Productora e : results2) {
                     try {
                       Productora prod = pm.getObjectById(Productora.class, e.getKey());
                       prod.setNombre(input2.getNombre());
                       prod.setPais(input2.getPais());
                       prod.setDireccion(input2.getDireccion());
                       prod.setTelefono(input2.getTelefono());
                       prod.setDesde(input2.getDesde());
                     } finally {
                       pm.close();
                     }
                     if (input == input2.getNombre())
                       return "La productora <b>" + input + "</b> se ha modificado correctamente.";
View Full Code Here

TOP

Related Classes of modelo.Productora

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.