Class ImageDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.galleryimage.business.ImageDAO
-
-
Constructor Summary
Constructors Constructor Description ImageDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nImageId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tablevoidinsert(Image image, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.Imageload(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tablejava.util.List<java.lang.Integer>selectIds(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load list of ids imagejava.util.List<java.lang.Integer>selectIdsByGallery(int nGalleryId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load list of ids image by id galleryjava.util.List<java.lang.Integer>selectIdsLinkedToGallery(int nGalleryId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the list of image identifiers that are linked with a galleryjava.util.List<Image>selectImagesByIds(java.util.List<java.lang.Integer> listIds, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load list images by idsjava.util.List<Image>selectImagesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the image objects and returns them as a Listvoidstore(Image image, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
insert
public void insert(Image image, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
-
load
public Image load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
-
delete
public void delete(int nImageId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table
-
store
public void store(Image image, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
-
selectImagesList
public java.util.List<Image> selectImagesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the image objects and returns them as a List- Specified by:
selectImagesListin interfaceIImageDAO- Parameters:
plugin- the Plugin- Returns:
- The List which contains the data of all the image objects
-
selectIdsLinkedToGallery
public java.util.List<java.lang.Integer> selectIdsLinkedToGallery(int nGalleryId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Description copied from interface:IImageDAOLoad the list of image identifiers that are linked with a gallery- Specified by:
selectIdsLinkedToGalleryin interfaceIImageDAO- Parameters:
nGalleryId- the gallery idplugin- the Plugin- Returns:
- The list of image identifiers that are linked with a gallery
-
selectImagesByIds
public java.util.List<Image> selectImagesByIds(java.util.List<java.lang.Integer> listIds, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IImageDAOLoad list images by ids- Specified by:
selectImagesByIdsin interfaceIImageDAO- Parameters:
listIds- the list idsplugin- the Plugin- Returns:
- The List which contains the data of all the image objects
-
selectIdsByGallery
public java.util.List<java.lang.Integer> selectIdsByGallery(int nGalleryId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Description copied from interface:IImageDAOLoad list of ids image by id gallery- Specified by:
selectIdsByGalleryin interfaceIImageDAO- Parameters:
nGalleryId- the gallery idplugin- the Plugin- Returns:
- The List which contains the data of all the image objects
-
selectIds
public java.util.List<java.lang.Integer> selectIds(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IImageDAOLoad list of ids image
-
-