com.funambol.email.inboxlistener.console
Class MenuDAO

java.lang.Object
  extended bycom.funambol.email.inboxlistener.console.MenuDAO

public class MenuDAO
extends java.lang.Object

Contains methods to access to the DB tables


Constructor Summary
MenuDAO(DBAccount _dba)
           
 
Method Summary
 void deleteAccount(java.lang.String username)
          Gets Accounts returns a list that contains MailAccount
 MailboxAccount getAccount(java.lang.String username)
          Get Account; returns the MailAccount Object with all the info about the user
 java.util.List getAccounts()
          Gets Accounts returns a list that contains MailAccount
 void insertAccount(MailboxAccount account)
          Gets Accounts returns a list that contains MailAccount
 int updateActivation(java.lang.String username, java.lang.String activation)
          update the password of the Account
 int updateMaxEmailNumber(java.lang.String username, int maxemailnumber)
          update the password of the Account
 int updatePassword(java.lang.String username, java.lang.String password)
          update the password of the Account
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MenuDAO

public MenuDAO(DBAccount _dba)
Method Detail

getAccounts

public java.util.List getAccounts()
                           throws InboxListenerException
Gets Accounts returns a list that contains MailAccount

Throws:
InboxListenerException

getAccount

public MailboxAccount getAccount(java.lang.String username)
                          throws InboxListenerException
Get Account; returns the MailAccount Object with all the info about the user

Parameters:
username - String
Returns:
account info MailboxAccount
Throws:
InboxListenerException

insertAccount

public void insertAccount(MailboxAccount account)
                   throws InboxListenerException
Gets Accounts returns a list that contains MailAccount

Throws:
InboxListenerException

updatePassword

public int updatePassword(java.lang.String username,
                          java.lang.String password)
                   throws InboxListenerException
update the password of the Account

Parameters:
username - String
Throws:
InboxListenerException

updateActivation

public int updateActivation(java.lang.String username,
                            java.lang.String activation)
                     throws InboxListenerException
update the password of the Account

Parameters:
username - String
Throws:
InboxListenerException

updateMaxEmailNumber

public int updateMaxEmailNumber(java.lang.String username,
                                int maxemailnumber)
                         throws InboxListenerException
update the password of the Account

Parameters:
username - String
Throws:
InboxListenerException

deleteAccount

public void deleteAccount(java.lang.String username)
                   throws InboxListenerException
Gets Accounts returns a list that contains MailAccount

Throws:
InboxListenerException


Copyright © 2003-2006 Funambol.