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 IAccountDAO
account
- instance of the Account object to insertplugin
- The pluginpublic Account load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface IAccountDAO
nId
- The identifier of the Accountplugin
- The pluginpublic void delete(int nAccountId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface IAccountDAO
nAccountId
- The identifier of the Accountplugin
- The pluginpublic void store(Account account, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface IAccountDAO
account
- 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 IAccountDAO
plugin
- The pluginCopyright © 2018 City of Paris. All rights reserved.