org.openrdf.sail.optimistic
Class AutoCommitRepositoryConnection
java.lang.Object
org.openrdf.repository.base.RepositoryConnectionBase
org.openrdf.repository.sail.SailRepositoryConnection
org.openrdf.sail.optimistic.AutoCommitRepositoryConnection
- All Implemented Interfaces:
- RepositoryConnection
public class AutoCommitRepositoryConnection
- extends SailRepositoryConnection
Relays transaction state an OptimisticConnection.
- Author:
- James Leigh
| Methods inherited from class org.openrdf.repository.sail.SailRepositoryConnection |
createRepositoryResult, exportStatements, getContextIDs, getNamespace, getNamespaces, getSailConnection, getStatements, isEmpty, prepareBooleanQuery, prepareGraphQuery, prepareQuery, prepareTupleQuery, size |
| Methods inherited from class org.openrdf.repository.base.RepositoryConnectionBase |
add, add, add, add, add, add, add, add, addInputStreamOrReader, addWithoutCommit, export, getRepository, getValueFactory, hasStatement, hasStatement, isAutoCommit, isOpen, prepareBooleanQuery, prepareGraphQuery, prepareQuery, prepareTupleQuery, remove, remove, remove, remove, removeWithoutCommit |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AutoCommitRepositoryConnection
protected AutoCommitRepositoryConnection(SailRepository repository,
OptimisticConnection sail)
addWithoutCommit
protected void addWithoutCommit(Resource subject,
URI predicate,
Value object,
Resource... contexts)
throws RepositoryException
- Overrides:
addWithoutCommit in class SailRepositoryConnection
- Throws:
RepositoryException
removeWithoutCommit
protected void removeWithoutCommit(Resource subject,
URI predicate,
Value object,
Resource... contexts)
throws RepositoryException
- Overrides:
removeWithoutCommit in class SailRepositoryConnection
- Throws:
RepositoryException
clear
public void clear(Resource... contexts)
throws RepositoryException
- Specified by:
clear in interface RepositoryConnection- Overrides:
clear in class SailRepositoryConnection
- Throws:
RepositoryException
clearNamespaces
public void clearNamespaces()
throws RepositoryException
- Specified by:
clearNamespaces in interface RepositoryConnection- Overrides:
clearNamespaces in class SailRepositoryConnection
- Throws:
RepositoryException
removeNamespace
public void removeNamespace(String prefix)
throws RepositoryException
- Specified by:
removeNamespace in interface RepositoryConnection- Overrides:
removeNamespace in class SailRepositoryConnection
- Throws:
RepositoryException
setNamespace
public void setNamespace(String prefix,
String name)
throws RepositoryException
- Specified by:
setNamespace in interface RepositoryConnection- Overrides:
setNamespace in class SailRepositoryConnection
- Throws:
RepositoryException
close
public void close()
throws RepositoryException
- Specified by:
close in interface RepositoryConnection- Overrides:
close in class SailRepositoryConnection
- Throws:
RepositoryException
commit
public void commit()
throws RepositoryException
- Specified by:
commit in interface RepositoryConnection- Overrides:
commit in class SailRepositoryConnection
- Throws:
RepositoryException
rollback
public void rollback()
throws RepositoryException
- Specified by:
rollback in interface RepositoryConnection- Overrides:
rollback in class SailRepositoryConnection
- Throws:
RepositoryException
setAutoCommit
public void setAutoCommit(boolean autoCommit)
throws RepositoryException
- Specified by:
setAutoCommit in interface RepositoryConnection- Overrides:
setAutoCommit in class RepositoryConnectionBase
- Throws:
RepositoryException
autoCommit
protected void autoCommit()
throws RepositoryException
- Overrides:
autoCommit in class RepositoryConnectionBase
- Throws:
RepositoryException
Copyright © 2004-2010 James Leigh Services Inc.. All Rights Reserved.