Examples of closeSession()


Examples of org.olat.core.commons.persistence.DB.closeSession()

    DB db = DBFactory.getInstance();
    db.updateObject(s1);
    db.updateObject(s2);
    db.updateObject(s3);
    db.updateObject(testAdmin);
    db.closeSession();
   
    Calendar c2 = Calendar.getInstance();   
    //daily:
    assertEquals(0, sm.countUniqueUserLoginsSince(new Date()).intValue());
    c2.add(Calendar.DAY_OF_YEAR, -1);
View Full Code Here

Examples of org.olat.core.commons.persistence.DB.closeSession()

   * TearDown is called after each test
   */
  public void tearDown() {
    try {
      DB db = DBFactory.getInstance();
      db.closeSession();
    } catch (Exception e) {
      log.error("Exception in tearDown(): " + e);
    }
  }

View Full Code Here

Examples of org.olat.core.commons.persistence.DB.closeSession()

        startms = startms + searchms;
       
      }
    }
    DB db = DBFactory.getInstance();
    db.closeSession();
    }
  }
 

  /**
 
View Full Code Here

Examples of org.olat.core.commons.persistence.DB.closeSession()

   * TearDown is called after each test
   */
  public void tearDown() {
    try {
      DB db = DBFactory.getJunitInstance();
      db.closeSession();
    } catch (Exception e) {
      log.error("Exception in tearDown(): " + e);
    }
  }

View Full Code Here

Examples of org.olat.core.commons.persistence.DB.closeSession()

   * TearDown is called after each test
   */
  public void tearDown() {
    try {
      DB db = DBFactory.getInstance();
      db.closeSession();
    } catch (Exception e) {
      log.error("Exception in tearDown(): " + e);
    }
  }

View Full Code Here

Examples of org.olat.core.commons.persistence.DB.closeSession()

   * TearDown is called after each test
   */
  public void tearDown() {
    try {
      DB db = DBFactory.getInstance();
      db.closeSession();
    } catch (Exception e) {
      log.error("Exception in tearDown(): " + e);
    }
  }

View Full Code Here

Examples of org.olat.core.commons.persistence.DB.closeSession()

   * TearDown is called after each test
   */
  public void tearDown() {
    try {
      DB db = DBFactory.getInstance();
      db.closeSession();
    } catch (Exception e) {
      log.error("Exception in tearDown(): " + e);
    }
  }
 
View Full Code Here

Examples of org.olat.core.commons.persistence.DB.closeSession()

   * TearDown is called after each test
   */
  public void tearDown() {
    try {
      DB db = DBFactory.getInstance();
      db.closeSession();
    } catch (Exception e) {
      log.error("Exception in tearDown(): " + e);
    }
  }

View Full Code Here

Examples of org.olat.core.commons.persistence.DB.closeSession()

      // without this optimization, the first entries will be fast but then the adding new
      // entries will slow down due to the fact that hibernate needs to adjust the size of
      // the session cache permanently. flushing or transactions won't help since the problem
      // is in the session cache.
      if (i%2 == 0) {
        db.closeSession();
        db = DBFactory.getInstance();
      }
    }
    long endCreate = System.currentTimeMillis();
    Tracing.logDebug("created " + numbRes + " repo entries in " + (endCreate - startCreate) + "ms", RepositoryManagerTest.class);
View Full Code Here

Examples of org.teiid.services.SessionServiceImpl.closeSession()

    ssi.validateSession(id1);
   
    assertEquals(1, ssi.getActiveSessionsCount());
    assertEquals(0, ssi.getSessionsLoggedInToVDB("a", 1).size()); //$NON-NLS-1$
   
    ssi.closeSession(id1);
   
    try {
      ssi.validateSession(id1);
      fail("exception expected"); //$NON-NLS-1$
    } catch (InvalidSessionException e) {
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.