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

java.lang.Object
  extended by fr.paris.lutece.plugins.phraseanet.business.account.AccountDAO
All Implemented Interfaces:
IAccountDAO

public final class AccountDAO
extends Object
implements IAccountDAO

This class provides Data Access methods for Account objects


Constructor Summary
AccountDAO()
           
 
Method Summary
 void delete(int nAccountId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 void insert(Account account, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 Account load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of the Account from the table
 int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Generates a new primary key
 List<Account> selectAccountsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the Accounts and returns them as a List
 void store(Account account, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the account record in the table
 void updateToken(Account account, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the token record in the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccountDAO

public AccountDAO()
Method Detail

newPrimaryKey

public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key

Parameters:
plugin - The Plugin
Returns:
The new primary key

insert

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

Specified by:
insert in interface IAccountDAO
Parameters:
account - instance of the Account object to insert
plugin - The plugin

load

public Account load(int nId,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the Account from the table

Specified by:
load in interface IAccountDAO
Parameters:
nId - The identifier of the Account
plugin - The plugin
Returns:
the instance of the Account

delete

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

Specified by:
delete in interface IAccountDAO
Parameters:
nAccountId - The identifier of the Account
plugin - The plugin

store

public void store(Account account,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the account record in the table

Specified by:
store in interface IAccountDAO
Parameters:
account - The reference of the Account
plugin - The plugin

updateToken

public void updateToken(Account account,
                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the token record in the table

Parameters:
account - The reference of the Account
plugin - The plugin

selectAccountsList

public List<Account> selectAccountsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the Accounts and returns them as a List

Specified by:
selectAccountsList in interface IAccountDAO
Parameters:
plugin - The plugin
Returns:
The List which contains the data of all the Accounts


Copyright © 2013 Mairie de Paris. All Rights Reserved.