Interface OrcidQueueDAO

  • All Superinterfaces:
    GenericDAO<OrcidQueue>
    All Known Implementing Classes:
    OrcidQueueDAOImpl

    public interface OrcidQueueDAO
    extends GenericDAO<OrcidQueue>
    Database Access Object interface class for the OrcidQueue object. The implementation of this class is responsible for all database calls for the OrcidQueue object and is autowired by spring. This class should only be accessed from a single service and should never be exposed outside of the API
    Author:
    Luca Giamminonni (luca.giamminonni at 4science.it)
    • Method Detail

      • findByProfileItemId

        List<OrcidQueue> findByProfileItemId​(Context context,
                                             UUID profileItemId,
                                             Integer limit,
                                             Integer offset)
                                      throws SQLException
        Get the orcid queue records by the profileItem id.
        Parameters:
        context - DSpace context object
        profileItemId - the profileItem item id
        limit - limit
        offset - offset
        Returns:
        the orcid queue records
        Throws:
        SQLException - if an SQL error occurs
      • countByProfileItemId

        long countByProfileItemId​(Context context,
                                  UUID profileItemId)
                           throws SQLException
        Count the orcid queue records with the same profileItemId.
        Parameters:
        context - DSpace context object
        profileItemId - the profileItem item id
        Returns:
        the count result
        Throws:
        SQLException - if an SQL error occurs
      • findByProfileItemAndEntity

        List<OrcidQueue> findByProfileItemAndEntity​(Context context,
                                                    Item profileItem,
                                                    Item entity)
                                             throws SQLException
        Returns all the orcid queue records with the given profileItem and entity items.
        Parameters:
        context - DSpace context object
        profileItem - the profileItem item
        entity - the entity item
        Returns:
        the found orcid queue records
        Throws:
        SQLException
      • findByProfileItemOrEntity

        List<OrcidQueue> findByProfileItemOrEntity​(Context context,
                                                   Item item)
                                            throws SQLException
        Get the OrcidQueue records where the given item is the profileItem OR the entity
        Parameters:
        context - DSpace context object
        item - the item to search for
        Returns:
        the found OrcidHistory entities
        Throws:
        SQLException - if database error
      • findByEntityAndRecordType

        List<OrcidQueue> findByEntityAndRecordType​(Context context,
                                                   Item entity,
                                                   String type)
                                            throws SQLException
        Find all the OrcidQueue records with the given entity and record type.
        Parameters:
        context - DSpace context object
        entity - the entity item
        type - the record type
        Throws:
        SQLException - if database error occurs
      • findByProfileItemAndRecordType

        List<OrcidQueue> findByProfileItemAndRecordType​(Context context,
                                                        Item profileItem,
                                                        String type)
                                                 throws SQLException
        Find all the OrcidQueue records with the given profileItem and record type.
        Parameters:
        context - DSpace context object
        profileItem - the profileItem item
        type - the record type
        Throws:
        SQLException - if database error occurs
      • findByAttemptsLessThan

        List<OrcidQueue> findByAttemptsLessThan​(Context context,
                                                int attempts)
                                         throws SQLException
        Get all the OrcidQueue records with attempts less than the given attempts.
        Parameters:
        context - DSpace context object
        attempts - the maximum value of attempts
        Returns:
        the found OrcidQueue records
        Throws:
        SQLException - if database error