Package org.dspace.orcid.dao
Interface OrcidHistoryDAO
-
- All Superinterfaces:
GenericDAO<OrcidHistory>
- All Known Implementing Classes:
OrcidHistoryDAOImpl
public interface OrcidHistoryDAO extends GenericDAO<OrcidHistory>
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<OrcidHistory>findByEntity(Context context, Item entity)Find the OrcidHistory records related to the given entity item.List<OrcidHistory>findByProfileItemAndEntity(Context context, UUID profileItemId, UUID entityId)Find all the ORCID history records by the given profileItem and entity uuids.List<OrcidHistory>findByProfileItemOrEntity(Context context, Item item)Get the OrcidHistory records where the given item is the profileItem or the entityList<OrcidHistory>findSuccessfullyRecordsByEntityAndType(Context context, Item entity, String recordType)Find all the successfully Orcid history records with the given record type related to the given entity.-
Methods inherited from interface org.dspace.core.GenericDAO
create, delete, findAll, findAll, findByID, findByID, findMany, findUnique, save
-
-
-
-
Method Detail
-
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
List<OrcidHistory> findByProfileItemOrEntity(Context context, Item item) throws SQLException
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
List<OrcidHistory> findByEntity(Context context, Item entity) throws SQLException
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
-
-