Class ProcessDAOImpl

    • Constructor Detail

      • ProcessDAOImpl

        public ProcessDAOImpl()
    • Method Detail

      • findAllSortByScript

        public List<Process> findAllSortByScript​(Context context)
                                          throws SQLException
        Description copied from interface: ProcessDAO
        This method will return all the Process objects in the database in a list and it'll be sorted by script name
        Specified by:
        findAllSortByScript in interface ProcessDAO
        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

        public List<Process> findAllSortByStartTime​(Context context)
                                             throws SQLException
        Description copied from interface: ProcessDAO
        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
        Specified by:
        findAllSortByStartTime in interface ProcessDAO
        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

        public List<Process> findAll​(Context context,
                                     int limit,
                                     int offset)
                              throws SQLException
        Description copied from interface: ProcessDAO
        Returns a list of all Process objects in the database
        Specified by:
        findAll in interface ProcessDAO
        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

        public int countRows​(Context context)
                      throws SQLException
        Description copied from interface: ProcessDAO
        Returns the total amount of Process objects in the dataase
        Specified by:
        countRows in interface ProcessDAO
        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

        public List<Process> search​(Context context,
                                    ProcessQueryParameterContainer processQueryParameterContainer,
                                    int limit,
                                    int offset)
                             throws SQLException
        Description copied from interface: ProcessDAO
        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.
        Specified by:
        search in interface ProcessDAO
        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