Package org.dspace.orcid.dao
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longcountByProfileItemId(Context context, UUID profileItemId)Count the orcid queue records with the same profileItemId.List<OrcidQueue>findByAttemptsLessThan(Context context, int attempts)Get all the OrcidQueue records with attempts less than the given attempts.List<OrcidQueue>findByEntityAndRecordType(Context context, Item entity, String type)Find all the OrcidQueue records with the given entity and record type.List<OrcidQueue>findByProfileItemAndEntity(Context context, Item profileItem, Item entity)Returns all the orcid queue records with the given profileItem and entity items.List<OrcidQueue>findByProfileItemAndRecordType(Context context, Item profileItem, String type)Find all the OrcidQueue records with the given profileItem and record type.List<OrcidQueue>findByProfileItemId(Context context, UUID profileItemId, Integer limit, Integer offset)Get the orcid queue records by the profileItem id.List<OrcidQueue>findByProfileItemOrEntity(Context context, Item item)Get the OrcidQueue records where the given item is the profileItem OR the entity-
Methods inherited from interface org.dspace.core.GenericDAO
create, delete, findAll, findAll, findByID, findByID, findMany, findUnique, save
-
-
-
-
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 objectprofileItemId- the profileItem item idlimit- limitoffset- 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 objectprofileItemId- 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 objectprofileItem- the profileItem itementity- 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 objectitem- 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 objectentity- the entity itemtype- 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 objectprofileItem- the profileItem itemtype- 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 objectattempts- the maximum value of attempts- Returns:
- the found OrcidQueue records
- Throws:
SQLException- if database error
-
-