Search in sources :

Example 1 with DefaultSailChangedEvent

use of org.openrdf.sail.helpers.DefaultSailChangedEvent in project blueprints by tinkerpop.

the class GraphSailConnection method commitInternal.

public void commitInternal() throws SailException {
    if (store.isTransactional) {
        ((TransactionalGraph) store.graph).commit();
    }
    if (statementsAdded || statementsRemoved) {
        DefaultSailChangedEvent e = new DefaultSailChangedEvent(store.sail);
        e.setStatementsAdded(statementsAdded);
        e.setStatementsRemoved(statementsRemoved);
        store.sail.notifySailChanged(e);
    }
}
Also used : DefaultSailChangedEvent(org.openrdf.sail.helpers.DefaultSailChangedEvent) TransactionalGraph(com.tinkerpop.blueprints.TransactionalGraph)

Aggregations

TransactionalGraph (com.tinkerpop.blueprints.TransactionalGraph)1 DefaultSailChangedEvent (org.openrdf.sail.helpers.DefaultSailChangedEvent)1