Package org.dspace.orcid.dao.impl
Class OrcidQueueDAOImpl
- java.lang.Object
-
- org.dspace.core.AbstractHibernateDAO<OrcidQueue>
-
- org.dspace.orcid.dao.impl.OrcidQueueDAOImpl
-
- All Implemented Interfaces:
GenericDAO<OrcidQueue>,OrcidQueueDAO
public class OrcidQueueDAOImpl extends AbstractHibernateDAO<OrcidQueue> implements OrcidQueueDAO
Implementation ofOrcidQueueDAO.- Author:
- Luca Giamminonni (luca.giamminonni at 4science.it)
-
-
Constructor Summary
Constructors Constructor Description OrcidQueueDAOImpl()
-
Method Summary
All Methods Instance Methods Concrete 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 class org.dspace.core.AbstractHibernateDAO
count, count, countLong, create, createQuery, delete, executeCriteriaQuery, findAll, findAll, findByID, findByID, findByX, findMany, findMany, findUnique, getCriteriaBuilder, getCriteriaQuery, getHibernateSession, iterate, list, list, list, list, save, singleResult, singleResult, uniqueResult, uniqueResult
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.dspace.core.GenericDAO
create, delete, findAll, findAll, findByID, findByID, findMany, findUnique, save
-
-
-
-
Method Detail
-
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
public long countByProfileItemId(Context context, UUID profileItemId) throws SQLException
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
public List<OrcidQueue> findByProfileItemOrEntity(Context context, Item item) throws SQLException
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
-
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
public List<OrcidQueue> findByAttemptsLessThan(Context context, int attempts) throws SQLException
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
-
-