Class GalleryImageDAO
java.lang.Object
fr.paris.lutece.plugins.galleryimage.business.GalleryImageDAO
- All Implemented Interfaces:
IGalleryImageDAO
This class provides Data Access methods for GalleryImage objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(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 tablefindByGallery(int nIdGallery) voidinsert(GalleryImage galleryImage) Insert a new record in the table.load(int nId) Load the data from the tableLoad the data of all the galleryImage objects and returns them as a Listvoidstore(GalleryImage galleryImage) Update the record in the table
-
Constructor Details
-
GalleryImageDAO
public GalleryImageDAO()
-
-
Method Details
-
insert
Insert a new record in the table.- Specified by:
insertin interfaceIGalleryImageDAO- Parameters:
galleryImage- instance of the GalleryImage object to inssert
-
load
Load the data from the table- Specified by:
loadin interfaceIGalleryImageDAO- Returns:
- The instance of the galleryImage
-
findByGallery
- 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
Update the record in the table- Specified by:
storein interfaceIGalleryImageDAO- Parameters:
galleryImage- the reference of the 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
-