Package org.dspace.harvest.dao.impl
Class HarvestedCollectionDAOImpl
java.lang.Object
org.dspace.core.AbstractHibernateDAO<HarvestedCollection>
org.dspace.harvest.dao.impl.HarvestedCollectionDAOImpl
- All Implemented Interfaces:
GenericDAO<HarvestedCollection>,HarvestedCollectionDAO
public class HarvestedCollectionDAOImpl
extends AbstractHibernateDAO<HarvestedCollection>
implements HarvestedCollectionDAO
Hibernate implementation of the Database Access Object interface class for the HarvestedCollection object.
This class is responsible for all database calls for the HarvestedCollection object and is autowired by spring
This class should never be accessed directly.
- Author:
- kevinvandevelde at atmire.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintfindByCollection(Context context, Collection collection) findByLastHarvestedAndHarvestTypeAndHarvestStatusesAndHarvestTime(Context context, Instant startTime, int minimalType, int[] statuses, int expirationStatus, Instant expirationTime) findByStatus(Context context, int status) findByStatusAndMinimalTypeOrderByLastHarvestedAsc(Context context, int status, int type, int limit) findByStatusAndMinimalTypeOrderByLastHarvestedDesc(Context context, int status, int type, int limit) protected jakarta.persistence.criteria.CriteriaQuerygetByStatusAndMinimalTypeCriteria(Context context, int status, int type) 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
-
HarvestedCollectionDAOImpl
protected HarvestedCollectionDAOImpl()
-
-
Method Details
-
findByStatusAndMinimalTypeOrderByLastHarvestedDesc
public HarvestedCollection findByStatusAndMinimalTypeOrderByLastHarvestedDesc(Context context, int status, int type, int limit) throws SQLException - Specified by:
findByStatusAndMinimalTypeOrderByLastHarvestedDescin interfaceHarvestedCollectionDAO- Throws:
SQLException
-
findByStatusAndMinimalTypeOrderByLastHarvestedAsc
public HarvestedCollection findByStatusAndMinimalTypeOrderByLastHarvestedAsc(Context context, int status, int type, int limit) throws SQLException - Specified by:
findByStatusAndMinimalTypeOrderByLastHarvestedAscin interfaceHarvestedCollectionDAO- Throws:
SQLException
-
findByStatus
- Specified by:
findByStatusin interfaceHarvestedCollectionDAO- Throws:
SQLException
-
findByCollection
public HarvestedCollection findByCollection(Context context, Collection collection) throws SQLException - Specified by:
findByCollectionin interfaceHarvestedCollectionDAO- Throws:
SQLException
-
findByLastHarvestedAndHarvestTypeAndHarvestStatusesAndHarvestTime
public List<HarvestedCollection> findByLastHarvestedAndHarvestTypeAndHarvestStatusesAndHarvestTime(Context context, Instant startTime, int minimalType, int[] statuses, int expirationStatus, Instant expirationTime) throws SQLException - Specified by:
findByLastHarvestedAndHarvestTypeAndHarvestStatusesAndHarvestTimein interfaceHarvestedCollectionDAO- Throws:
SQLException
-
count
- Specified by:
countin interfaceHarvestedCollectionDAO- Throws:
SQLException
-
getByStatusAndMinimalTypeCriteria
protected jakarta.persistence.criteria.CriteriaQuery getByStatusAndMinimalTypeCriteria(Context context, int status, int type) throws SQLException - Throws:
SQLException
-