blob: e599a5e60eb4c02f3d4da6cd8529a9ee63fbe318 [file] [log] [blame]
package net.onrc.onos.util;
import net.onrc.onos.util.GraphDBConnection.GenerateEvent;
import net.onrc.onos.util.GraphDBConnection.Transaction;
import net.onrc.onos.util.GraphDBConnection.TransactionHandle;
import com.thinkaurelius.titan.core.TitanGraph;
import com.tinkerpop.frames.FramedGraph;
public interface IDBConnection {
public FramedGraph<TitanGraph> getFramedGraph();
public void addEventListener(final LocalGraphChangedListener listener);
public Boolean isValid();
public void startTx();
public void endTx(Transaction tx);
public void endTx(TransactionHandle tr, Transaction tx);
public void endTx(Transaction tx, GenerateEvent fire);
public void close();
}