Class ContractNotificationDao
java.lang.Object
ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
ru.bitel.bgbilling.common.dao.AbstractDaoConstant
ru.bitel.bgbilling.common.dao.AbstractDao<ContractNotification>
ru.bitel.bgbilling.common.dao.AbstractIdDao<ContractNotification>
ru.bitel.bgbilling.plugins.notification.server.dao.ContractNotificationDao
public class ContractNotificationDao
extends ru.bitel.bgbilling.common.dao.AbstractIdDao<ContractNotification>
-
Nested Class Summary
Nested classes/interfaces inherited from class ru.bitel.bgbilling.common.dao.AbstractDao
ru.bitel.bgbilling.common.dao.AbstractDao.ListParams -
Field Summary
Fields inherited from class ru.bitel.bgbilling.common.dao.AbstractDao
orderByPatternFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ContractNotificationgetNotificationSendingHistory(int notificationId) Последняя попытка отправки и количество попыток для каждого договора по заданному уведомлению.Отчет по отправленным уведомлениям с пейджингом.Уведомления по договору с пейджингом и фильтрацией по уведомлению и периоду отправки.list(int contractId) voidsaveContractNotificationList(List<ContractNotification> contractNotifications) protected voidupdateImpl(ContractNotification notice) voidupdateReadInfo(int contractId, int notificationId, LocalDateTime readTime, String answer) Фиксация факта прочтения/ответа по последней попытке отправки договору заданного уведомления.Methods inherited from class ru.bitel.bgbilling.common.dao.AbstractIdDao
delete, executeUpdate, get, getAndDelete, getAndUpdate, loadData, opt, prepareStatement, sqlCommand, sqlCommandAndTable, sqlInsertValues, sqlQuery, sqlUpdateSet, sqlWhereIdMethods inherited from class ru.bitel.bgbilling.common.dao.AbstractDao
deleteImpl, dropTemporaryTable, eq, get, getById, getImpl, getListFromRS, getPeriod, getQueryById, getQueryWithFilter, getSQLOrder, list, list, list, listCountImplPS, listImpl, listImplPS, ormFromResultSet, ormUpdateImpl, ormUpdateImpl, ormUpdateImpl, ormUpdateImpl, queryPeriod, setPageRecordCount, updateMethods inherited from class ru.bitel.bgbilling.common.dao.AbstractDaoConstant
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
-
Constructor Details
-
ContractNotificationDao
-
-
Method Details
-
list
- Throws:
SQLException
-
getFromRS
- Specified by:
getFromRSin classru.bitel.bgbilling.common.dao.AbstractDao<ContractNotification>- Throws:
SQLException
-
updateImpl
- Specified by:
updateImplin classru.bitel.bgbilling.common.dao.AbstractDao<ContractNotification>- Throws:
SQLException
-
saveContractNotificationList
public void saveContractNotificationList(List<ContractNotification> contractNotifications) throws SQLException - Throws:
SQLException
-
getNotificationSendingHistory
public List<ContractNotification> getNotificationSendingHistory(int notificationId) throws SQLException Последняя попытка отправки и количество попыток для каждого договора по заданному уведомлению.- Throws:
SQLException
-
getReport
public Result<ContractNotification> getReport(Page page, int notificationId, Period period) throws SQLException Отчет по отправленным уведомлениям с пейджингом.- Parameters:
page- страницаnotificationId- если > 0 - фильтрация по уведомлению, иначе - всеperiod- если задан - фильтрация по периоду отправки- Throws:
SQLException
-
getSearch
public Result<ContractNotification> getSearch(int contractId, Page page, int notificationId, Period period) throws SQLException Уведомления по договору с пейджингом и фильтрацией по уведомлению и периоду отправки.- Throws:
SQLException
-
updateReadInfo
public void updateReadInfo(int contractId, int notificationId, LocalDateTime readTime, String answer) throws SQLException Фиксация факта прочтения/ответа по последней попытке отправки договору заданного уведомления.- Throws:
SQLException
-