Class GalleryDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.galleryimage.business.GalleryDAO
-
- All Implemented Interfaces:
IGalleryDAO
public final class GalleryDAO extends Object implements IGalleryDAO
This class provides Data Access methods for GalleryDAO objects
-
-
Constructor Summary
Constructors Constructor Description GalleryDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nGalleryId)Delete a record from the tableGalleryinsert(Gallery gallery)Insert a new record in the table.Galleryload(int nId)Load the data from the tableGalleryloadByCodeGallery(String strCodeGallery)Load the data by code gallery from the tableList<Gallery>selectGalleryList()Load the data of all the gallery objects and returns them as a Listvoidstore(Gallery gallery)Update the record in the table
-
-
-
Method Detail
-
insert
public Gallery insert(Gallery gallery)
Insert a new record in the table.- Specified by:
insertin interfaceIGalleryDAO- Parameters:
gallery- instance of the gallery object to insert
-
load
public Gallery load(int nId)
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
public void store(Gallery gallery)
Update the record in the table- Specified by:
storein interfaceIGalleryDAO- Parameters:
gallery- the reference of the gallery
-
selectGalleryList
public List<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
public Gallery loadByCodeGallery(String strCodeGallery)
Load the data by code gallery from the table- Specified by:
loadByCodeGalleryin interfaceIGalleryDAO- Parameters:
strCodeGallery- The code gallery- Returns:
- The instance of the gallery
-
-