Examples of currentTransaction()


Examples of javax.jdo.PersistenceManager.currentTransaction()

   
    @SuppressWarnings("unchecked")
    List<Subscription> list = (List<Subscription>) q.execute(user.getKey());
   
    for(Subscription s : list){
      pm.currentTransaction().begin();
      s.setLatestEntryNotifiedDate(lastPubDate);
      s.setLastProcessDate(lastProcess);
      pm.currentTransaction().commit();
      //TODO do something about lastProcessDate to push
    }
View Full Code Here

Examples of javax.jdo.PersistenceManager.currentTransaction()

   
    for(Subscription s : list){
      pm.currentTransaction().begin();
      s.setLatestEntryNotifiedDate(lastPubDate);
      s.setLastProcessDate(lastProcess);
      pm.currentTransaction().commit();
      //TODO do something about lastProcessDate to push
    }
   
    pm.flush();
    pm.close();
View Full Code Here

Examples of javax.jdo.PersistenceManager.currentTransaction()

        @SuppressWarnings("unchecked")
        List<Subscription> list = (List<Subscription>) q.execute(user.getKey());
       
        //mark all user's subscription as read (by recent date)
        for(Subscription s : list){
          pm.currentTransaction().begin();
          s.setLatestEntryNotifiedDate(now);
          s.setLastProcessDate(now);
          pm.currentTransaction().commit();
          pm.flush();
        }
View Full Code Here

Examples of javax.jdo.PersistenceManager.currentTransaction()

        //mark all user's subscription as read (by recent date)
        for(Subscription s : list){
          pm.currentTransaction().begin();
          s.setLatestEntryNotifiedDate(now);
          s.setLastProcessDate(now);
          pm.currentTransaction().commit();
          pm.flush();
        }
       
      }
View Full Code Here

Examples of javax.jdo.PersistenceManager.currentTransaction()

  private static final long serialVersionUID = 6120246852958797435L;

  public static SpadgerUser findSpadgerUser(String id) {
    SpadgerUser user = null;
    PersistenceManager pm = PMF.get().getPersistenceManager();
    Transaction tx = pm.currentTransaction();
    try {
      tx.begin();
      user = pm.getObjectById(SpadgerUser.class, id);
    } catch (JDOObjectNotFoundException e) {
      user = new SpadgerUser();
View Full Code Here

Examples of javax.jdo.PersistenceManager.currentTransaction()

       
        }
      catch(Exception e){
        e.printStackTrace();
        log.log(Level.SEVERE, "Exception while saving daoCommunityClan", e);
          pm.currentTransaction().rollback();
        }
   
       
    //On persist le clan et ses joueurs pour trouver ceux qui partent et qui arrivent
    //pm = PMF.get().getPersistenceManager();
View Full Code Here

Examples of javax.jdo.PersistenceManager.currentTransaction()

    //On persist le clan et ses joueurs pour trouver ceux qui partent et qui arrivent
    //pm = PMF.get().getPersistenceManager();
    pm =null;
    pm = PMF.get().getPersistenceManager();
        try {
          pm.currentTransaction().begin();
          pm.makePersistent(daoCommunityClan);
          pm.currentTransaction().commit();
        }
      catch(Exception e){
        e.printStackTrace();
View Full Code Here

Examples of javax.jdo.PersistenceManager.currentTransaction()

    pm =null;
    pm = PMF.get().getPersistenceManager();
        try {
          pm.currentTransaction().begin();
          pm.makePersistent(daoCommunityClan);
          pm.currentTransaction().commit();
        }
      catch(Exception e){
        e.printStackTrace();
        log.log(Level.SEVERE, "Exception while saving daoCommunityClan", e);
          pm.currentTransaction().rollback();
View Full Code Here

Examples of javax.jdo.PersistenceManager.currentTransaction()

          pm.currentTransaction().commit();
        }
      catch(Exception e){
        e.printStackTrace();
        log.log(Level.SEVERE, "Exception while saving daoCommunityClan", e);
          pm.currentTransaction().rollback();
        }
         

   
 
View Full Code Here

Examples of javax.jdo.PersistenceManager.currentTransaction()

                }
                }
              catch(Exception e){
                e.printStackTrace();
                log.log(Level.SEVERE, "Exception while quering  DaoCommunityClan2", e);
                  pm.currentTransaction().rollback();
                }
          }
         
         
          //build a HTML result
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.