public final class AccountDAO extends Object implements IAccountDAO
| Constructor and Description |
|---|
AccountDAO() |
| Modifier and Type | Method and Description |
|---|---|
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
|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - The Pluginpublic void insert(Account account, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface IAccountDAOaccount - instance of the Account object to insertplugin - The pluginpublic Account load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface IAccountDAOnId - The identifier of the Accountplugin - The pluginpublic void delete(int nAccountId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface IAccountDAOnAccountId - The identifier of the Accountplugin - The pluginpublic void store(Account account, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface IAccountDAOaccount - The reference of the Accountplugin - The pluginpublic void updateToken(Account account, fr.paris.lutece.portal.service.plugin.Plugin plugin)
account - The reference of the Accountplugin - The pluginpublic List<Account> selectAccountsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAccountsList in interface IAccountDAOplugin - The pluginCopyright © 2015 City of Paris. All rights reserved.