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 tableList<Integer>selectIds(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load list of ids imageList<Integer>selectIdsByGallery(int nGalleryId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load list of ids image by id galleryList<Integer>selectIdsLinkedToGallery(int nGalleryId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the list of image identifiers that are linked with a galleryList<Image>selectImagesByIds(List<Integer> listIds, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load list images by idsList<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 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 List<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 List<Image> selectImagesByIds(List<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 List<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
-
-