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<java.lang.Integer,java.lang.Object>
fr.paris.lutece.plugins.stock.business.product.ProductImageDAO
- All Implemented Interfaces:
- IProductImageDAO, fr.paris.lutece.util.jpa.IGenericDAO<java.lang.Integer,java.lang.Object>
public class ProductImageDAO
- extends fr.paris.lutece.plugins.stock.commons.dao.AbstractStockDAO<java.lang.Integer,java.lang.Object>
- implements IProductImageDAO
DOCUMENT ME!
- Author:
- abataille
Method Summary |
byte[] |
getImage(java.lang.Integer idProduct)
Gets the image. |
java.lang.String |
getPluginName()
|
byte[] |
getTbImage(java.lang.Integer idProduct)
Gets the thumbnail image. |
void |
remove(java.lang.Integer idProduct)
Removes the image in database. |
void |
saveImage(java.lang.Integer idProduct,
java.io.File fisTbImage,
java.io.File fisImage)
Save image. |
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 java.lang.String getPluginName()
- Specified by:
getPluginName
in class fr.paris.lutece.portal.service.jpa.JPALuteceDAO<java.lang.Integer,java.lang.Object>
saveImage
public void saveImage(java.lang.Integer idProduct,
java.io.File fisTbImage,
java.io.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(java.lang.Integer idProduct)
- Gets the image.
- Specified by:
getImage
in interface IProductImageDAO
- Parameters:
idProduct
- the id product
- Returns:
- the image
getTbImage
public byte[] getTbImage(java.lang.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(java.lang.Integer idProduct)
- Removes the image in database.
- Specified by:
remove
in interface IProductImageDAO
- Specified by:
remove
in interface fr.paris.lutece.util.jpa.IGenericDAO<java.lang.Integer,java.lang.Object>
- Overrides:
remove
in class fr.paris.lutece.util.jpa.JPAGenericDAO<java.lang.Integer,java.lang.Object>
- Parameters:
idProduct
- the id product
Copyright © 2012 Mairie de Paris. All Rights Reserved.