Toshio Koide | 507c04a | 2013-06-12 16:39:47 -0700 | [diff] [blame] | 1 | package net.onrc.onos.util; |
| 2 | |
Toshio Koide | 1d50769 | 2013-06-12 17:48:29 -0700 | [diff] [blame] | 3 | import net.onrc.onos.util.GraphDBConnection.GenerateEvent; |
| 4 | import net.onrc.onos.util.GraphDBConnection.Transaction; |
| 5 | import net.onrc.onos.util.GraphDBConnection.TransactionHandle; |
Toshio Koide | 507c04a | 2013-06-12 16:39:47 -0700 | [diff] [blame] | 6 | |
Toshio Koide | 1d50769 | 2013-06-12 17:48:29 -0700 | [diff] [blame] | 7 | import com.thinkaurelius.titan.core.TitanGraph; |
| 8 | import com.tinkerpop.frames.FramedGraph; |
| 9 | |
| 10 | public interface IDBConnection { |
| 11 | public FramedGraph<TitanGraph> getFramedGraph(); |
| 12 | public void addEventListener(final LocalGraphChangedListener listener); |
| 13 | public Boolean isValid(); |
| 14 | public void startTx(); |
| 15 | public void endTx(Transaction tx); |
| 16 | public void endTx(TransactionHandle tr, Transaction tx); |
| 17 | public void endTx(Transaction tx, GenerateEvent fire); |
| 18 | public void close(); |
Toshio Koide | 507c04a | 2013-06-12 16:39:47 -0700 | [diff] [blame] | 19 | } |