org.universAAL.context.sesame.sail
Class CardinalityNativeStoreConnection

Package class diagram package CardinalityNativeStoreConnection
java.lang.Object
  extended by org.openrdf.sail.helpers.SailConnectionBase
      extended by org.openrdf.sail.helpers.NotifyingSailConnectionBase
          extended by org.universAAL.context.sesame.sail.CardinalityNativeStoreConnection
All Implemented Interfaces:
org.openrdf.sail.inferencer.InferencerConnection, org.openrdf.sail.NotifyingSailConnection, org.openrdf.sail.SailConnection
Direct Known Subclasses:
CardinCollect2NativeStoreConnection, CardinCollectNativeStoreConnection

public class CardinalityNativeStoreConnection
extends org.openrdf.sail.helpers.NotifyingSailConnectionBase
implements org.openrdf.sail.inferencer.InferencerConnection

Author:
Arjohn Kampman

Field Summary
protected  CardinalityNativeStore nativeStore
           
protected  org.openrdf.sail.helpers.DefaultSailChangedEvent sailChangedEvent
           
 
Fields inherited from class org.openrdf.sail.helpers.SailConnectionBase
connectionLock, logger, updateLock
 
Constructor Summary
protected CardinalityNativeStoreConnection(CardinalityNativeStore nativeStore)
           
 
Method Summary
 boolean addInferredStatement(org.openrdf.model.Resource subj, org.openrdf.model.URI pred, org.openrdf.model.Value obj, org.openrdf.model.Resource... contexts)
           
protected  boolean addStatement(org.openrdf.model.Resource subj, org.openrdf.model.URI pred, org.openrdf.model.Value obj, boolean explicit, org.openrdf.model.Resource... contexts)
           
protected  void addStatementInternal(org.openrdf.model.Resource subj, org.openrdf.model.URI pred, org.openrdf.model.Value obj, org.openrdf.model.Resource... contexts)
           
 void clearInferred(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)
           
 void flushUpdates()
           
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)
           
protected  boolean hasMaxCardinality1(org.openrdf.model.URI pred, org.openrdf.model.Resource[] contexts)
           
 boolean removeInferredStatement(org.openrdf.model.Resource subj, org.openrdf.model.URI pred, org.openrdf.model.Value obj, org.openrdf.model.Resource... contexts)
           
protected  void removeNamespaceInternal(String prefix)
           
protected  int removeStatements(org.openrdf.model.Resource subj, org.openrdf.model.URI pred, org.openrdf.model.Value obj, boolean explicit, org.openrdf.model.Resource... contexts)
           
protected  void removeStatementsInternal(org.openrdf.model.Resource subj, org.openrdf.model.URI pred, org.openrdf.model.Value obj, org.openrdf.model.Resource... contexts)
           
protected  void replaceValues(org.openrdf.query.algebra.TupleExpr tupleExpr)
           
protected  void rollbackInternal()
           
protected  void setNamespaceInternal(String prefix, String name)
           
 long size(org.openrdf.model.Resource subj, org.openrdf.model.URI pred, org.openrdf.model.Value obj, boolean includeInferred, org.openrdf.model.Resource... contexts)
           
protected  long sizeInternal(org.openrdf.model.Resource... contexts)
           
protected  void startTransactionInternal()
           
 
Methods inherited from class org.openrdf.sail.helpers.NotifyingSailConnectionBase
addConnectionListener, hasConnectionListeners, notifyStatementAdded, notifyStatementRemoved, removeConnectionListener
 
Methods inherited from class org.openrdf.sail.helpers.SailConnectionBase
addStatement, autoStartTransaction, clear, clearNamespaces, close, commit, evaluate, executeAdd, executeClear, executeCopy, executeCreate, executeDeleteData, executeInsertData, executeInternal, executeModify, executeMove, executeUpdate, finalize, getContextIDs, getExclusiveConnectionLock, getNamespace, getNamespaces, getSharedConnectionLock, getStatements, getTransactionLock, isOpen, iterationClosed, registerIteration, removeNamespace, removeStatements, rollback, setNamespace, size, transactionActive, 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.NotifyingSailConnection
addConnectionListener, removeConnectionListener
 
Methods inherited from interface org.openrdf.sail.SailConnection
addStatement, clear, clearNamespaces, close, commit, evaluate, executeUpdate, getContextIDs, getNamespace, getNamespaces, getStatements, isOpen, removeNamespace, removeStatements, rollback, setNamespace, size
 

Field Detail

nativeStore

protected final CardinalityNativeStore nativeStore

sailChangedEvent

protected volatile org.openrdf.sail.helpers.DefaultSailChangedEvent sailChangedEvent
Constructor Detail

CardinalityNativeStoreConnection

protected CardinalityNativeStoreConnection(CardinalityNativeStore nativeStore)
                                    throws IOException
Throws:
IOException
Method Detail

closeInternal

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

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

replaceValues

protected void replaceValues(org.openrdf.query.algebra.TupleExpr tupleExpr)
                      throws org.openrdf.sail.SailException
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

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

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

size

public long size(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
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

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

startTransactionInternal

protected void startTransactionInternal()
                                 throws org.openrdf.sail.SailException
Specified by:
startTransactionInternal 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

rollbackInternal

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

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

addInferredStatement

public boolean addInferredStatement(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:
addInferredStatement in interface org.openrdf.sail.inferencer.InferencerConnection
Throws:
org.openrdf.sail.SailException

addStatement

protected boolean addStatement(org.openrdf.model.Resource subj,
                               org.openrdf.model.URI pred,
                               org.openrdf.model.Value obj,
                               boolean explicit,
                               org.openrdf.model.Resource... contexts)
                        throws org.openrdf.sail.SailException
Throws:
org.openrdf.sail.SailException

hasMaxCardinality1

protected boolean hasMaxCardinality1(org.openrdf.model.URI pred,
                                     org.openrdf.model.Resource[] contexts)
                              throws org.openrdf.sail.SailException
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... contexts)
                                 throws org.openrdf.sail.SailException
Specified by:
removeStatementsInternal in class org.openrdf.sail.helpers.SailConnectionBase
Throws:
org.openrdf.sail.SailException

removeInferredStatement

public boolean removeInferredStatement(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:
removeInferredStatement in interface org.openrdf.sail.inferencer.InferencerConnection
Throws:
org.openrdf.sail.SailException

removeStatements

protected int removeStatements(org.openrdf.model.Resource subj,
                               org.openrdf.model.URI pred,
                               org.openrdf.model.Value obj,
                               boolean explicit,
                               org.openrdf.model.Resource... contexts)
                        throws org.openrdf.sail.SailException
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

clearInferred

public void clearInferred(org.openrdf.model.Resource... contexts)
                   throws org.openrdf.sail.SailException
Specified by:
clearInferred in interface org.openrdf.sail.inferencer.InferencerConnection
Throws:
org.openrdf.sail.SailException

flushUpdates

public void flushUpdates()
Specified by:
flushUpdates in interface org.openrdf.sail.inferencer.InferencerConnection

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

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

clearNamespacesInternal

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


Copyright © 2014 universAAL Consortium. All Rights Reserved.