Class AccountManager

java.lang.Object
ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
ru.bitel.bgbilling.common.dao.AbstarctDaoConstant
ru.bitel.bgbilling.modules.email.server.bean.AccountManager

public class AccountManager extends ru.bitel.bgbilling.common.dao.AbstarctDaoConstant
  • Constructor Details

    • AccountManager

      public AccountManager(Connection con, int moduleId)
  • Method Details

    • getContractAccountsCount

      public int getContractAccountsCount(int contractId, Date date) throws SQLException
      Throws:
      SQLException
    • getContractAccountList

      public List<Account> getContractAccountList(int contractId)
      Получение списка аккаунтов договора.
      Parameters:
      contractId - код договора
      Returns:
    • getContractAccountList

      public List<Account> getContractAccountList(int contractId, Date date)
    • findAccounts

      public List<Account> findAccounts(String mask, int domainId)
      Поиск аккаунтов в домене.
      Parameters:
      mask - подстрока с именем аккаунта
      domainId - код домена
      Returns:
    • checkAccount

      public String checkAccount(Account account)
      Проверка наличия подобного аккаунта в БД.
      Parameters:
      account -
      Returns:
    • getAccountByID

      @Deprecated public Account getAccountByID(int id)
      Deprecated.
      Использовать getAccountByID(int)
      Parameters:
      id -
      Returns:
    • getAccountById

      public Account getAccountById(int id)
      Получение аккаунта по его коду.
      Parameters:
      id -
      Returns:
    • updateAccount

      @Deprecated public void updateAccount(String id, Account account) throws ru.bitel.bgbilling.common.BGException
      Deprecated.
      Использовать updateAccount(Account).
      Parameters:
      id -
      account -
      Throws:
      ru.bitel.bgbilling.common.BGException
    • updateAccount

      public void updateAccount(Account account)
      Изменение/добавление аккаунта.
      Parameters:
      account -
    • deleteAccount

      public void deleteAccount(int id) throws SQLException
      Удаление аккаунта по его коду.
      Parameters:
      id -
      Throws:
      SQLException
    • getNeedOpenAccountList

      public List<Account> getNeedOpenAccountList(Date date)
    • getNeedCloseAccountList

      public List<Account> getNeedCloseAccountList(Date date)