Class ImageDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.wiki.business.ImageDAO
-
-
Constructor Summary
Constructors Constructor Description ImageDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nIdImage, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete the Image ObjectvoiddeleteByTopic(int nTopicId, fr.paris.lutece.portal.service.plugin.Plugin plugin)remove all images associated to a given topicvoidinsert(Image image, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.Imageload(int nIdImage, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the image ObjectList<Image>selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)select all ImagesList<Image>selectByTopicId(int nTopicId, fr.paris.lutece.portal.service.plugin.Plugin plugin)select images for a given topicvoidstore(Image image, fr.paris.lutece.portal.service.plugin.Plugin plugin)update record in the table.voidstoreMetadata(Image image, fr.paris.lutece.portal.service.plugin.Plugin plugin)update image metadata in the table.
-
-
-
Method Detail
-
insert
public void insert(Image image, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
-
store
public void store(Image image, fr.paris.lutece.portal.service.plugin.Plugin plugin)
update record in the table.
-
storeMetadata
public void storeMetadata(Image image, fr.paris.lutece.portal.service.plugin.Plugin plugin)
update image metadata in the table.- Specified by:
storeMetadatain interfaceIImageDAO- Parameters:
image- instance of the Image object to updateplugin- the plugin
-
load
public Image load(int nIdImage, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the image Object
-
delete
public void delete(int nIdImage, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete the Image Object
-
deleteByTopic
public void deleteByTopic(int nTopicId, fr.paris.lutece.portal.service.plugin.Plugin plugin)remove all images associated to a given topic- Specified by:
deleteByTopicin interfaceIImageDAO- Parameters:
nTopicId- The Topic IDplugin- the Plugin
-
selectAll
public List<Image> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
select all Images
-
selectByTopicId
public List<Image> selectByTopicId(int nTopicId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
select images for a given topic- Specified by:
selectByTopicIdin interfaceIImageDAO- Parameters:
nTopicId- The topic IDplugin- The plugin- Returns:
- The list
-
-