Interface ProcessDAO

    • Method Detail

      • findAllSortByScript

        List<Process> findAllSortByScript​(Context context)
                                   throws SQLException
        This method will return all the Process objects in the database in a list and it'll be sorted by script name
        Parameters:
        context - The relevant DSpace context
        Returns:
        The list of all Process objects in the database sorted on scriptname
        Throws:
        SQLException - If something goes wrong
      • findAllSortByStartTime

        List<Process> findAllSortByStartTime​(Context context)
                                      throws SQLException
        This method will return all the Process objects in the database in a list and it'll be sorted by start time. The most recent one will be shown first
        Parameters:
        context - The relevant DSpace context
        Returns:
        The list of all Process objects in the database sorted by starttime
        Throws:
        SQLException - If something goes wrong
      • findAll

        List<Process> findAll​(Context context,
                              int limit,
                              int offset)
                       throws SQLException
        Returns a list of all Process objects in the database
        Parameters:
        context - The relevant DSpace context
        limit - The limit for the amount of Processes returned
        offset - The offset for the Processes to be returned
        Returns:
        The list of all Process objects in the Database
        Throws:
        SQLException - If something goes wrong
      • countRows

        int countRows​(Context context)
               throws SQLException
        Returns the total amount of Process objects in the dataase
        Parameters:
        context - The relevant DSpace context
        Returns:
        An integer that describes the amount of Process objects in the database
        Throws:
        SQLException - If something goes wrong
      • search

        List<Process> search​(Context context,
                             ProcessQueryParameterContainer processQueryParameterContainer,
                             int limit,
                             int offset)
                      throws SQLException
        Returns a list of all Processes in the database which match the given field requirements. If the requirements are not null, they will be combined with an AND operation.
        Parameters:
        context - The relevant DSpace context
        processQueryParameterContainer - The ProcessQueryParameterContainer containing all the values that the returned Process objects must adhere to
        limit - The limit for the amount of Processes returned
        offset - The offset for the Processes to be returned
        Returns:
        The list of all Processes which match the metadata requirements
        Throws:
        SQLException - If something goes wrong
      • countTotalWithParameters

        int countTotalWithParameters​(Context context,
                                     ProcessQueryParameterContainer processQueryParameterContainer)
                              throws SQLException
        Count all the processes which match the requirements. The requirements are evaluated like the search method.
        Parameters:
        context - The relevant DSpace context
        processQueryParameterContainer - The ProcessQueryParameterContainer containing all the values that the returned Process objects must adhere to
        Returns:
        The number of results matching the query
        Throws:
        SQLException - If something goes wrong