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.psb.server.bean.TransactionManager
All Implemented Interfaces:
AutoCloseable

public class TransactionManager extends AbstractTransactionManager<Transaction>
  • Constructor Details

    • TransactionManager

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

    • 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
    • updateImpl

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

      protected Transaction getById(int id) throws ru.bitel.bgbilling.common.BGException, SQLException
      Overrides:
      getById in class ru.bitel.common.dao.AbstractDao<Transaction>
      Throws:
      ru.bitel.bgbilling.common.BGException
      SQLException
    • buildSignData

      public static String buildSignData(Map<String,Object> dataMap, String[] checkParams)
    • doSign

      public static String doSign(String str, String secret)
    • getNonce

      public static String getNonce()
    • newTransaction

      public Transaction newTransaction(int contractId, BigDecimal sum, boolean autopaymentTransaction, boolean reqChain) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • doRequest

      public String doRequest(Transaction transaction, String contractTitle, BigDecimal sum, String email, String intRef, String recurRef)
    • getFormatSum

      public static String getFormatSum(BigDecimal sum)
    • getFormatTime

      public static String getFormatTime(Date date)