org.openrdf.sail.rdbms
Class RdbmsConnection
java.lang.Object
org.openrdf.sail.helpers.SailConnectionBase
org.openrdf.sail.rdbms.RdbmsConnection
- All Implemented Interfaces:
- SailConnection
public class RdbmsConnection
- extends SailConnectionBase
Coordinates the triple store, namespace manager, optimizer, and evaluation
strategy into the SailConnection interface.
- Author:
- James Leigh
|
Method Summary |
protected void |
addStatementInternal(Resource subj,
URI pred,
Value obj,
Resource... contexts)
|
protected void |
clearInternal(Resource... contexts)
|
protected void |
clearNamespacesInternal()
|
protected void |
closeInternal()
|
protected void |
commitInternal()
|
protected CloseableIteration<BindingSet,QueryEvaluationException> |
evaluateInternal(TupleExpr expr,
Dataset dataset,
BindingSet bindings,
boolean includeInferred)
|
protected void |
finalize()
|
protected RdbmsResourceIteration |
getContextIDsInternal()
|
protected String |
getNamespaceInternal(String prefix)
|
protected CloseableIteration<? extends Namespace,SailException> |
getNamespacesInternal()
|
protected CloseableIteration<? extends Statement,SailException> |
getStatementsInternal(Resource subj,
URI pred,
Value obj,
boolean includeInferred,
Resource... contexts)
|
protected void |
removeNamespaceInternal(String prefix)
|
protected void |
removeStatementsInternal(Resource subj,
URI pred,
Value obj,
Resource... contexts)
|
protected void |
rollbackInternal()
|
void |
setLockManager(ExclusiveLockManager lock)
|
protected void |
setNamespaceInternal(String prefix,
String name)
|
void |
setNamespaces(NamespaceManager namespaces)
|
void |
setRdbmsEvaluationFactory(RdbmsEvaluationFactory factory)
|
void |
setRdbmsQueryOptimizer(RdbmsQueryOptimizer optimizer)
|
protected long |
sizeInternal(Resource... contexts)
|
protected void |
startTransactionInternal()
|
| Methods inherited from class org.openrdf.sail.helpers.SailConnectionBase |
addStatement, autoStartTransaction, clear, clearNamespaces, close, commit, evaluate, getContextIDs, getExclusiveConnectionLock, getNamespace, getNamespaces, getSharedConnectionLock, getStatements, getTransactionLock, isOpen, iterationClosed, registerIteration, removeNamespace, removeStatements, rollback, setNamespace, size, transactionActive, verifyIsOpen |
RdbmsConnection
public RdbmsConnection(RdbmsStore sail,
RdbmsTripleRepository triples)
setNamespaces
public void setNamespaces(NamespaceManager namespaces)
setRdbmsQueryOptimizer
public void setRdbmsQueryOptimizer(RdbmsQueryOptimizer optimizer)
setRdbmsEvaluationFactory
public void setRdbmsEvaluationFactory(RdbmsEvaluationFactory factory)
setLockManager
public void setLockManager(ExclusiveLockManager lock)
addStatementInternal
protected void addStatementInternal(Resource subj,
URI pred,
Value obj,
Resource... contexts)
throws SailException
- Specified by:
addStatementInternal in class SailConnectionBase
- Throws:
SailException
clearInternal
protected void clearInternal(Resource... contexts)
throws SailException
- Specified by:
clearInternal in class SailConnectionBase
- Throws:
SailException
closeInternal
protected void closeInternal()
throws SailException
- Specified by:
closeInternal in class SailConnectionBase
- Throws:
SailException
commitInternal
protected void commitInternal()
throws SailException
- Specified by:
commitInternal in class SailConnectionBase
- Throws:
SailException
getContextIDsInternal
protected RdbmsResourceIteration getContextIDsInternal()
throws SailException
- Specified by:
getContextIDsInternal in class SailConnectionBase
- Throws:
SailException
getStatementsInternal
protected CloseableIteration<? extends Statement,SailException> getStatementsInternal(Resource subj,
URI pred,
Value obj,
boolean includeInferred,
Resource... contexts)
throws SailException
- Specified by:
getStatementsInternal in class SailConnectionBase
- Throws:
SailException
removeStatementsInternal
protected void removeStatementsInternal(Resource subj,
URI pred,
Value obj,
Resource... contexts)
throws SailException
- Specified by:
removeStatementsInternal in class SailConnectionBase
- Throws:
SailException
rollbackInternal
protected void rollbackInternal()
throws SailException
- Specified by:
rollbackInternal in class SailConnectionBase
- Throws:
SailException
evaluateInternal
protected CloseableIteration<BindingSet,QueryEvaluationException> evaluateInternal(TupleExpr expr,
Dataset dataset,
BindingSet bindings,
boolean includeInferred)
throws SailException
- Specified by:
evaluateInternal in class SailConnectionBase
- Throws:
SailException
clearNamespacesInternal
protected void clearNamespacesInternal()
throws SailException
- Specified by:
clearNamespacesInternal in class SailConnectionBase
- Throws:
SailException
getNamespaceInternal
protected String getNamespaceInternal(String prefix)
throws SailException
- Specified by:
getNamespaceInternal in class SailConnectionBase
- Throws:
SailException
getNamespacesInternal
protected CloseableIteration<? extends Namespace,SailException> getNamespacesInternal()
throws SailException
- Specified by:
getNamespacesInternal in class SailConnectionBase
- Throws:
SailException
removeNamespaceInternal
protected void removeNamespaceInternal(String prefix)
throws SailException
- Specified by:
removeNamespaceInternal in class SailConnectionBase
- Throws:
SailException
setNamespaceInternal
protected void setNamespaceInternal(String prefix,
String name)
throws SailException
- Specified by:
setNamespaceInternal in class SailConnectionBase
- Throws:
SailException
sizeInternal
protected long sizeInternal(Resource... contexts)
throws SailException
- Specified by:
sizeInternal in class SailConnectionBase
- Throws:
SailException
startTransactionInternal
protected void startTransactionInternal()
throws SailException
- Specified by:
startTransactionInternal in class SailConnectionBase
- Throws:
SailException
finalize
protected void finalize()
throws Throwable
- Overrides:
finalize in class SailConnectionBase
- Throws:
Throwable
Copyright © 2001-2008 Aduna. All Rights Reserved.