fr.paris.lutece.plugins.wiki.business
Interface IImageDAO

All Known Implementing Classes:
ImageDAO

public interface IImageDAO

IImageDAO


Method Summary
 void delete(int nIdImage, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete the Image Object
 void deleteByTopic(int nTopicId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          remove all images associated to a given topic
 void insert(Image image, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 Image load(int nIdImage, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the image Object
 List<Image> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          select all Images
 List<Image> selectByTopicId(int nTopicId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          select images for a given topic
 void store(Image image, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          update record in the table.
 void storeMetadata(Image image, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          update image metadata in the table.
 

Method Detail

insert

void insert(Image image,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Parameters:
image - instance of the Image object to insert
plugin - the plugin

store

void store(Image image,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
update record in the table.

Parameters:
image - instance of the Image object to update
plugin - the plugin

storeMetadata

void storeMetadata(Image image,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
update image metadata in the table.

Parameters:
image - instance of the Image object to update
plugin - the plugin

load

Image load(int nIdImage,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the image Object

Parameters:
nIdImage - the image id
plugin - the plugin
Returns:
the image Object

delete

void delete(int nIdImage,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete the Image Object

Parameters:
nIdImage - theimage id
plugin - the plugin

selectAll

List<Image> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
select all Images

Parameters:
plugin - the plugin
Returns:
a list of Image

selectByTopicId

List<Image> selectByTopicId(int nTopicId,
                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
select images for a given topic

Parameters:
nTopicId - The topic ID
plugin - The plugin
Returns:
The list

deleteByTopic

void deleteByTopic(int nTopicId,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
remove all images associated to a given topic

Parameters:
nTopicId - The Topic ID
plugin - the Plugin


Copyright © 2014 Mairie de Paris. All Rights Reserved.