Interface IGalleryImageDAO
- All Known Implementing Classes:
GalleryImageDAO
public interface IGalleryImageDAO
IGalleryImageDAO Interface
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nIdGalleryImage) Delete a record from the tablevoiddeleteByGallery(int nIdGallery) 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 nIdImage) Delete a record by id image from the tablefindByGallery(int nIdGallery) voidinsert(GalleryImage galleryImage) Insert a new record in the table.load(int nKey) 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
-
Method Details
-
insert
Insert a new record in the table.- Parameters:
galleryImage- instance of the GalleryImage object to inssert
-
store
Update the record in the table- Parameters:
galleryImage- the reference of the GalleryImage
-
delete
void delete(int nIdGalleryImage) Delete a record from the table- Parameters:
nIdGalleryImage- int identifier of the GalleryImage to delete
-
deleteByGallery
void deleteByGallery(int nIdGallery) Delete a record by id gallery from the table- Parameters:
nIdGalleryImage- int identifier of the GalleryImage to delete
-
deleteByImage
void deleteByImage(int nIdImage) Delete a record by id image from the table- Parameters:
nIdGalleryImage- int identifier of the GalleryImage to delete
-
deleteByGalleryAndImage
void deleteByGalleryAndImage(int nIdGallery, int nIdImage) Delete a record by id gallery id image from the table- Parameters:
nIdGallery-nIdImage-
-
load
Load the data from the table- Parameters:
strId- The identifier of the galleryImage- Returns:
- The instance of the galleryImage
-
findByGallery
- Parameters:
nIdGallery-- Returns:
- list of GalleryImage
-
selectGalleryImagesList
List<GalleryImage> selectGalleryImagesList()Load the data of all the galleryImage objects and returns them as a List- Returns:
- The List which contains the data of all the galleryImage objects
-