Class GalleryImageHome
java.lang.Object
fr.paris.lutece.plugins.galleryimage.business.GalleryImageHome
This class provides instances management methods (create, find, ...) for GalleryImage objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic GalleryImagecreate(GalleryImage galleryImage) Create an instance of the galleryImage classstatic List<GalleryImage>findAll()Load the data of all the galleryImage objects and returns them in form of a collectionstatic List<GalleryImage>findByGalleryId(int nKey) Load the data of all the galleryImage bu gallery idstatic GalleryImagefindByPrimaryKey(int nKey) Returns an instance of a galleryImage whose identifier is specified in parameterstatic voidremove(int nGalleryImageId) Remove the galleryImage whose identifier is specified in parameterstatic voidremoveByGalleryId(int nGalleryId) Remove the galleryImage by id gallerystatic voidremoveByGalleryIdAndIdImage(int nGalleryId, int nImageId) Remove the galleryImage by id gallery and id imagestatic voidremoveByImageId(int nImageId) Remove the galleryImage by id imagestatic GalleryImageupdate(GalleryImage galleryImage) Update of the galleryImage data specified in parameter
-
Method Details
-
create
Create an instance of the galleryImage class- Parameters:
galleryImage- The instance of the GalleryImage which contains the informations to store- Returns:
- The instance of galleryImage which has been created with its primary key.
-
update
Update of the galleryImage data specified in parameter- Parameters:
galleryImage- The instance of the GalleryImage which contains the data to store- Returns:
- The instance of the galleryImage which has been updated
-
remove
public static void remove(int nGalleryImageId) Remove the galleryImage whose identifier is specified in parameter- Parameters:
nGalleryImageId- The galleryImage Id
-
removeByGalleryId
public static void removeByGalleryId(int nGalleryId) Remove the galleryImage by id gallery- Parameters:
nGalleryId- The gallery Id
-
removeByImageId
public static void removeByImageId(int nImageId) Remove the galleryImage by id image- Parameters:
nImageId- The gallery Id
-
removeByGalleryIdAndIdImage
public static void removeByGalleryIdAndIdImage(int nGalleryId, int nImageId) Remove the galleryImage by id gallery and id image- Parameters:
nGalleryId- The gallery Id
-
findByPrimaryKey
Returns an instance of a galleryImage whose identifier is specified in parameter- Parameters:
nKey- The galleryImage primary key- Returns:
- an instance of GalleryImage
-
findByGalleryId
Load the data of all the galleryImage bu gallery id- Parameters:
nKey- The gallery id- Returns:
- the list of GalleryImage
-
findAll
Load the data of all the galleryImage objects and returns them in form of a collection- Returns:
- the list which contains the data of all the galleryImage objects
-