Пример #1
0
  /*
   * (non-Javadoc)
   *
   * @see com.tinkerpop.blueprints.Graph#shutdown()
   */
  @Override
  public void shutdown() {
    commit();

    db.close();
    dex.close();
  }
Пример #2
0
 void autoStartTransaction() {
   if (sessionData.get().session == null) {
     sessionData.get().session = db.newSession();
     // System.out.println("> th=" + Thread.currentThread().getId() + " starts tx with sess=" +
     // sess);
   } else {
     assert !sessionData.get().session.isClosed();
   }
 }