Class GalleryImageHome
- java.lang.Object
-
- fr.paris.lutece.plugins.galleryimage.business.GalleryImageHome
-
public final class GalleryImageHome extends java.lang.ObjectThis class provides instances management methods (create, find, ...) for GalleryImage objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GalleryImagecreate(GalleryImage galleryImage)Create an instance of the galleryImage classstatic java.util.List<GalleryImage>findAll()Load the data of all the galleryImage objects and returns them in form of a collectionstatic java.util.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 Detail
-
create
public static GalleryImage create(GalleryImage galleryImage)
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
public static GalleryImage update(GalleryImage galleryImage)
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
public static GalleryImage findByPrimaryKey(int nKey)
Returns an instance of a galleryImage whose identifier is specified in parameter- Parameters:
nKey- The galleryImage primary key- Returns:
- an instance of GalleryImage
-
findByGalleryId
public static java.util.List<GalleryImage> findByGalleryId(int nKey)
Load the data of all the galleryImage bu gallery id- Parameters:
nKey- The gallery id- Returns:
- the list of GalleryImage
-
findAll
public static java.util.List<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
-
-