org.openrdf.repository.threadproxy
Class ThreadProxyRepositoryConnection

java.lang.Object
  extended by org.openrdf.repository.base.RepositoryConnectionBase
      extended by org.openrdf.repository.base.RepositoryConnectionWrapper
          extended by org.openrdf.repository.threadproxy.ThreadProxyRepositoryConnection
All Implemented Interfaces:
DelegatingRepositoryConnection, RepositoryConnection

public class ThreadProxyRepositoryConnection
extends RepositoryConnectionWrapper

RepositoryConnection that proxies the method calls to a thread local delegate connection.

Author:
James Leigh

Field Summary
 
Fields inherited from class org.openrdf.repository.base.RepositoryConnectionBase
logger
 
Constructor Summary
ThreadProxyRepositoryConnection(ThreadProxyRepository repository)
           
 
Method Summary
 void close()
           
 RepositoryConnection getDelegate()
           
 ThreadProxyRepository getRepository()
           
 boolean isAutoCommit()
           
 boolean isOpen()
           
 
Methods inherited from class org.openrdf.repository.base.RepositoryConnectionWrapper
add, add, add, add, add, add, add, add, addWithoutCommit, clear, clearNamespaces, commit, exportStatements, exportStatements, getContextIDs, getNamespace, getNamespaces, getStatements, hasStatement, hasStatement, isDelegatingAdd, isDelegatingRead, isDelegatingRemove, isEmpty, prepareBooleanQuery, prepareGraphQuery, prepareQuery, prepareTupleQuery, remove, remove, remove, remove, removeNamespace, removeWithoutCommit, rollback, setAutoCommit, setDelegate, setNamespace, size
 
Methods inherited from class org.openrdf.repository.base.RepositoryConnectionBase
addInputStreamOrReader, addWithoutCommit, autoCommit, export, finalize, prepareBooleanQuery, prepareGraphQuery, prepareQuery, prepareTupleQuery, removeWithoutCommit
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openrdf.repository.RepositoryConnection
export, prepareBooleanQuery, prepareGraphQuery, prepareQuery, prepareTupleQuery
 

Constructor Detail

ThreadProxyRepositoryConnection

public ThreadProxyRepositoryConnection(ThreadProxyRepository repository)
Method Detail

getRepository

public ThreadProxyRepository getRepository()
Specified by:
getRepository in interface RepositoryConnection
Overrides:
getRepository in class RepositoryConnectionBase

getDelegate

public RepositoryConnection getDelegate()
                                 throws RepositoryException
Specified by:
getDelegate in interface DelegatingRepositoryConnection
Overrides:
getDelegate in class RepositoryConnectionWrapper
Throws:
RepositoryException

close

public void close()
           throws RepositoryException
Specified by:
close in interface RepositoryConnection
Overrides:
close in class RepositoryConnectionWrapper
Throws:
RepositoryException

isAutoCommit

public boolean isAutoCommit()
                     throws RepositoryException
Specified by:
isAutoCommit in interface RepositoryConnection
Overrides:
isAutoCommit in class RepositoryConnectionWrapper
Throws:
RepositoryException

isOpen

public boolean isOpen()
               throws RepositoryException
Specified by:
isOpen in interface RepositoryConnection
Overrides:
isOpen in class RepositoryConnectionWrapper
Throws:
RepositoryException


Copyright © 2004-2008 Aduna. All Rights Reserved.