Package org.dspace.orcid.dao.impl
Class OrcidQueueDAOImpl
- All Implemented Interfaces:
GenericDAO<OrcidQueue>,OrcidQueueDAO
Implementation of
OrcidQueueDAO.- Author:
- Luca Giamminonni (luca.giamminonni at 4science.it)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongcountByProfileItemId(Context context, UUID profileItemId) Count the orcid queue records with the same profileItemId.findByAttemptsLessThan(Context context, int attempts) Get all the OrcidQueue records with attempts less than the given attempts.findByEntity(Context context, Item item) Get the OrcidQueue records where the given item is the entity.findByEntityAndRecordType(Context context, Item entity, String type) Find all the OrcidQueue records with the given entity and record type.findByProfileItemAndEntity(Context context, Item profileItem, Item entity) Returns all the orcid queue records with the given profileItem and entity items.findByProfileItemAndRecordType(Context context, Item profileItem, String type) Find all the OrcidQueue records with the given profileItem and record type.findByProfileItemId(Context context, UUID profileItemId, Integer limit, Integer offset) Get the orcid queue records by the profileItem id.findByProfileItemOrEntity(Context context, Item item) Get the OrcidQueue records where the given item is the profileItem OR the entityMethods 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
-
OrcidQueueDAOImpl
public OrcidQueueDAOImpl()
-
-
Method Details
-
findByProfileItemId
public List<OrcidQueue> findByProfileItemId(Context context, UUID profileItemId, Integer limit, Integer offset) throws SQLException Description copied from interface:OrcidQueueDAOGet the orcid queue records by the profileItem id.- Specified by:
findByProfileItemIdin interfaceOrcidQueueDAO- Parameters:
context- DSpace context objectprofileItemId- the profileItem item idlimit- limitoffset- offset- Returns:
- the orcid queue records
- Throws:
SQLException- if an SQL error occurs
-
findByProfileItemAndEntity
public List<OrcidQueue> findByProfileItemAndEntity(Context context, Item profileItem, Item entity) throws SQLException Description copied from interface:OrcidQueueDAOReturns all the orcid queue records with the given profileItem and entity items.- Specified by:
findByProfileItemAndEntityin interfaceOrcidQueueDAO- Parameters:
context- DSpace context objectprofileItem- the profileItem itementity- the entity item- Returns:
- the found orcid queue records
- Throws:
SQLException
-
countByProfileItemId
Description copied from interface:OrcidQueueDAOCount the orcid queue records with the same profileItemId.- Specified by:
countByProfileItemIdin interfaceOrcidQueueDAO- Parameters:
context- DSpace context objectprofileItemId- the profileItem item id- Returns:
- the count result
- Throws:
SQLException- if an SQL error occurs
-
findByProfileItemOrEntity
Description copied from interface:OrcidQueueDAOGet the OrcidQueue records where the given item is the profileItem OR the entity- Specified by:
findByProfileItemOrEntityin interfaceOrcidQueueDAO- 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:OrcidQueueDAOGet the OrcidQueue records where the given item is the entity.- Specified by:
findByEntityin interfaceOrcidQueueDAO- Parameters:
context- DSpace context objectitem- the item to search for- Returns:
- the found OrcidQueue entities
- Throws:
SQLException- if database error
-
findByEntityAndRecordType
public List<OrcidQueue> findByEntityAndRecordType(Context context, Item entity, String type) throws SQLException Description copied from interface:OrcidQueueDAOFind all the OrcidQueue records with the given entity and record type.- Specified by:
findByEntityAndRecordTypein interfaceOrcidQueueDAO- Parameters:
context- DSpace context objectentity- the entity itemtype- the record type- Throws:
SQLException- if database error occurs
-
findByProfileItemAndRecordType
public List<OrcidQueue> findByProfileItemAndRecordType(Context context, Item profileItem, String type) throws SQLException Description copied from interface:OrcidQueueDAOFind all the OrcidQueue records with the given profileItem and record type.- Specified by:
findByProfileItemAndRecordTypein interfaceOrcidQueueDAO- Parameters:
context- DSpace context objectprofileItem- the profileItem itemtype- the record type- Throws:
SQLException- if database error occurs
-
findByAttemptsLessThan
Description copied from interface:OrcidQueueDAOGet all the OrcidQueue records with attempts less than the given attempts.- Specified by:
findByAttemptsLessThanin interfaceOrcidQueueDAO- Parameters:
context- DSpace context objectattempts- the maximum value of attempts- Returns:
- the found OrcidQueue records
- Throws:
SQLException- if database error
-