fr.paris.lutece.plugins.stock.business.product
Class ProductImageDAO
java.lang.Object
fr.paris.lutece.util.jpa.JPAGenericDAO<K,E>
fr.paris.lutece.portal.service.jpa.JPALuteceDAO<K,E>
fr.paris.lutece.plugins.stock.commons.dao.AbstractStockDAO<Integer,Object>
fr.paris.lutece.plugins.stock.business.product.ProductImageDAO
- All Implemented Interfaces:
- IProductImageDAO, fr.paris.lutece.util.jpa.IGenericDAO<Integer,Object>
public class ProductImageDAO
- extends fr.paris.lutece.plugins.stock.commons.dao.AbstractStockDAO<Integer,Object>
- implements IProductImageDAO
DOCUMENT ME!
- Author:
- abataille
| Methods inherited from class fr.paris.lutece.plugins.stock.commons.dao.AbstractStockDAO |
addRestriction, createPagedQuery, findAll |
| Methods inherited from class fr.paris.lutece.portal.service.jpa.JPALuteceDAO |
createNativeQuery, getEntityManagerFactory |
| Methods inherited from class fr.paris.lutece.util.jpa.JPAGenericDAO |
create, detach, findAll, findById, flush, getEM, getEntityClass, getEntityClassName, update |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProductImageDAO
public ProductImageDAO()
getPluginName
public String getPluginName()
- Specified by:
getPluginName in class fr.paris.lutece.portal.service.jpa.JPALuteceDAO<Integer,Object>
saveImage
public void saveImage(Integer idProduct,
File fisTbImage,
File fisImage)
- Description copied from interface:
IProductImageDAO
- Save image.
- Specified by:
saveImage in interface IProductImageDAO
- Parameters:
idProduct - the id productfisTbImage - the fis tb imagefisImage - the fis image
getImage
public byte[] getImage(Integer idProduct)
- Gets the image.
- Specified by:
getImage in interface IProductImageDAO
- Parameters:
idProduct - the id product
- Returns:
- the image
getTbImage
public byte[] getTbImage(Integer idProduct)
- Gets the thumbnail image.
- Specified by:
getTbImage in interface IProductImageDAO
- Parameters:
idProduct - the id product
- Returns:
- the tb image
remove
public void remove(Integer idProduct)
- Removes the image in database.
- Specified by:
remove in interface IProductImageDAO- Specified by:
remove in interface fr.paris.lutece.util.jpa.IGenericDAO<Integer,Object>- Overrides:
remove in class fr.paris.lutece.util.jpa.JPAGenericDAO<Integer,Object>
- Parameters:
idProduct - the id product
Copyright © 2013 Mairie de Paris. All Rights Reserved.