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
-
Field Summary
Fields inherited from class ru.bitel.bgbilling.common.dao.AbstarctDaoConstant
con, ERROR, fields, moduleId, SQL_ALL, SQL_AND, SQL_CALC_FOUND_ROWS, SQL_DELETE, SQL_DISTINCT, SQL_EQ, SQL_EQCS, SQL_FROM, SQL_GROUP, SQL_IN, SQL_INSERT, SQL_JOIN, SQL_LEFT_JOIN, SQL_LIMIT, SQL_NOT_IN, SQL_ON, SQL_ON_DUPLICATE_KEY_UPDATE, SQL_ORDER, SQL_SELECT, SQL_SET, SQL_UPDATE, SQL_VALUES, SQL_WHERE, tableName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckAccount(Account account) Проверка наличия подобного аккаунта в БД.voiddeleteAccount(int id) Удаление аккаунта по его коду.findAccounts(String mask, int domainId) Поиск аккаунтов в домене.getAccountById(int id) Получение аккаунта по его коду.getAccountByID(int id) Deprecated.getContractAccountList(int contractId) Получение списка аккаунтов договора.getContractAccountList(int contractId, Date date) intgetContractAccountsCount(int contractId, Date date) getNeedCloseAccountList(Date date) getNeedOpenAccountList(Date date) voidupdateAccount(String id, Account account) Deprecated.voidupdateAccount(Account account) Изменение/добавление аккаунта.Methods inherited from class ru.bitel.bgbilling.common.dao.AbstarctDaoConstant
getPeriod, getSQLOrder, getTableName, sqlLimitMethods inherited from class ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
error, error, error, getLogger, logError, logError, warn
-
Constructor Details
-
AccountManager
-
-
Method Details
-
getContractAccountsCount
- Throws:
SQLException
-
getContractAccountList
Получение списка аккаунтов договора.- Parameters:
contractId- код договора- Returns:
-
getContractAccountList
-
findAccounts
Поиск аккаунтов в домене.- Parameters:
mask- подстрока с именем аккаунтаdomainId- код домена- Returns:
-
checkAccount
Проверка наличия подобного аккаунта в БД.- Parameters:
account-- Returns:
-
getAccountByID
Deprecated.ИспользоватьgetAccountByID(int)- Parameters:
id-- Returns:
-
getAccountById
Получение аккаунта по его коду.- 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
Изменение/добавление аккаунта.- Parameters:
account-
-
deleteAccount
Удаление аккаунта по его коду.- Parameters:
id-- Throws:
SQLException
-
getNeedOpenAccountList
-
getNeedCloseAccountList
-