Examples of currentTransaction()


Examples of javax.jdo.PersistenceManager.currentTransaction()

              //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

Examples of javax.jdo.PersistenceManager.currentTransaction()

                    //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

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

Examples of javax.jdo.PersistenceManager.currentTransaction()

          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

Examples of javax.jdo.PersistenceManager.currentTransaction()

                  //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

Examples of javax.jdo.PersistenceManager.currentTransaction()

                  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

Examples of javax.jdo.PersistenceManager.currentTransaction()

  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

Examples of org.modeshape.jcr.txn.Transactions.currentTransaction()

                                                 .getTransactionalWorkspaceCache(sharedWorkspaceCache));
                // only register the function if there's an active ModeShape transaction because we need to run the
                // function *only after* ISPN has committed its transaction & updated the cache
                // if there isn't an active ModeShape transaction, one will become active later during "save"
                // otherwise, "save" is never called meaning this cache should be discarded
                Transactions.Transaction modeshapeTx = transactions.currentTransaction();
                if (modeshapeTx != null) {
                    if (this.completeTransactionFunction.get() == null) {
                        // create and register the complete transaction function only once
                        this.completeTransactionFunction.compareAndSet(null, new Transactions.TransactionFunction() {
                            @Override
View Full Code Here

Examples of org.odmg.Implementation.currentTransaction()

        dateCrit.addOrCriteria( cutoffDateCrit );
        crit.addAndCriteria( dateCrit );
       
        ODMGXAWrapper txw = new ODMGXAWrapper();
  Implementation odmg = ODMG.getODMGImplementation();
  Transaction tx = odmg.currentTransaction();
        Collection result = null;
  try {
      PersistenceBroker broker = ((HasBroker) tx).getBroker();
      QueryByCriteria q = new QueryByCriteria( PhotoInfo.class, crit );
      result = broker.getCollectionByQuery( q );
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.