|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.phraseanet.business.account.AccountDAO
public final class AccountDAO
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 |
---|
public AccountDAO()
Method Detail |
---|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The Plugin
public 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 plugin
public 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 plugin
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |