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.
|
addRestriction, createPagedQuery, findAllcreateNativeQuery, getEntityManagerFactorypublic String getPluginName()
public void saveImage(Integer idProduct, File fisTbImage, File fisImage, File realImage)
IProductImageDAOsaveImage in interface IProductImageDAOidProduct - the id productfisTbImage - the fis tb imagefisImage - the fis imagepublic byte[] getImage(Integer idProduct)
getImage in interface IProductImageDAOidProduct - the id productpublic byte[] getTbImage(Integer idProduct)
getTbImage in interface IProductImageDAOidProduct - the id productpublic byte[] getRealImage(Integer idProduct)
IProductImageDAOgetRealImage in interface IProductImageDAOidProduct - the id productpublic void remove(Integer idProduct)
Copyright © 2019 City of Paris. All rights reserved.