View Javadoc

1   package eu.ehri.project.core;
2   
3   import com.tinkerpop.blueprints.TransactionalGraph;
4   
5   
6   public interface TxGraph extends TransactionalGraph {
7       /**
8        * Obtain a wrapped transaction object.
9        *
10       * @return a transaction wrapper
11       */
12      Tx beginTx();
13  
14      /**
15       * Determine if this graph is in a transaction.
16       *
17       * @return whether or not a transaction is open in this thread
18       */
19      boolean isInTransaction();
20  }