Class StaticAssetStorageDaoImpl
java.lang.Object
org.broadleafcommerce.cms.file.dao.StaticAssetStorageDaoImpl
- All Implemented Interfaces:
StaticAssetStorageDao
@Repository("blStaticAssetStorageDao")
public class StaticAssetStorageDaoImpl
extends Object
implements StaticAssetStorageDao
Created by IntelliJ IDEA.
User: jfischer
Date: 9/8/11
Time: 7:31 PM
To change this template use File | Settings | File Templates.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected jakarta.persistence.EntityManagerprotected EntityConfiguration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate()createBlob(InputStream uploadedFileInputStream, long fileSize) Overloaded method forStaticAssetStorageDao.createBlob(MultipartFile)just in case you do not have the SpringMultipartFileand are dealing with an already-uploadd filecreateBlob(org.springframework.web.multipart.MultipartFile uploadedFile) voiddelete(StaticAssetStorage assetStorage) save(StaticAssetStorage assetStorage)
-
Field Details
-
em
protected jakarta.persistence.EntityManager em -
entityConfiguration
-
-
Constructor Details
-
StaticAssetStorageDaoImpl
public StaticAssetStorageDaoImpl()
-
-
Method Details
-
create
- Specified by:
createin interfaceStaticAssetStorageDao
-
createBlob
public Blob createBlob(org.springframework.web.multipart.MultipartFile uploadedFile) throws IOException - Specified by:
createBlobin interfaceStaticAssetStorageDao- Throws:
IOException
-
createBlob
Description copied from interface:StaticAssetStorageDaoOverloaded method forStaticAssetStorageDao.createBlob(MultipartFile)just in case you do not have the SpringMultipartFileand are dealing with an already-uploadd file- Specified by:
createBlobin interfaceStaticAssetStorageDao- Parameters:
uploadedFileInputStream- the input stream of the file the blob should be created fromfileSize- the size of the file which is represented by uploadedFileInputStream, in bytes- Returns:
- Throws:
IOException
-
readStaticAssetStorageById
- Specified by:
readStaticAssetStorageByIdin interfaceStaticAssetStorageDao
-
readStaticAssetStorageByStaticAssetId
- Specified by:
readStaticAssetStorageByStaticAssetIdin interfaceStaticAssetStorageDao
-
save
- Specified by:
savein interfaceStaticAssetStorageDao
-
delete
- Specified by:
deletein interfaceStaticAssetStorageDao
-