Class LuceneSpinSailConnection

    • Field Detail

      • connectionListener

        protected final SailConnectionListener connectionListener
        Deprecated.
        The listener that listens to the underlying connection. It is disabled during clearContext operations.
    • Method Detail

      • addStatement

        public void addStatement​(Resource subj,
                                 IRI pred,
                                 Value obj,
                                 Resource... contexts)
                          throws SailException
        Deprecated.
        Description copied from interface: SailConnection
        Adds a statement to the store.
        Specified by:
        addStatement in interface SailConnection
        Overrides:
        addStatement in class SailConnectionWrapper
        Parameters:
        subj - The subject of the statement to add.
        pred - The predicate of the statement to add.
        obj - The object of the statement to add.
        contexts - The context(s) to add the statement to. Note that this parameter is a vararg and as such is optional. If no contexts are specified, a context-less statement will be added.
        Throws:
        SailException - If the statement could not be added, for example because no transaction is active.
      • clear

        public void clear​(Resource... resources)
                   throws SailException
        Deprecated.
        Description copied from interface: SailConnection
        Removes all statements from the specified/all contexts. If no contexts are specified the method operates on the entire repository.
        Specified by:
        clear in interface SailConnection
        Overrides:
        clear in class SailConnectionWrapper
        Parameters:
        resources - The context(s) from which to remove the statements. Note that this parameter is a vararg and as such is optional. If no contexts are specified the method operates on the entire repository. A null value can be used to match context-less statements.
        Throws:
        SailException - If the statements could not be removed.
      • removeStatements

        public void removeStatements​(Resource subj,
                                     IRI pred,
                                     Value obj,
                                     Resource... contexts)
                              throws SailException
        Deprecated.
        Removes all statements matching the specified subject, predicate and object from the repository. All three parameters may be null to indicate wildcards.
        Specified by:
        removeStatements in interface SailConnection
        Overrides:
        removeStatements in class SailConnectionWrapper
        Parameters:
        subj - The subject of the statement that should be removed, or null to indicate a wildcard.
        pred - The predicate of the statement that should be removed, or null to indicate a wildcard.
        obj - The object of the statement that should be removed , or null to indicate a wildcard. *
        contexts - The context(s) from which to remove the statement. Note that this parameter is a vararg and as such is optional. If no contexts are specified the method operates on the entire repository. A null value can be used to match context-less statements.
        Throws:
        SailException - If the statement could not be removed, for example because no transaction is active.
      • rollback

        public void rollback()
                      throws SailException
        Deprecated.
        Description copied from interface: SailConnection
        Rolls back the transaction, discarding any uncommitted changes that have been made in this SailConnection.
        Specified by:
        rollback in interface SailConnection
        Overrides:
        rollback in class SailConnectionWrapper
        Throws:
        UnknownSailTransactionStateException - If the transaction state can not be determined (this can happen for instance when communication between client and server fails or times-out). It does not indicate a problem with the integrity of the store.
        SailException - If the SailConnection could not be rolled back.