@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 StaticAssetStorageDaopublic Blob createBlob(org.springframework.web.multipart.MultipartFile uploadedFile) throws IOException
createBlob in interface StaticAssetStorageDaoIOExceptionpublic Blob createBlob(InputStream uploadedFileInputStream, long fileSize) throws IOException
StaticAssetStorageDaoStaticAssetStorageDao.createBlob(MultipartFile) just in case you do not have the Spring MultipartFile
and are dealing with an already-uploadd filecreateBlob in interface StaticAssetStorageDaouploadedFileInputStream - the input stream of the file the blob should be created fromfileSize - the size of the file which is represented by uploadedFileInputStream, in bytesIOExceptionpublic StaticAssetStorage readStaticAssetStorageById(Long id)
readStaticAssetStorageById in interface StaticAssetStorageDaopublic StaticAssetStorage readStaticAssetStorageByStaticAssetId(Long id)
readStaticAssetStorageByStaticAssetId in interface StaticAssetStorageDaopublic StaticAssetStorage save(StaticAssetStorage assetStorage)
save in interface StaticAssetStorageDaopublic void delete(StaticAssetStorage assetStorage)
delete in interface StaticAssetStorageDaoCopyright © 2022. All rights reserved.