Package org.dspace.harvest.dao
Interface HarvestedCollectionDAO
- All Superinterfaces:
GenericDAO<HarvestedCollection>
- All Known Implementing Classes:
HarvestedCollectionDAOImpl
Database Access Object interface class for the HarvestedCollection object.
The implementation of this class is responsible for all database calls for the HarvestedCollection object and is
autowired by spring
This class should only be accessed from a single service and should never be exposed outside of the API
- Author:
- kevinvandevelde at atmire.com
-
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)
-
Method Details
-
findByStatusAndMinimalTypeOrderByLastHarvestedDesc
HarvestedCollection findByStatusAndMinimalTypeOrderByLastHarvestedDesc(Context context, int status, int type, int limit) throws SQLException - Throws:
SQLException
-
findByStatusAndMinimalTypeOrderByLastHarvestedAsc
HarvestedCollection findByStatusAndMinimalTypeOrderByLastHarvestedAsc(Context context, int status, int type, int limit) throws SQLException - Throws:
SQLException
-
findByStatus
- Throws:
SQLException
-
findByCollection
- Throws:
SQLException
-
findByLastHarvestedAndHarvestTypeAndHarvestStatusesAndHarvestTime
List<HarvestedCollection> findByLastHarvestedAndHarvestTypeAndHarvestStatusesAndHarvestTime(Context context, Instant startTime, int minimalType, int[] statuses, int expirationStatus, Instant expirationTime) throws SQLException - Throws:
SQLException
-
count
- Throws:
SQLException
-