Package org.apache.marmotta.commons.sesame.transactions.sail

Examples of org.apache.marmotta.commons.sesame.transactions.sail.KiWiTransactionalSail



    @Before
    public void initDatabase() throws RepositoryException {
        store = new KiWiStore(dbConfig);
        tsail = new KiWiTransactionalSail(store);
        vsail = new KiWiVersioningSail(tsail);
        repository = new SnapshotRepository(vsail);
        repository.initialize();
    }
View Full Code Here


    @Override
    protected Repository createRepository() throws Exception {
        config.setDefaultContext(null);

        final KiWiStore sail = new KiWiStore(config);
        KiWiTransactionalSail tsail = new KiWiTransactionalSail(sail);
        rsail = new KiWiReasoningSail(tsail, new ReasoningConfiguration());

        Sail wsail = new SailWrapper(rsail) {
            @Override
            public void shutDown() throws SailException {
View Full Code Here


    @Before
    public void initDatabase() throws Exception {
        store = new KiWiStore(config);
        tsail = new KiWiTransactionalSail(store);
        rsail = new KiWiReasoningSail(tsail, new ReasoningConfiguration());
        repository = new SailRepository(rsail);
        repository.initialize();
    }
View Full Code Here


    @Before
    public void initDatabase() throws Exception {
        store      = new KiWiStore(config);
        tsail      = new KiWiTransactionalSail(store);
        repository = new SailRepository(tsail);
        repository.initialize();

        persistence = store.getPersistence();
View Full Code Here


    @Before
    public void initDatabase() throws RepositoryException {
        store = new KiWiStore(dbConfig);
        tsail = new KiWiTransactionalSail(store);
        vsail = new KiWiVersioningSail(tsail);
        repository = new SailRepository(vsail);
        repository.initialize();
    }
View Full Code Here

            // TODO: should also wrap a transactional sail in case there are observers on the classpath!
            if(   !transactionalSailProviders.isUnsatisfied() || CDIContext.hasObservers(this, "beforeCommitEvent")
               || CDIContext.hasObservers(this, "afterCommitEvent") || CDIContext.hasObservers(this, "afterRollbackEvent")) {
                log.info("enabling transaction notification");

                KiWiTransactionalSail tsail = new KiWiTransactionalSail(store);

                // the CDI events should be triggered once all internal events have been handled, so register the transaction listener last
                tsail.addTransactionListener(new LMFTransactionEventProxy());


                // wrap all stackable transactional sails
                TransactionalSail transactionalSail = tsail;
                for(TransactionalSailProvider provider : transactionalSailProviders) {
View Full Code Here

    private MockListener listener;

    @Before
    public void initDatabase() throws RepositoryException {
        store = new MemoryStore();
        tstore = new KiWiTransactionalSail(store);
        listener = new MockListener();
        tstore.addTransactionListener(listener);
        repository = new SailRepository(tstore);
        repository.initialize();
    }
View Full Code Here

TOP

Related Classes of org.apache.marmotta.commons.sesame.transactions.sail.KiWiTransactionalSail

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.