public final class AvatarDAO extends Object implements IAvatarDAO
| Constructor and Description |
|---|
AvatarDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(int nAvatarId,
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
|
int |
newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key
|
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
|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - The Pluginpublic void insert(Avatar avatar, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface IAvatarDAOavatar - instance of the Avatar object to insertplugin - the Pluginpublic Avatar load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface IAvatarDAOnKey - The identifier of the avatarplugin - the Pluginpublic void delete(int nAvatarId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface IAvatarDAOnAvatarId - int identifier of the Avatar to deleteplugin - the Pluginpublic void store(Avatar avatar, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface IAvatarDAOavatar - the reference of the Avatarplugin - the Pluginpublic Collection<Avatar> selectAvatarsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAvatarsList in interface IAvatarDAOplugin - the Pluginpublic Avatar selectByHash(String strHash, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectByHash in interface IAvatarDAOstrHash - The hashplugin - The pluginCopyright © 2019 City of Paris. All rights reserved.