/* * Copyright 2000-2013 Enonic AS * http://www.enonic.com/license */ package com.enonic.cms.store.dao; import java.util.List; import com.enonic.cms.framework.blob.BlobRecord; import com.enonic.cms.core.content.binary.BinaryDataEntity; import com.enonic.cms.core.content.binary.BinaryDataKey; public interface BinaryDataDao extends EntityDao<BinaryDataEntity> { List<BinaryDataEntity> findAll(); BinaryDataEntity findByKey( BinaryDataKey key ); long countReferences( BinaryDataEntity binaryData ); BlobRecord getBlob( BinaryDataKey key ); BlobRecord getBlob( BinaryDataEntity entity ); void setBlob( BinaryDataEntity entity, BlobRecord blob ); }