blob: e599a5e60eb4c02f3d4da6cd8529a9ee63fbe318 [file] [log] [blame]
Toshio Koide507c04a2013-06-12 16:39:47 -07001package net.onrc.onos.util;
2
Toshio Koide1d507692013-06-12 17:48:29 -07003import net.onrc.onos.util.GraphDBConnection.GenerateEvent;
4import net.onrc.onos.util.GraphDBConnection.Transaction;
5import net.onrc.onos.util.GraphDBConnection.TransactionHandle;
Toshio Koide507c04a2013-06-12 16:39:47 -07006
Toshio Koide1d507692013-06-12 17:48:29 -07007import com.thinkaurelius.titan.core.TitanGraph;
8import com.tinkerpop.frames.FramedGraph;
9
10public 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 Koide507c04a2013-06-12 16:39:47 -070019}