Package org.openrdf.repository.base

Examples of org.openrdf.repository.base.RepositoryConnectionWrapper


    @Override
    @Produces
    public RepositoryConnection getConnection() throws RepositoryException {
        restartLock.readLock().lock();
        RepositoryConnection connection = repository.getConnection();
        return new RepositoryConnectionWrapper(repository,connection) {
            @Override
            public void close() throws RepositoryException {
                super.close();
                restartLock.readLock().unlock();
            }
View Full Code Here


        return new RepositoryWrapper(new SailRepository(wsail)) {
            @Override
            public RepositoryConnection getConnection()
                    throws RepositoryException {
                return new RepositoryConnectionWrapper(this, super.getConnection()) {
                    @Override
                    public void commit() throws RepositoryException {
                        super.commit();

                        // wait for the reasoner to finish
View Full Code Here

        return new RepositoryWrapper(new SailRepository(wsail)) {
            @Override
            public RepositoryConnection getConnection()
                    throws RepositoryException {
                return new RepositoryConnectionWrapper(this, super.getConnection()) {
                    @Override
                    public void commit() throws RepositoryException {
                        super.commit();

                        // wait for the reasoner to finish
View Full Code Here

    @Override
    @Produces
    public RepositoryConnection getConnection() throws RepositoryException {
        restartLock.readLock().lock();
        RepositoryConnection connection = repository.getConnection();
        return new RepositoryConnectionWrapper(repository,connection) {
            @Override
            public void close() throws RepositoryException {
                super.close();
                restartLock.readLock().unlock();
            }
View Full Code Here

TOP

Related Classes of org.openrdf.repository.base.RepositoryConnectionWrapper

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.