fr.paris.lutece.plugins.phraseanet.business.account
Class AccountHome

java.lang.Object
  extended by fr.paris.lutece.plugins.phraseanet.business.account.AccountHome

public final class AccountHome
extends Object

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


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

Method Detail

create

public static Account create(Account account)
Create an instance of the Account class

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

update

public static Account update(Account account)
Update of the Account data specified in parameter

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

remove

public static void remove(int nAccountId)
Remove the Account whose identifier is specified in parameter

Parameters:
nAccountId - The Account Id

findByPrimaryKey

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

Parameters:
nKey - The Account primary key
Returns:
an instance of Account

findAll

public static List<Account> findAll()
Load the data of all the Account objects and returns them in form of a collection

Returns:
the list which contains the data of all the Account objects


Copyright © 2013 Mairie de Paris. All Rights Reserved.