fr.paris.lutece.plugins.avatarserver.business
Class AvatarHome

java.lang.Object
  extended by fr.paris.lutece.plugins.avatarserver.business.AvatarHome

public final class AvatarHome
extends Object

This class provides instances management methods (create, find, ...) for Avatar objects


Method Summary
static Avatar create(Avatar avatar)
          Create an instance of the avatar class
static Avatar findByHash(String strHash)
          Returns an instance of a avatar whose identifier is specified in parameter
static Avatar findByPrimaryKey(int nKey)
          Returns an instance of a avatar whose identifier is specified in parameter
static Collection<Avatar> getAvatarsList()
          Load the data of all the avatar objects and returns them in form of a collection
static void remove(int nAvatarId)
          Remove the avatar whose identifier is specified in parameter
static Avatar update(Avatar avatar)
          Update of the avatar which is specified in parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

findByHash

public static Avatar findByHash(String strHash)
Returns an instance of a avatar whose identifier is specified in parameter

Parameters:
strHash - The avatar hash created with the email address
Returns:
an instance of Avatar

create

public static Avatar create(Avatar avatar)
Create an instance of the avatar class

Parameters:
avatar - The instance of the Avatar which contains the informations to store
Returns:
The instance of avatar which has been created with its primary key.

update

public static Avatar update(Avatar avatar)
Update of the avatar which is specified in parameter

Parameters:
avatar - The instance of the Avatar which contains the data to store
Returns:
The instance of the avatar which has been updated

remove

public static void remove(int nAvatarId)
Remove the avatar whose identifier is specified in parameter

Parameters:
nAvatarId - The avatar Id

findByPrimaryKey

public static Avatar findByPrimaryKey(int nKey)
Returns an instance of a avatar whose identifier is specified in parameter

Parameters:
nKey - The avatar primary key
Returns:
an instance of Avatar

getAvatarsList

public static Collection<Avatar> getAvatarsList()
Load the data of all the avatar objects and returns them in form of a collection

Returns:
the collection which contains the data of all the avatar objects


Copyright © 2014 Mairie de Paris. All Rights Reserved.