fr.paris.lutece.plugins.phraseanet.business.media
Interface IMediaHandlerDAO

All Known Implementing Classes:
MediaHandlerDAO

public interface IMediaHandlerDAO

IMediaHandlerDAO Interface


Method Summary
 boolean checkMediaHandlerByAccount(int nIdAccount, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Check if some Account is used by Media
 void delete(int nIdMediaHandler, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 void insert(MediaHandler mediaHandler, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 MediaHandler load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data from the table
 List<MediaHandler> selectMediaHandlersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the mediaHandler objects and returns them as a List
 void store(MediaHandler mediaHandler, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the record in the table
 

Method Detail

insert

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

Parameters:
mediaHandler - instance of the MediaHandler object to inssert
plugin - the Plugin

store

void store(MediaHandler mediaHandler,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table

Parameters:
mediaHandler - the reference of the MediaHandler
plugin - the Plugin

delete

void delete(int nIdMediaHandler,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table

Parameters:
nIdMediaHandler - int identifier of the MediaHandler to delete
plugin - the Plugin

load

MediaHandler load(int nKey,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table

Parameters:
nKey - The identifier of the mediaHandler
plugin - the Plugin
Returns:
The instance of the mediaHandler

selectMediaHandlersList

List<MediaHandler> selectMediaHandlersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the mediaHandler objects and returns them as a List

Parameters:
plugin - the Plugin
Returns:
The List which contains the data of all the mediaHandler objects

checkMediaHandlerByAccount

boolean checkMediaHandlerByAccount(int nIdAccount,
                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if some Account is used by Media

Parameters:
nIdAccount - the id account to check
plugin - the Plugin
Returns:
true if the account is used


Copyright © 2013 Mairie de Paris. All Rights Reserved.