fr.paris.lutece.plugins.avatarserver.business
Interface IAvatarDAO

All Known Implementing Classes:
AvatarDAO

public interface IAvatarDAO

IAvatarDAO Interface


Method Summary
 void delete(int nIdAvatar, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 void insert(Avatar avatar, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 Avatar load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data from the table
 Collection<Avatar> selectAvatarsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the avatar objects and returns them as a collection
 Avatar selectByHash(String strHash, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find avatar by its hash
 void store(Avatar avatar, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the record in the table
 

Method Detail

insert

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

Parameters:
avatar - instance of the Avatar object to insert
plugin - the Plugin

store

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

Parameters:
avatar - the reference of the Avatar
plugin - the Plugin

delete

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

Parameters:
nIdAvatar - int identifier of the Avatar to delete
plugin - the Plugin

load

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

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

selectAvatarsList

Collection<Avatar> selectAvatarsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the avatar objects and returns them as a collection

Parameters:
plugin - the Plugin
Returns:
The collection which contains the data of all the avatar objects

selectByHash

Avatar selectByHash(String strHash,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find avatar by its hash

Parameters:
strHash - The hash
plugin - The plugin
Returns:
The avatar


Copyright © 2014 Mairie de Paris. All Rights Reserved.