Package org.dspace.content.dao.impl
Class BitstreamDAOImpl
- All Implemented Interfaces:
BitstreamDAO,DSpaceObjectDAO<Bitstream>,DSpaceObjectLegacySupportDAO<Bitstream>,GenericDAO<Bitstream>
Hibernate implementation of the Database Access Object interface class for the Bitstream object.
This class is responsible for all database calls for the Bitstream 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 TypeMethodDescriptioncountByStoreNumber(Context context, Integer storeNumber) intcountDeleted(Context context) intintcountWithNoPolicy(Context context) findByCollection(Context context, Collection collection) findByCommunity(Context context, Community community) findByItem(Context context, Item item) findByStoreNumber(Context context, Integer storeNumber) findDeletedBitstreams(Context context, int limit, int offset) findDuplicateInternalIdentifier(Context context, Bitstream bitstream) getNotReferencedBitstreams(Context context) Methods inherited from class org.dspace.core.AbstractHibernateDSODAO
addMetadataLeftJoin, addMetadataSortQuery, addMetadataSortQuery, addMetadataValueWhereQuery, findByLegacyIdMethods 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, uniqueResultMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.dspace.content.dao.DSpaceObjectLegacySupportDAO
findByLegacyId
-
Constructor Details
-
BitstreamDAOImpl
protected BitstreamDAOImpl()
-
-
Method Details
-
findDeletedBitstreams
public List<Bitstream> findDeletedBitstreams(Context context, int limit, int offset) throws SQLException - Specified by:
findDeletedBitstreamsin interfaceBitstreamDAO- Throws:
SQLException
-
findDuplicateInternalIdentifier
public List<Bitstream> findDuplicateInternalIdentifier(Context context, Bitstream bitstream) throws SQLException - Specified by:
findDuplicateInternalIdentifierin interfaceBitstreamDAO- Throws:
SQLException
-
findBitstreamsWithNoRecentChecksum
- Specified by:
findBitstreamsWithNoRecentChecksumin interfaceBitstreamDAO- Throws:
SQLException
-
findByCommunity
public Iterator<Bitstream> findByCommunity(Context context, Community community) throws SQLException - Specified by:
findByCommunityin interfaceBitstreamDAO- Throws:
SQLException
-
findByCollection
public Iterator<Bitstream> findByCollection(Context context, Collection collection) throws SQLException - Specified by:
findByCollectionin interfaceBitstreamDAO- Throws:
SQLException
-
findByItem
- Specified by:
findByItemin interfaceBitstreamDAO- Throws:
SQLException
-
findByStoreNumber
public Iterator<Bitstream> findByStoreNumber(Context context, Integer storeNumber) throws SQLException - Specified by:
findByStoreNumberin interfaceBitstreamDAO- Throws:
SQLException
-
countByStoreNumber
- Specified by:
countByStoreNumberin interfaceBitstreamDAO- Throws:
SQLException
-
countRows
- Specified by:
countRowsin interfaceBitstreamDAO- Throws:
SQLException
-
countDeleted
- Specified by:
countDeletedin interfaceBitstreamDAO- Throws:
SQLException
-
countWithNoPolicy
- Specified by:
countWithNoPolicyin interfaceBitstreamDAO- Throws:
SQLException
-
getNotReferencedBitstreams
- Specified by:
getNotReferencedBitstreamsin interfaceBitstreamDAO- Throws:
SQLException
-
findAll
- Specified by:
findAllin interfaceBitstreamDAO- Throws:
SQLException
-