Package org.dspace.content.dao.impl
Class BitstreamDAOImpl
- java.lang.Object
-
- org.dspace.core.AbstractHibernateDAO<T>
-
- org.dspace.core.AbstractHibernateDSODAO<Bitstream>
-
- org.dspace.content.dao.impl.BitstreamDAOImpl
-
- All Implemented Interfaces:
BitstreamDAO,DSpaceObjectDAO<Bitstream>,DSpaceObjectLegacySupportDAO<Bitstream>,GenericDAO<Bitstream>
public class BitstreamDAOImpl extends AbstractHibernateDSODAO<Bitstream> implements BitstreamDAO
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 Modifier Constructor Description protectedBitstreamDAOImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LongcountByStoreNumber(Context context, Integer storeNumber)intcountDeleted(Context context)intcountRows(Context context)intcountWithNoPolicy(Context context)Iterator<Bitstream>findAll(Context context, int limit, int offset)List<Bitstream>findBitstreamsWithNoRecentChecksum(Context context)Iterator<Bitstream>findByCollection(Context context, Collection collection)Iterator<Bitstream>findByCommunity(Context context, Community community)Iterator<Bitstream>findByItem(Context context, Item item)Iterator<Bitstream>findByStoreNumber(Context context, Integer storeNumber)List<Bitstream>findDeletedBitstreams(Context context)List<Bitstream>findDuplicateInternalIdentifier(Context context, Bitstream bitstream)List<Bitstream>getNotReferencedBitstreams(Context context)-
Methods inherited from class org.dspace.core.AbstractHibernateDSODAO
addMetadataLeftJoin, addMetadataSortQuery, addMetadataSortQuery, addMetadataValueWhereQuery, findByLegacyId
-
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.content.dao.DSpaceObjectLegacySupportDAO
findByLegacyId
-
Methods inherited from interface org.dspace.core.GenericDAO
create, delete, findAll, findAll, findByID, findByID, findMany, findUnique, save
-
-
-
-
Method Detail
-
findDeletedBitstreams
public List<Bitstream> findDeletedBitstreams(Context context) 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
public List<Bitstream> findBitstreamsWithNoRecentChecksum(Context context) throws SQLException
- 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
public Iterator<Bitstream> findByItem(Context context, Item item) throws SQLException
- Specified by:
findByItemin interfaceBitstreamDAO- Throws:
SQLException
-
findByStoreNumber
public Iterator<Bitstream> findByStoreNumber(Context context, Integer storeNumber) throws SQLException
- Specified by:
findByStoreNumberin interfaceBitstreamDAO- Throws:
SQLException
-
countByStoreNumber
public Long countByStoreNumber(Context context, Integer storeNumber) throws SQLException
- Specified by:
countByStoreNumberin interfaceBitstreamDAO- Throws:
SQLException
-
countRows
public int countRows(Context context) throws SQLException
- Specified by:
countRowsin interfaceBitstreamDAO- Throws:
SQLException
-
countDeleted
public int countDeleted(Context context) throws SQLException
- Specified by:
countDeletedin interfaceBitstreamDAO- Throws:
SQLException
-
countWithNoPolicy
public int countWithNoPolicy(Context context) throws SQLException
- Specified by:
countWithNoPolicyin interfaceBitstreamDAO- Throws:
SQLException
-
getNotReferencedBitstreams
public List<Bitstream> getNotReferencedBitstreams(Context context) throws SQLException
- Specified by:
getNotReferencedBitstreamsin interfaceBitstreamDAO- Throws:
SQLException
-
findAll
public Iterator<Bitstream> findAll(Context context, int limit, int offset) throws SQLException
- Specified by:
findAllin interfaceBitstreamDAO- Throws:
SQLException
-
-