Class GalleryImageDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.galleryimage.business.GalleryImageDAO
-
- All Implemented Interfaces:
IGalleryImageDAO
public final class GalleryImageDAO extends java.lang.Object implements IGalleryImageDAO
This class provides Data Access methods for GalleryImage objects
-
-
Constructor Summary
Constructors Constructor Description GalleryImageDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nGalleryImageId)Delete a record from the tablevoiddeleteByGallery(int nGalleryId)Delete a record by id gallery from the tablevoiddeleteByGalleryAndImage(int nIdGallery, int nIdImage)Delete a record by id gallery id image from the tablevoiddeleteByImage(int nImageId)Delete a record by id image from the tablejava.util.List<GalleryImage>findByGallery(int nIdGallery)voidinsert(GalleryImage galleryImage)Insert a new record in the table.GalleryImageload(int nId)Load the data from the tablejava.util.List<GalleryImage>selectGalleryImagesList()Load the data of all the galleryImage objects and returns them as a Listvoidstore(GalleryImage galleryImage)Update the record in the table
-
-
-
Method Detail
-
insert
public void insert(GalleryImage galleryImage)
Insert a new record in the table.- Specified by:
insertin interfaceIGalleryImageDAO- Parameters:
galleryImage- instance of the GalleryImage object to inssert
-
load
public GalleryImage load(int nId)
Load the data from the table- Specified by:
loadin interfaceIGalleryImageDAO- Returns:
- The instance of the galleryImage
-
findByGallery
public java.util.List<GalleryImage> findByGallery(int nIdGallery)
- Specified by:
findByGalleryin interfaceIGalleryImageDAO- Returns:
- list of GalleryImage
-
delete
public void delete(int nGalleryImageId)
Delete a record from the table- Specified by:
deletein interfaceIGalleryImageDAO- Parameters:
nGalleryImageId- int identifier of the GalleryImage to delete
-
deleteByGallery
public void deleteByGallery(int nGalleryId)
Delete a record by id gallery from the table- Specified by:
deleteByGalleryin interfaceIGalleryImageDAO
-
deleteByImage
public void deleteByImage(int nImageId)
Delete a record by id image from the table- Specified by:
deleteByImagein interfaceIGalleryImageDAO
-
deleteByGalleryAndImage
public void deleteByGalleryAndImage(int nIdGallery, int nIdImage)Delete a record by id gallery id image from the table- Specified by:
deleteByGalleryAndImagein interfaceIGalleryImageDAO
-
store
public void store(GalleryImage galleryImage)
Update the record in the table- Specified by:
storein interfaceIGalleryImageDAO- Parameters:
galleryImage- the reference of the GalleryImage
-
selectGalleryImagesList
public java.util.List<GalleryImage> selectGalleryImagesList()
Load the data of all the galleryImage objects and returns them as a List- Specified by:
selectGalleryImagesListin interfaceIGalleryImageDAO- Returns:
- The List which contains the data of all the galleryImage objects
-
-