public class ProductImageDAO extends fr.paris.lutece.plugins.stock.commons.dao.AbstractStockDAO<Integer,Object> implements IProductImageDAO
Constructor and Description |
---|
ProductImageDAO() |
Modifier and Type | Method and Description |
---|---|
byte[] |
getImage(Integer idProduct)
Gets the image.
|
String |
getPluginName() |
byte[] |
getRealImage(Integer idProduct)
Gets the real image.
|
byte[] |
getTbImage(Integer idProduct)
Gets the thumbnail image.
|
void |
remove(Integer idProduct)
Removes the image in database.
|
void |
saveImage(Integer idProduct,
File fisTbImage,
File fisImage,
File realImage)
Save image.
|
getEntityManagerFactory
public String getPluginName()
public void saveImage(Integer idProduct, File fisTbImage, File fisImage, File realImage)
IProductImageDAO
saveImage
in interface IProductImageDAO
idProduct
- the id productfisTbImage
- the fis tb imagefisImage
- the fis imagepublic byte[] getImage(Integer idProduct)
getImage
in interface IProductImageDAO
idProduct
- the id productpublic byte[] getTbImage(Integer idProduct)
getTbImage
in interface IProductImageDAO
idProduct
- the id productpublic byte[] getRealImage(Integer idProduct)
IProductImageDAO
getRealImage
in interface IProductImageDAO
idProduct
- the id productpublic void remove(Integer idProduct)
Copyright © 2021 City of Paris. All rights reserved.