Examples of currentTransaction()


Examples of javax.jdo.PersistenceManager.currentTransaction()

                }
                }
              catch(Exception e){
                e.printStackTrace();
                log.log(Level.SEVERE, "Exception while quering  DaoRecruistation", e);
                  pm.currentTransaction().rollback();
                }
          }
         
         
          //build a HTML result
View Full Code Here

Examples of javax.jdo.PersistenceManager.currentTransaction()

          List<DaoCommunityAccount2> resultsTmp = (List<DaoCommunityAccount2>) query.execute();
         
          try {
             if (!resultsTmp.isEmpty()) {
                  for (DaoCommunityAccount2 myDaoCommunityAccount2 : resultsTmp) {
                    pm.currentTransaction().begin();
                    //
                    //log.warning(myDaoCommunityAccount2.getDateCommunityAccount().toString());
                    //
                    if (myDaoCommunityAccount2.getData() != null && myDaoCommunityAccount2.getData().getStats() != null) {
                      pm.deletePersistent(myDaoCommunityAccount2.getData().getStats());
View Full Code Here

Examples of javax.jdo.PersistenceManager.currentTransaction()

                    if (myDaoCommunityAccount2.getData() != null && myDaoCommunityAccount2.getData().getStats() != null) {
                      pm.deletePersistent(myDaoCommunityAccount2.getData().getStats());
                      pm.deletePersistent(myDaoCommunityAccount2.getData());
                    }
                    pm.deletePersistent(myDaoCommunityAccount2);
                    pm.currentTransaction().commit();
                  }
             }
            }
          catch(Exception e){
            e.printStackTrace();
View Full Code Here

Examples of javax.jdo.PersistenceManager.currentTransaction()

             }
            }
          catch(Exception e){
            e.printStackTrace();
            log.log(Level.SEVERE, "Exception while deleting daoCommunityAccount", e);
              pm.currentTransaction().rollback();
            }
         
          //DaoDataCommunityAccountStatsVehicules - On peut tout supprimer
          query = pm.newQuery(DaoDataCommunityAccountStatsVehicules.class);
          query.setRange(0, nb); //only nb results
View Full Code Here

Examples of javax.jdo.PersistenceManager.currentTransaction()

          List<DaoDataCommunityAccountStatsVehicules> resultsVeh = (List<DaoDataCommunityAccountStatsVehicules>) query.execute();
         
          try {
             if (!resultsVeh.isEmpty()) {
                  for (DaoDataCommunityAccountStatsVehicules myDao : resultsVeh) {
                    pm.currentTransaction().begin();
                    //
                    //log.warning(myDao.getName());
                    //
                    pm.deletePersistent(myDao);
                    pm.currentTransaction().commit();
View Full Code Here

Examples of javax.jdo.PersistenceManager.currentTransaction()

                    pm.currentTransaction().begin();
                    //
                    //log.warning(myDao.getName());
                    //
                    pm.deletePersistent(myDao);
                    pm.currentTransaction().commit();
                  }
             }
            }
          catch(Exception e){
            e.printStackTrace();
View Full Code Here

Examples of javax.jdo.PersistenceManager.currentTransaction()

             }
            }
          catch(Exception e){
            e.printStackTrace();
            log.log(Level.SEVERE, "Exception while deleting DaoDataCommunityAccountStatsVehicules", e);
              pm.currentTransaction().rollback();
            }
         
         
      }  catch (Exception e) {
          // ...
View Full Code Here

Examples of javax.jdo.PersistenceManager.currentTransaction()

        //pm = PMF.get().getPersistenceManager();
            try {
             
             
              //must transform before persist the objet
              pm.currentTransaction().begin();
             
              pm.makePersistent(myDaoRecruistation);
              pm.currentTransaction().commit();
              //log.warning("vehicules daoCommunityAccount " + daoCommunityAccount.getData().statsVehicules.get(0).getName() + ":"+  daoCommunityAccount.getData().statsVehicules.get(0).getBattle_count() + ":"+  daoCommunityAccount.getData().statsVehicules.get(0).getWin_count());
             
View Full Code Here

Examples of javax.jdo.PersistenceManager.currentTransaction()

             
              //must transform before persist the objet
              pm.currentTransaction().begin();
             
              pm.makePersistent(myDaoRecruistation);
              pm.currentTransaction().commit();
              //log.warning("vehicules daoCommunityAccount " + daoCommunityAccount.getData().statsVehicules.get(0).getName() + ":"+  daoCommunityAccount.getData().statsVehicules.get(0).getBattle_count() + ":"+  daoCommunityAccount.getData().statsVehicules.get(0).getWin_count());
             
            }
          catch(Exception e){
            e.printStackTrace();
View Full Code Here

Examples of javax.jdo.PersistenceManager.currentTransaction()

             
            }
          catch(Exception e){
            e.printStackTrace();
            log.log(Level.SEVERE, "Exception while saving daoCommunityAccount", e);
              pm.currentTransaction().rollback();
            }
             
     
           
       
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.