net.fortytwo.linkeddata.sail
Class LinkedDataSailConnection

java.lang.Object
  extended by org.openrdf.sail.helpers.SailConnectionBase
      extended by org.openrdf.sail.helpers.NotifyingSailConnectionBase
          extended by net.fortytwo.linkeddata.sail.LinkedDataSailConnection
All Implemented Interfaces:
org.openrdf.sail.NotifyingSailConnection, org.openrdf.sail.SailConnection

public class LinkedDataSailConnection
extends org.openrdf.sail.helpers.NotifyingSailConnectionBase

A connection to a LinkedDataSail

Author:
Joshua Shinavier (http://fortytwo.net)

Field Summary
 
Fields inherited from class org.openrdf.sail.helpers.SailConnectionBase
connectionLock, logger, updateLock
 
Method Summary
 void addConnectionListener(org.openrdf.sail.SailConnectionListener listener)
           
protected  void addStatementInternal(org.openrdf.model.Resource subj, org.openrdf.model.URI pred, org.openrdf.model.Value obj, org.openrdf.model.Resource... contexts)
           
protected  void clearInternal(org.openrdf.model.Resource... contexts)
           
protected  void clearNamespacesInternal()
           
protected  void closeInternal()
           
protected  void commitInternal()
           
protected  info.aduna.iteration.CloseableIteration<? extends org.openrdf.query.BindingSet,org.openrdf.query.QueryEvaluationException> evaluateInternal(org.openrdf.query.algebra.TupleExpr tupleExpr, org.openrdf.query.Dataset dataset, org.openrdf.query.BindingSet bindings, boolean includeInferred)
           
protected  info.aduna.iteration.CloseableIteration<? extends org.openrdf.model.Resource,org.openrdf.sail.SailException> getContextIDsInternal()
           
protected  String getNamespaceInternal(String prefix)
           
protected  info.aduna.iteration.CloseableIteration<? extends org.openrdf.model.Namespace,org.openrdf.sail.SailException> getNamespacesInternal()
           
protected  info.aduna.iteration.CloseableIteration<? extends org.openrdf.model.Statement,org.openrdf.sail.SailException> getStatementsInternal(org.openrdf.model.Resource subj, org.openrdf.model.URI pred, org.openrdf.model.Value obj, boolean includeInferred, org.openrdf.model.Resource... contexts)
           
 void removeConnectionListener(org.openrdf.sail.SailConnectionListener listener)
           
protected  void removeNamespaceInternal(String prefix)
           
protected  void removeStatementsInternal(org.openrdf.model.Resource subj, org.openrdf.model.URI pred, org.openrdf.model.Value obj, org.openrdf.model.Resource... context)
           
protected  void rollbackInternal()
           
protected  void setNamespaceInternal(String prefix, String name)
           
protected  long sizeInternal(org.openrdf.model.Resource... contexts)
           
protected  void startTransactionInternal()
           
 
Methods inherited from class org.openrdf.sail.helpers.NotifyingSailConnectionBase
hasConnectionListeners, notifyStatementAdded, notifyStatementRemoved
 
Methods inherited from class org.openrdf.sail.helpers.SailConnectionBase
addStatement, addStatement, autoStartTransaction, begin, clear, clearNamespaces, close, commit, endUpdate, evaluate, finalize, getContextIDs, getExclusiveConnectionLock, getNamespace, getNamespaces, getSharedConnectionLock, getStatements, getTransactionLock, isActive, isOpen, iterationClosed, prepare, registerIteration, removeNamespace, removeStatement, removeStatements, rollback, setNamespace, size, startUpdate, transactionActive, verifyIsActive, verifyIsOpen
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openrdf.sail.SailConnection
addStatement, addStatement, begin, clear, clearNamespaces, close, commit, endUpdate, evaluate, getContextIDs, getNamespace, getNamespaces, getStatements, isActive, isOpen, prepare, removeNamespace, removeStatement, removeStatements, rollback, setNamespace, size, startUpdate
 

Method Detail

addConnectionListener

public void addConnectionListener(org.openrdf.sail.SailConnectionListener listener)
Specified by:
addConnectionListener in interface org.openrdf.sail.NotifyingSailConnection
Overrides:
addConnectionListener in class org.openrdf.sail.helpers.NotifyingSailConnectionBase

addStatementInternal

protected void addStatementInternal(org.openrdf.model.Resource subj,
                                    org.openrdf.model.URI pred,
                                    org.openrdf.model.Value obj,
                                    org.openrdf.model.Resource... contexts)
                             throws org.openrdf.sail.SailException
Specified by:
addStatementInternal in class org.openrdf.sail.helpers.SailConnectionBase
Throws:
org.openrdf.sail.SailException

clearInternal

protected void clearInternal(org.openrdf.model.Resource... contexts)
                      throws org.openrdf.sail.SailException
Specified by:
clearInternal in class org.openrdf.sail.helpers.SailConnectionBase
Throws:
org.openrdf.sail.SailException

clearNamespacesInternal

protected void clearNamespacesInternal()
                                throws org.openrdf.sail.SailException
Specified by:
clearNamespacesInternal in class org.openrdf.sail.helpers.SailConnectionBase
Throws:
org.openrdf.sail.SailException

closeInternal

protected void closeInternal()
                      throws org.openrdf.sail.SailException
Specified by:
closeInternal in class org.openrdf.sail.helpers.SailConnectionBase
Throws:
org.openrdf.sail.SailException

commitInternal

protected void commitInternal()
                       throws org.openrdf.sail.SailException
Specified by:
commitInternal in class org.openrdf.sail.helpers.SailConnectionBase
Throws:
org.openrdf.sail.SailException

evaluateInternal

protected info.aduna.iteration.CloseableIteration<? extends org.openrdf.query.BindingSet,org.openrdf.query.QueryEvaluationException> evaluateInternal(org.openrdf.query.algebra.TupleExpr tupleExpr,
                                                                                                                                                      org.openrdf.query.Dataset dataset,
                                                                                                                                                      org.openrdf.query.BindingSet bindings,
                                                                                                                                                      boolean includeInferred)
                                                                                                                                               throws org.openrdf.sail.SailException
Specified by:
evaluateInternal in class org.openrdf.sail.helpers.SailConnectionBase
Throws:
org.openrdf.sail.SailException

getContextIDsInternal

protected info.aduna.iteration.CloseableIteration<? extends org.openrdf.model.Resource,org.openrdf.sail.SailException> getContextIDsInternal()
                                                                                                                                      throws org.openrdf.sail.SailException
Specified by:
getContextIDsInternal in class org.openrdf.sail.helpers.SailConnectionBase
Throws:
org.openrdf.sail.SailException

getNamespaceInternal

protected String getNamespaceInternal(String prefix)
                               throws org.openrdf.sail.SailException
Specified by:
getNamespaceInternal in class org.openrdf.sail.helpers.SailConnectionBase
Throws:
org.openrdf.sail.SailException

getNamespacesInternal

protected info.aduna.iteration.CloseableIteration<? extends org.openrdf.model.Namespace,org.openrdf.sail.SailException> getNamespacesInternal()
                                                                                                                                       throws org.openrdf.sail.SailException
Specified by:
getNamespacesInternal in class org.openrdf.sail.helpers.SailConnectionBase
Throws:
org.openrdf.sail.SailException

getStatementsInternal

protected info.aduna.iteration.CloseableIteration<? extends org.openrdf.model.Statement,org.openrdf.sail.SailException> getStatementsInternal(org.openrdf.model.Resource subj,
                                                                                                                                              org.openrdf.model.URI pred,
                                                                                                                                              org.openrdf.model.Value obj,
                                                                                                                                              boolean includeInferred,
                                                                                                                                              org.openrdf.model.Resource... contexts)
                                                                                                                                       throws org.openrdf.sail.SailException
Specified by:
getStatementsInternal in class org.openrdf.sail.helpers.SailConnectionBase
Throws:
org.openrdf.sail.SailException

removeConnectionListener

public void removeConnectionListener(org.openrdf.sail.SailConnectionListener listener)
Specified by:
removeConnectionListener in interface org.openrdf.sail.NotifyingSailConnection
Overrides:
removeConnectionListener in class org.openrdf.sail.helpers.NotifyingSailConnectionBase

removeNamespaceInternal

protected void removeNamespaceInternal(String prefix)
                                throws org.openrdf.sail.SailException
Specified by:
removeNamespaceInternal in class org.openrdf.sail.helpers.SailConnectionBase
Throws:
org.openrdf.sail.SailException

removeStatementsInternal

protected void removeStatementsInternal(org.openrdf.model.Resource subj,
                                        org.openrdf.model.URI pred,
                                        org.openrdf.model.Value obj,
                                        org.openrdf.model.Resource... context)
                                 throws org.openrdf.sail.SailException
Specified by:
removeStatementsInternal in class org.openrdf.sail.helpers.SailConnectionBase
Throws:
org.openrdf.sail.SailException

rollbackInternal

protected void rollbackInternal()
                         throws org.openrdf.sail.SailException
Specified by:
rollbackInternal in class org.openrdf.sail.helpers.SailConnectionBase
Throws:
org.openrdf.sail.SailException

setNamespaceInternal

protected void setNamespaceInternal(String prefix,
                                    String name)
                             throws org.openrdf.sail.SailException
Specified by:
setNamespaceInternal in class org.openrdf.sail.helpers.SailConnectionBase
Throws:
org.openrdf.sail.SailException

sizeInternal

protected long sizeInternal(org.openrdf.model.Resource... contexts)
                     throws org.openrdf.sail.SailException
Specified by:
sizeInternal in class org.openrdf.sail.helpers.SailConnectionBase
Throws:
org.openrdf.sail.SailException

startTransactionInternal

protected void startTransactionInternal()
                                 throws org.openrdf.sail.SailException
Specified by:
startTransactionInternal in class org.openrdf.sail.helpers.SailConnectionBase
Throws:
org.openrdf.sail.SailException


Copyright © 2007-2014. All Rights Reserved.