Class DispatchMessageStatisticDao

java.lang.Object
ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
ru.bitel.bgbilling.common.dao.AbstractDaoConstant
ru.bitel.bgbilling.common.dao.AbstractDao<DispatchMessageStatistic>
ru.bitel.bgbilling.plugins.dispatch.server.dao.DispatchMessageStatisticDao

public class DispatchMessageStatisticDao extends ru.bitel.bgbilling.common.dao.AbstractDao<DispatchMessageStatistic>
DAO для работы со статистикой отправленных сообщений рассылок.
  • 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

    orderByPattern

    Fields 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_ON_DUPLICATE_KEY_UPDATE, SQL_ORDER, SQL_SELECT, SQL_SET, SQL_UPDATE, SQL_VALUES, SQL_WHERE, tableName
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Добавление информации по отправленному сообщению: кому, когда, куда, за что
    void
    Удаление отдельного элемента статитистики отправленных сообщений.
     
    Получение одного единственного элемента статистики по его идентификатору.
    void
    getMessageStatisticList(int contractId, int dispatchId, int messageId, int contactId, SearchResult<DispatchMessageStatistic> searchResult)
    Получение статистики по отправленным сообщениям.
    protected void
     

    Methods 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, update

    Methods inherited from class ru.bitel.bgbilling.common.dao.AbstractDaoConstant

    delete, delete, getSQLOrder, getSQLOrderFields, getTableName, psSetDate, psSetDateOrNull, psSetInt, psSetIntOrNull, psSetPeriod, psSetString, psSetStringOrNull, psSetTimestampOrNull, queryAndIn, setStatementParam

    Methods inherited from class ru.bitel.bgbilling.kernel.base.server.logger.BGLogger

    error, error, error, getLogger, logError, logError, warn

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DispatchMessageStatisticDao

      public DispatchMessageStatisticDao(Connection con)
  • Method Details

    • getFromRS

      protected DispatchMessageStatistic getFromRS(ResultSet rs) throws SQLException
      Specified by:
      getFromRS in class ru.bitel.bgbilling.common.dao.AbstractDao<DispatchMessageStatistic>
      Throws:
      SQLException
    • updateImpl

      protected void updateImpl(DispatchMessageStatistic statistic) throws SQLException
      Specified by:
      updateImpl in class ru.bitel.bgbilling.common.dao.AbstractDao<DispatchMessageStatistic>
      Throws:
      SQLException
    • addMessageStatistic

      public void addMessageStatistic(DispatchMessageStatistic statistic) throws SQLException
      Добавление информации по отправленному сообщению: кому, когда, куда, за что
      Parameters:
      statistic - статистика отправленного сообщения
      Throws:
      SQLException
    • getMessageStatistic

      public DispatchMessageStatistic getMessageStatistic(int id) throws SQLException
      Получение одного единственного элемента статистики по его идентификатору. Наверное, этот метод нужен в основном для тестов.
      Parameters:
      id - id элемента статистики
      Returns:
      Throws:
      SQLException
    • getMessageStatisticList

      public void getMessageStatisticList(int contractId, int dispatchId, int messageId, int contactId, SearchResult<DispatchMessageStatistic> searchResult) throws SQLException
      Получение статистики по отправленным сообщениям.
      Parameters:
      contractId - код договора. Если не задан, то выводится статисктика по всем договорам
      dispatchId - код рассылки. Если не задан, то выводится статистика по всем рассылкам
      messageId - код сообщения. Если не задан, то выводится статисктика по всем сообщениям данного вида
      contactId - код контакта. Если не задан, то выводится статистика сообщений для данного контакта.
      searchResult - результат, содержащий список, страницы, период.
      Throws:
      SQLException
    • deleteMessageStatistic

      public void deleteMessageStatistic(int id) throws SQLException
      Удаление отдельного элемента статитистики отправленных сообщений.
      Parameters:
      id - код элемента статистики
      Throws:
      SQLException