Class ParamManager
java.lang.Object
ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
ru.bitel.bgbilling.common.dao.AbstarctDaoConstant
ru.bitel.bgbilling.plugins.helpdesk.server.bean.ParamManager
public class ParamManager
extends ru.bitel.bgbilling.common.dao.AbstarctDaoConstant
Класс для хранения пользовательских параметров для системы HelpDesk
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ru.bitel.bgbilling.kernel.plugin.server.BGPluginServerFields 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
ConstructorsConstructorDescriptionParamManager(Connection con, ru.bitel.bgbilling.kernel.plugin.server.BGPluginServer plugin) Конструктор по умолчанию -
Method Summary
Modifier and TypeMethodDescriptiongetContractCurrentMode(int contractId) protected StringgetDBTableName(String name) List<ru.bitel.bgbilling.common.model.KeyValue> getProperties(int contractId) Возращает все сохраненные параметры для заданного договораvoidsetProperties(int contractId, Properties properties) Сохраняем в БД параметры для заданного договора.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
-
Field Details
-
plugin
protected ru.bitel.bgbilling.kernel.plugin.server.BGPluginServer plugin
-
-
Constructor Details
-
ParamManager
Конструктор по умолчанию- Parameters:
con- - коннект к БДplugin- - ссылка на объект с данными плагина
-
-
Method Details
-
getDBTableName
-
getModeList
-
getContractCurrentMode
- Throws:
ru.bitel.bgbilling.common.BGException
-
getProperties
Возращает все сохраненные параметры для заданного договора- Parameters:
contractId- - код договора- Returns:
- Throws:
ru.bitel.bgbilling.common.BGException
-
setProperties
public void setProperties(int contractId, Properties properties) throws ru.bitel.bgbilling.common.BGException Сохраняем в БД параметры для заданного договора. Все ранее сохраненные значения удаляются.- Parameters:
contractId- - код договораproperties- - сохраняемые значения- Throws:
ru.bitel.bgbilling.common.BGException
-