@Repository(value="blStaticAssetStorageDao") public class StaticAssetStorageDaoImpl extends Object implements StaticAssetStorageDao
Modifier and Type | Field and Description |
---|---|
protected javax.persistence.EntityManager |
em |
protected EntityConfiguration |
entityConfiguration |
Constructor and Description |
---|
StaticAssetStorageDaoImpl() |
Modifier and Type | Method and Description |
---|---|
StaticAssetStorage |
create() |
Blob |
createBlob(InputStream uploadedFileInputStream,
long fileSize)
Overloaded method for
StaticAssetStorageDao.createBlob(MultipartFile) just in case you do not have the Spring MultipartFile
and are dealing with an already-uploadd file |
Blob |
createBlob(org.springframework.web.multipart.MultipartFile uploadedFile) |
void |
delete(StaticAssetStorage assetStorage) |
StaticAssetStorage |
readStaticAssetStorageById(Long id) |
StaticAssetStorage |
readStaticAssetStorageByStaticAssetId(Long id) |
StaticAssetStorage |
save(StaticAssetStorage assetStorage) |
protected javax.persistence.EntityManager em
protected EntityConfiguration entityConfiguration
public StaticAssetStorage create()
create
in interface StaticAssetStorageDao
public Blob createBlob(org.springframework.web.multipart.MultipartFile uploadedFile) throws IOException
createBlob
in interface StaticAssetStorageDao
IOException
public Blob createBlob(InputStream uploadedFileInputStream, long fileSize) throws IOException
StaticAssetStorageDao
StaticAssetStorageDao.createBlob(MultipartFile)
just in case you do not have the Spring MultipartFile
and are dealing with an already-uploadd filecreateBlob
in interface StaticAssetStorageDao
uploadedFileInputStream
- the input stream of the file the blob should be created fromfileSize
- the size of the file which is represented by uploadedFileInputStream, in bytesIOException
public StaticAssetStorage readStaticAssetStorageById(Long id)
readStaticAssetStorageById
in interface StaticAssetStorageDao
public StaticAssetStorage readStaticAssetStorageByStaticAssetId(Long id)
readStaticAssetStorageByStaticAssetId
in interface StaticAssetStorageDao
public StaticAssetStorage save(StaticAssetStorage assetStorage)
save
in interface StaticAssetStorageDao
public void delete(StaticAssetStorage assetStorage)
delete
in interface StaticAssetStorageDao
Copyright © 2022. All rights reserved.