ilog.rules.res.persistence.trace

Interface IlrTraceDAO

  • All Known Implementing Classes:
    IlrTraceDAOWrapper


    public interface IlrTraceDAO
    Interface for Decision Warehouse trace DAO. This interface defines the contract of the DAO that is injected into Rule Sessions, RES console, and SSP to write and read traces.

    Trace DAOs encapsulate transaction management via the beginTransaction(), commit() and rollback() methods.

    The following code example shows how to invoke transactional code:
     try {
       dao.beginTransaction();
       dao.xxx();
       dao.commit();
     } catch(IlrDAOException e) {
       ...
       dao.rollback();
       ...
     } finally {
       dao.close();
     }
     
    Since:
    7.0
    • Method Detail

      • close

        void close()
        Closes the underlying transaction.
      • rollback

        void rollback()
        Rollback the underlying transaction.
      • saveTrace

        void saveTrace(IlrDWTrace trace,
                     IlrSessionRequest request,
                     IlrSessionResponse response)
                       throws IlrTraceDAOException
        Saves a given trace instance after ruleset execution.
        Throws:
        IlrTraceDAOException - if an error occurred while saving the trace.
        Parameters:
        trace - The Decision Warehouse trace instance to save.
        request - The session request used for the execution.
        response - The session response returned by the execution.
      • findAllTraces

        IlrTraceIterator findAllTraces()
                                       throws IlrTraceDAOException
        Returns an iterator on all the execution traces stored. The transaction must be be initiated and committed or rolled-back by the client.
        Throws:
        IlrTraceDAOException - if an error occurred while saving the trace.
        Returns:
        An iterator on the traces.
      • createQuery

        IlrTraceQuery createQuery()
        Creates and returns an IlrTraceQuery object.
        Returns:
        A new query object that can be used to specify criteria.
      • findByExecutionId

        IlrDWTrace findByExecutionId(java.lang.String executionId)
                                     throws IlrTraceDAOException
        Returns the trace that matches an execution ID (UUID).
        Throws:
        IlrTraceDAOException - if an error occurred while searching for the trace.
        Parameters:
        executionId - The execution ID to search for.
        Returns:
        The trace matching executionId. If no matching trace is found, null is returned.

© Copyright IBM Corp. 1987, 2020