Class GalleryDAO
java.lang.Object
fr.paris.lutece.plugins.galleryimage.business.GalleryDAO
- All Implemented Interfaces:
IGalleryDAO
This class provides Data Access methods for GalleryDAO objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nGalleryId) Delete a record from the tableInsert a new record in the table.load(int nId) Load the data from the tableloadByCodeGallery(String strCodeGallery) Load the data by code gallery from the tableLoad the data of all the gallery objects and returns them as a ListvoidUpdate the record in the table
-
Constructor Details
-
GalleryDAO
public GalleryDAO()
-
-
Method Details
-
insert
Insert a new record in the table.- Specified by:
insertin interfaceIGalleryDAO- Parameters:
gallery- instance of the gallery object to insert
-
load
Load the data from the table- Specified by:
loadin interfaceIGalleryDAO- Returns:
- The instance of the gallery
-
delete
public void delete(int nGalleryId) Delete a record from the table- Specified by:
deletein interfaceIGalleryDAO- Parameters:
nGalleryId- int identifier of the Gallery to delete
-
store
Update the record in the table- Specified by:
storein interfaceIGalleryDAO- Parameters:
gallery- the reference of the gallery
-
selectGalleryList
Load the data of all the gallery objects and returns them as a List- Specified by:
selectGalleryListin interfaceIGalleryDAO- Returns:
- The List which contains the data of all the gallery objects
-
loadByCodeGallery
Load the data by code gallery from the table- Specified by:
loadByCodeGalleryin interfaceIGalleryDAO- Parameters:
strCodeGallery- The code gallery- Returns:
- The instance of the gallery
-