All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.dspace.content.dao.BitstreamDAO Maven / Gradle / Ivy

The newest version!
/**
 * The contents of this file are subject to the license and copyright
 * detailed in the LICENSE and NOTICE files at the root of the source
 * tree and available online at
 *
 * http://www.dspace.org/license/
 */
package org.dspace.content.dao;

import java.sql.SQLException;
import java.util.Iterator;
import java.util.List;

import org.dspace.content.Bitstream;
import org.dspace.content.Collection;
import org.dspace.content.Community;
import org.dspace.content.Item;
import org.dspace.core.Context;

/**
 * Database Access Object interface class for the Bitstream object.
 * The implementation of this class is responsible for all database calls for the Bitstream 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
 */
public interface BitstreamDAO extends DSpaceObjectLegacySupportDAO {

    public Iterator findAll(Context context, int limit, int offset) throws SQLException;

    public List findDeletedBitstreams(Context context, int limit, int offset) throws SQLException;

    public List findDuplicateInternalIdentifier(Context context, Bitstream bitstream) throws SQLException;

    public List findBitstreamsWithNoRecentChecksum(Context context) throws SQLException;

    public Iterator findByCommunity(Context context, Community community) throws SQLException;

    public Iterator findByCollection(Context context, Collection collection) throws SQLException;

    public Iterator findByItem(Context context, Item item) throws SQLException;

    public Iterator findByStoreNumber(Context context, Integer storeNumber) throws SQLException;

    public Long countByStoreNumber(Context context, Integer storeNumber) throws SQLException;

    int countRows(Context context) throws SQLException;

    int countDeleted(Context context) throws SQLException;

    int countWithNoPolicy(Context context) throws SQLException;

    List getNotReferencedBitstreams(Context context) throws SQLException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy