예제 #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();
   }
 }