Class AbstractICVConnection

  • All Implemented Interfaces:
    Connection, ICVConnection, ICValidator, java.lang.AutoCloseable

    public abstract class AbstractICVConnection
    extends com.complexible.stardog.api.impl.DelegatingConnection
    implements ICVConnection

    Abstract base implementation for a SNARL API Connection which supports ICV. This handles the oracle/validation bits by creating the ICV queries and delegating them to the parent connection. Also handles IO bits for changing constraints, but otherwise leaves constraint manipulation to the implementing classes.

    Michael Grove
    • Field Detail

      • LOGGER

        protected static final org.slf4j.Logger LOGGER
        the logger
    • Constructor Detail

      • AbstractICVConnection

        protected AbstractICVConnection​(com.complexible.stardog.api.impl.AbstractConnection theConnection)
    • Method Detail

      • isValid

        public final boolean isValid​(Constraint... theConstraints)
                              throws StardogException
        Returns true if the given integrity constraints are violated in the database. If no constraints are given then all the current constraints in the database are used. This function is equivalent to calling ICValidator.isValid(Collection, Constraint...) with ContextSets.LOCAL as the active graphs.
        Specified by:
        isValid in interface ICValidator
        theConstraints - the constraints to check. If no constraints are given, the defined constraints will be used.
        true if the constraints are violated, false otherwise
        StardogException - if there was an error while checking the validity of the data in the database
      • getConnection

        protected com.complexible.stardog.api.impl.AbstractConnection getConnection()
        getConnection in class com.complexible.stardog.api.impl.DelegatingConnection