Package org.dspace.orcid.dao.impl
Class OrcidHistoryDAOImpl
- All Implemented Interfaces:
GenericDAO<OrcidHistory>,OrcidHistoryDAO
public class OrcidHistoryDAOImpl
extends AbstractHibernateDAO<OrcidHistory>
implements OrcidHistoryDAO
Implementation of
OrcidHistoryDAO.- Author:
- Luca Giamminonni (luca.giamminonni at 4science.it)
-
Constructor Summary
Constructors -
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.Methods inherited from class org.dspace.core.AbstractHibernateDAO
count, count, countLong, create, createQuery, createQuery, delete, executeCriteriaQuery, findAll, findAll, findByID, findByID, findByID, findByX, findMany, findMany, findUnique, getCriteriaBuilder, getCriteriaQuery, getHibernateSession, iterate, list, list, list, list, save, singleResult, singleResult, uniqueResult, uniqueResult
-
Constructor Details
-
OrcidHistoryDAOImpl
public OrcidHistoryDAOImpl()
-
-
Method Details
-
findByProfileItemAndEntity
public List<OrcidHistory> findByProfileItemAndEntity(Context context, UUID profileItemId, UUID entityId) throws SQLException Description copied from interface:OrcidHistoryDAOFind all the ORCID history records by the given profileItem and entity uuids.- Specified by:
findByProfileItemAndEntityin interfaceOrcidHistoryDAO- 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
Description copied from interface:OrcidHistoryDAOGet the OrcidHistory records where the given item is the profileItem or the entity- Specified by:
findByProfileItemOrEntityin interfaceOrcidHistoryDAO- Parameters:
context- DSpace context objectitem- the item to search for- Returns:
- the found OrcidHistory entities
- Throws:
SQLException- if database error
-
findByEntity
Description copied from interface:OrcidHistoryDAOFind the OrcidHistory records related to the given entity item.- Specified by:
findByEntityin interfaceOrcidHistoryDAO- Parameters:
context- DSpace context objectentity- the entity item- Returns:
- the found put codes
- Throws:
SQLException- if database error
-
findSuccessfullyRecordsByEntityAndType
public List<OrcidHistory> findSuccessfullyRecordsByEntityAndType(Context context, Item entity, String recordType) throws SQLException Description copied from interface:OrcidHistoryDAOFind 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.- Specified by:
findSuccessfullyRecordsByEntityAndTypein interfaceOrcidHistoryDAO- Parameters:
context- DSpace context objectentity- the entity itemrecordType- the record type- Returns:
- the found orcid history records
- Throws:
SQLException- if database error
-