Interface IImageDAO
- All Known Implementing Classes:
ImageDAO
public interface IImageDAO
IImageDAO Interface
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nIdImage, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablevoidInsert a new record in the table.load(int nKey, 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
-
Method Details
-
insert
Insert a new record in the table.- Parameters:
image- instance of the Image object to inssertplugin- the Plugin
-
store
Update the record in the table- Parameters:
image- the reference of the Imageplugin- the Plugin
-
delete
void delete(int nIdImage, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table- Parameters:
nIdImage- int identifier of the Image to deleteplugin- the Plugin
-
load
Load the data from the table- Parameters:
strId- The identifier of the imageplugin- the Plugin- Returns:
- The instance of the image
-
selectImagesList
Load the data of all the image objects and returns them as a List- Parameters:
plugin- the PlugindisplayType- the displayType ( Value by null if you want all the images)- Returns:
- The List which contains the data of all the image objects
-
selectIdsLinkedToGallery
List<Integer> selectIdsLinkedToGallery(int nGalleryId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the list of image identifiers that are linked with a gallery- Parameters:
nGalleryId- the gallery idplugin- the Plugin- Returns:
- The list of image identifiers that are linked with a gallery
-
selectIdsByGallery
List<Integer> selectIdsByGallery(int nGalleryId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load list of ids image by id gallery- Parameters:
nGalleryId- the gallery idplugin- the Plugin- Returns:
- The List which contains the data of all the image objects
-
selectIds
Load list of ids image- Parameters:
nGalleryId- the gallery idplugin- the Plugin- Returns:
- The List which contains the data of all the image objects
-
selectImagesByIds
List<Image> selectImagesByIds(List<Integer> listIds, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load list images by ids- Parameters:
listIds- the list idsplugin- the Plugin- Returns:
- The List which contains the data of all the image objects
-