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 Modifier Constructor Description protectedHarvestedCollectionDAOImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcount(Context context)HarvestedCollectionfindByCollection(Context context, Collection collection)List<HarvestedCollection>findByLastHarvestedAndHarvestTypeAndHarvestStatusesAndHarvestTime(Context context, Date startTime, int minimalType, int[] statuses, int expirationStatus, Date expirationTime)List<HarvestedCollection>findByStatus(Context context, int status)HarvestedCollectionfindByStatusAndMinimalTypeOrderByLastHarvestedAsc(Context context, int status, int type, int limit)HarvestedCollectionfindByStatusAndMinimalTypeOrderByLastHarvestedDesc(Context context, int status, int type, int limit)protected javax.persistence.criteria.CriteriaQuerygetByStatusAndMinimalTypeCriteria(Context context, int status, int type)-
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
-
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
public List<HarvestedCollection> findByStatus(Context context, int status) throws SQLException
- 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, Date startTime, int minimalType, int[] statuses, int expirationStatus, Date expirationTime) throws SQLException
- Specified by:
findByLastHarvestedAndHarvestTypeAndHarvestStatusesAndHarvestTimein interfaceHarvestedCollectionDAO- Throws:
SQLException
-
count
public int count(Context context) throws SQLException
- Specified by:
countin interfaceHarvestedCollectionDAO- Throws:
SQLException
-
getByStatusAndMinimalTypeCriteria
protected javax.persistence.criteria.CriteriaQuery getByStatusAndMinimalTypeCriteria(Context context, int status, int type) throws SQLException
- Throws:
SQLException
-
-