Class TransactionManager

java.lang.Object
ru.bitel.common.dao.AbstarctDaoConstant
ru.bitel.common.dao.AbstractDao<B>
ru.bitel.common.dao.AbstractIdDao<B>
ru.bitel.bgbilling.server.bean.AbstractTransactionManager<Transaction>
ru.bitel.bgbilling.modules.wm.server.bean.TransactionManager
All Implemented Interfaces:
AutoCloseable

public class TransactionManager extends AbstractTransactionManager<Transaction>
  • Field Details

  • Constructor Details

    • TransactionManager

      public TransactionManager(Connection con, int moduleId)
  • Method Details

    • getWMPaymentList

      public List<Transaction> getWMPaymentList(Calendar from, Calendar until, int status, String contractTitle, String wmId, String wmPayId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • searchTransaction

      public void searchTransaction(SearchResult<Transaction> searchResult, int contractId, String contractTitle, String status) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • getWMPayment

      public Transaction getWMPayment(int cid, int id)
    • checkAndUpdateWMPayment

      public int checkAndUpdateWMPayment(int contractId, WMRequest request, int sysMode) throws ru.bitel.bgbilling.common.BGException
      Проверяет запрос и возвращает ошибки. Если запрос не предварительный (оповещает об оплате) то обновляет базу. В режиме отключен принимает оповещения об оплате, но отсылает все предварительные запросы с ошибкой ERR_OFF
      Parameters:
      request -
      Returns:
      Throws:
      ru.bitel.bgbilling.common.BGException
    • getFirstYear

      public int getFirstYear(int cid)
    • logResult

      public String logResult(int result)
    • getPaymentComment

      public static String getPaymentComment(Connection con, String pattern, Transaction transaction)
    • getFromRS

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

      protected Transaction getFromRS(ResultSet rs, boolean contractTitle) throws SQLException, ru.bitel.bgbilling.common.BGException
      Throws:
      SQLException
      ru.bitel.bgbilling.common.BGException
    • updateImpl

      protected void updateImpl(Transaction transaction) throws ru.bitel.bgbilling.common.BGException, SQLException
      Specified by:
      updateImpl in class ru.bitel.common.dao.AbstractDao<Transaction>
      Throws:
      ru.bitel.bgbilling.common.BGException
      SQLException