Class ParamDao
java.lang.Object
ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
ru.bitel.bgbilling.common.dao.AbstractDaoConstant
ru.bitel.bgbilling.plugins.helpdesk.server.dao.ParamDao
public class ParamDao
extends ru.bitel.bgbilling.common.dao.AbstractDaoConstant
Класс для хранения пользовательских параметров для системы HelpDesk
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ru.bitel.bgbilling.kernel.plugin.server.BGPluginServerFields inherited from class ru.bitel.bgbilling.common.dao.AbstractDaoConstant
con, ERROR, fields, moduleId, SQL_ALL, SQL_AND, 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_ORDER, SQL_SELECT, SQL_SET, SQL_UPDATE, SQL_VALUES, SQL_WHERE, tableName -
Constructor Summary
ConstructorsConstructorDescriptionParamDao(Connection con, ru.bitel.bgbilling.kernel.plugin.server.BGPluginServer plugin) Конструктор по умолчанию -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteByContractId(int contractId) getContractCurrentMode(int contractId) protected StringgetDBTableName(String name) List<ru.bitel.bgbilling.common.model.KeyValue> getProperties(int contractId) Возращает все сохраненные параметры для заданного договораvoidsetParams(int contractId, Properties properties) Сохраняем в БД параметры для заданного договора.Methods inherited from class ru.bitel.bgbilling.common.dao.AbstractDaoConstant
getPeriod, getPlaceholders, getSQLOrder, getSQLOrderFields, getTableName, psSetDate, psSetDateOrNull, psSetInt, psSetIntOrNull, psSetPeriod, psSetString, psSetStringOrNull, psSetTimestampOrNull, queryAndIn, setStatementParam, sqlDelete, sqlDeleteBatch, sqlInsert, sqlInsertBatch, sqlInsertGetId, sqlInsertGetLongId, sqlInsertOnDuplicateKeyUpdate, sqlInsertSelect, sqlInsertUpdateById, sqlSelectCountAsInt, sqlUpdate, sqlUpdateBatchMethods 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
-
ParamDao
Конструктор по умолчанию- Parameters:
con- - коннект к БДplugin- - ссылка на объект с данными плагина
-
-
Method Details
-
getDBTableName
-
getModeList
-
getContractCurrentMode
- Throws:
ru.bitel.bgbilling.common.BGException
-
getProperties
Возращает все сохраненные параметры для заданного договора- Parameters:
contractId- - код договора- Returns:
- Throws:
ru.bitel.bgbilling.common.BGException
-
setParams
Сохраняем в БД параметры для заданного договора. Все ранее сохраненные значения удаляются.- Parameters:
contractId- - код договораproperties- - сохраняемые значения- Throws:
SQLException
-
deleteByContractId
- Throws:
SQLException
-