Class ImageDAO
java.lang.Object
fr.paris.lutece.plugins.galleryimage.business.ImageDAO
- All Implemented Interfaces:
IImageDAO
This class provides Data Access methods for Image objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nImageId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablevoidInsert a new record in the table.load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableselectIds(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load list of ids imageselectIdsByGallery(int nGalleryId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load list of ids image by id galleryselectIdsLinkedToGallery(int nGalleryId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the list of image identifiers that are linked with a galleryselectImagesByIds(List<Integer> listIds, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load list images by idsselectImagesList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the image objects and returns them as a ListvoidUpdate the record in the table
-
Constructor Details
-
ImageDAO
public ImageDAO()
-
-
Method Details
-
insert
Insert a new record in the table. -
load
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
Update the record in the table -
selectImagesList
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
-
selectIds
Description copied from interface:IImageDAOLoad list of ids image
-