Package org.dspace.qaevent.dao.impl
Class QAEventsDAOImpl
- All Implemented Interfaces:
GenericDAO<QAEventProcessed>,QAEventsDAO
Implementation of
QAEventsDAO that store processed events using an
SQL DBMS.- Author:
- Andrea Bollini (andrea.bollini at 4science.it)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns all the stored QAEventProcessed entities.findByEPerson(Context context, EPerson ePerson) Returns the stored QAEventProcessed entities by eperson.findByItem(Context context, Item item) Returns the stored QAEventProcessed entities by item.booleanisEventStored(Context context, String checksum) Check if an event with the given checksum is already stored.searchByEventId(Context context, String eventId, Integer start, Integer size) Search a page of quality assurance broker events by notification ID.booleanstoreEvent(Context context, String checksum, EPerson eperson, Item item) Store an event related to the given checksum.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
-
QAEventsDAOImpl
public QAEventsDAOImpl()
-
-
Method Details
-
findAll
Description copied from interface:QAEventsDAOReturns all the stored QAEventProcessed entities.- Specified by:
findAllin interfaceQAEventsDAO- Parameters:
context- the DSpace context- Returns:
- the found entities
- Throws:
SQLException- if an SQL error occurs
-
storeEvent
Description copied from interface:QAEventsDAOStore an event related to the given checksum.- Specified by:
storeEventin interfaceQAEventsDAO- Parameters:
context- the DSpace contextchecksum- the checksum of the event to be storeeperson- the eperson who handle the eventitem- the item related to the event- Returns:
- true if the creation is completed with success, false otherwise
-
isEventStored
Description copied from interface:QAEventsDAOCheck if an event with the given checksum is already stored.- Specified by:
isEventStoredin interfaceQAEventsDAO- Parameters:
context- the DSpace contextchecksum- the checksum to search for- Returns:
- true if the given checksum is related to an already stored event, false otherwise
- Throws:
SQLException- if an SQL error occurs
-
searchByEventId
public List<QAEventProcessed> searchByEventId(Context context, String eventId, Integer start, Integer size) throws SQLException Description copied from interface:QAEventsDAOSearch a page of quality assurance broker events by notification ID.- Specified by:
searchByEventIdin interfaceQAEventsDAO- Parameters:
context- the DSpace contexteventId- the event idstart- the start indexsize- the size to be applied- Returns:
- the processed events
- Throws:
SQLException- if an SQL error occurs
-
findByItem
Description copied from interface:QAEventsDAOReturns the stored QAEventProcessed entities by item.- Specified by:
findByItemin interfaceQAEventsDAO- Parameters:
context- the DSpace contextitem- the item to search for- Returns:
- the found entities
- Throws:
SQLException- if an SQL error occurs
-
findByEPerson
Description copied from interface:QAEventsDAOReturns the stored QAEventProcessed entities by eperson.- Specified by:
findByEPersonin interfaceQAEventsDAO- Parameters:
context- the DSpace contextePerson- the ePerson to search for- Returns:
- the found entities
- Throws:
SQLException- if an SQL error occurs
-