Package org.dspace.orcid.dao
Interface OrcidHistoryDAO
- All Superinterfaces:
GenericDAO<OrcidHistory>
- All Known Implementing Classes:
OrcidHistoryDAOImpl
Database Access Object interface class for the OrcidHistory object. The
implementation of this class is responsible for all database calls for the
OrcidHistory 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
Modifier and TypeMethodDescriptionfindByEntity(Context context, Item entity) Find the OrcidHistory records related to the given entity item.findByProfileItemAndEntity(Context context, UUID profileItemId, UUID entityId) Find all the ORCID history records by the given profileItem and entity uuids.findByProfileItemOrEntity(Context context, Item item) Get the OrcidHistory records where the given item is the profileItem or the entityfindSuccessfullyRecordsByEntityAndType(Context context, Item entity, String recordType) Find all the successfully Orcid history records with the given record type related to the given entity.
-
Method Details
-
findByProfileItemAndEntity
List<OrcidHistory> findByProfileItemAndEntity(Context context, UUID profileItemId, UUID entityId) throws SQLException Find all the ORCID history records by the given profileItem and entity uuids.- Parameters:
context- the DSpace contextprofileItemId- the profileItem item uuidentityId- the entity item uuid- Returns:
- the records list
- Throws:
SQLException- if an SQL error occurs
-
findByProfileItemOrEntity
Get the OrcidHistory 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
-
findByEntity
Find the OrcidHistory records related to the given entity item.- Parameters:
context- DSpace context objectentity- the entity item- Returns:
- the found put codes
- Throws:
SQLException- if database error
-
findSuccessfullyRecordsByEntityAndType
List<OrcidHistory> findSuccessfullyRecordsByEntityAndType(Context context, Item entity, String recordType) throws SQLException Find all the successfully Orcid history records with the given record type related to the given entity. An history record is considered successful if the status is between 200 and 300.- Parameters:
context- DSpace context objectentity- the entity itemrecordType- the record type- Returns:
- the found orcid history records
- Throws:
SQLException- if database error
-