Package javax.jdo

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


              //pm = PMF.get().getPersistenceManager();
                  try {
                   
                   
                    //must transform before persist the objet
                    pm.currentTransaction().begin();
                    DaoCommunityAccount2 daoCommunityAccount2 = TransformDtoObject.TransformCommunityAccountToDaoCommunityAccount(dataPlayerInfos);
                   
                    //pour eviter trop de donn�es en base 60 write OP
                    //daoCommunityAccount.getData().setAchievements(null);
                    daoCommunityAccount2.setDateCommunityAccount(date);
View Full Code Here

                    //pour eviter trop de donn�es en base 60 write OP
                    //daoCommunityAccount.getData().setAchievements(null);
                    daoCommunityAccount2.setDateCommunityAccount(date);
                    //
                    pm.makePersistent(daoCommunityAccount2);
                    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());
                    listUsersPersisted.add(String.valueOf(dataPlayerInfos.getAccount_id()));
                   
                  }
                catch(Exception e){
View Full Code Here

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

          if (true){
            //pm = PMF.get().getPersistenceManager();
                try {
                  //must transform before persist the objet clan
                  pm.currentTransaction().begin();
                  DaoCommunityAccount2 daoCommunityAccount = TransformDtoObject.TransformCommunityAccountToDaoCommunityAccount(communityAccount);
                 
                  //pour eviter trop de donn�es en base 60 write OP
                  //daoCommunityAccount.getData().setAchievements(null);
                  daoCommunityAccount.setDateCommunityAccount(date);
View Full Code Here

                  //pour eviter trop de donn�es en base 60 write OP
                  //daoCommunityAccount.getData().setAchievements(null);
                  daoCommunityAccount.setDateCommunityAccount(date);
                  //
                  pm.makePersistent(daoCommunityAccount);
                  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());
                  listUsersPersisted.add(communityAccount.getIdUser());
                 
                }
              catch(Exception e){
View Full Code Here

                  listUsersPersisted.add(communityAccount.getIdUser());
                 
                }
              catch(Exception e){
                log.log(Level.SEVERE, "Exception while saving daoCommunityAccount", e);
                  pm.currentTransaction().rollback();
                }
                finally {
                    //pm.close();
                }
          }
View Full Code Here

  public Count getCount(WorkoutContext con){
    PersistenceManagerFactory pmf = PMF.get();
    PersistenceManager pm = null;
    try{
      pm = pmf.getPersistenceManager();
      Transaction tx = pm.currentTransaction();
      Count c = null;
      try{
        tx.begin();
        try{
          c = pm.getObjectById(Count.class, ViewConstants.PRIMARYKEY_ID);
View Full Code Here

  public Count getCount(){
    PersistenceManagerFactory pmf = PMF.get();
    PersistenceManager pm = null;
    try{
      pm = pmf.getPersistenceManager();
      Transaction tx = pm.currentTransaction();
      Count c = null;
      try{
        tx.begin();
        try{
          c = pm.getObjectById(Count.class, ViewConstants.PRIMARYKEY_ID);
View Full Code Here

          if (saveDataPlayer){
            //pm = PMF.get().getPersistenceManager();
                try {
                  //must transform before persist the objet clan
                  pm.currentTransaction().begin();
                  DaoCommunityAccount2 daoCommunityAccount = TransformDtoObject.TransformCommunityAccountToDaoCommunityAccount(communityAccount);
                 
                  //pour eviter trop de données en base 60 write OP
                  //daoCommunityAccount.getData().setAchievements(null);
                  daoCommunityAccount.setDateCommunityAccount(date);
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.