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.EntityManager
protected 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 SpringMultipartFile
and are dealing with an already-uploadd filecreateBlob
(org.springframework.web.multipart.MultipartFile uploadedFile) void
delete
(StaticAssetStorage assetStorage) save
(StaticAssetStorage assetStorage)
-
Field Details
-
em
protected jakarta.persistence.EntityManager em -
entityConfiguration
-
-
Constructor Details
-
StaticAssetStorageDaoImpl
public StaticAssetStorageDaoImpl()
-
-
Method Details
-
create
- Specified by:
create
in interfaceStaticAssetStorageDao
-
createBlob
public Blob createBlob(org.springframework.web.multipart.MultipartFile uploadedFile) throws IOException - Specified by:
createBlob
in interfaceStaticAssetStorageDao
- Throws:
IOException
-
createBlob
Description copied from interface:StaticAssetStorageDao
Overloaded method forStaticAssetStorageDao.createBlob(MultipartFile)
just in case you do not have the SpringMultipartFile
and are dealing with an already-uploadd file- Specified by:
createBlob
in 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:
readStaticAssetStorageById
in interfaceStaticAssetStorageDao
-
readStaticAssetStorageByStaticAssetId
- Specified by:
readStaticAssetStorageByStaticAssetId
in interfaceStaticAssetStorageDao
-
save
- Specified by:
save
in interfaceStaticAssetStorageDao
-
delete
- Specified by:
delete
in interfaceStaticAssetStorageDao
-