Class RentsoftPaymentManager

java.lang.Object
ru.bitel.common.dao.AbstarctDaoConstant
ru.bitel.common.dao.AbstractDao<B>
ru.bitel.common.dao.AbstractIdDao<RentsoftPayment>
ru.bitel.bgbilling.modules.rentsoft.server.bean.RentsoftPaymentManager
All Implemented Interfaces:
AutoCloseable

public class RentsoftPaymentManager extends ru.bitel.common.dao.AbstractIdDao<RentsoftPayment>
  • Constructor Details

    • RentsoftPaymentManager

      public RentsoftPaymentManager(Connection con, int moduleId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
  • Method Details

    • getPaymentList

      public List<RentsoftPayment> getPaymentList(int productId, int cid) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • updateImpl

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

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

      public RentsoftPayment getByTxid(String txid) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • isTxidExists

      public boolean isTxidExists(String txid) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • checkCid

      public boolean checkCid(int contractId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • isEnoughMoney

      public boolean isEnoughMoney(int contractId, BigDecimal amount)
    • billUser

      public boolean billUser(RentsoftPayment payment, boolean revert) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • recalculateUser

      public boolean recalculateUser(int cid, Date date) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • getCurrentBalance

      public String getCurrentBalance(int cid)
    • getTariffIds

      public String getTariffIds(int contractId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • getIsJuridical

      public boolean getIsJuridical(int contractId)
    • getIsPostpaid

      public boolean getIsPostpaid(int contractId)
    • areChargesAllowedToCid

      public boolean areChargesAllowedToCid(int contractId)
    • getUuidsByTariff

      public List<String> getUuidsByTariff(int tid) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • deleteForContract

      public void deleteForContract(int cid) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • uuidToCid

      public int uuidToCid(String uuid)
    • cidToUuid

      public String cidToUuid(int cid)
    • getCidToCharge

      public int getCidToCharge(int parentContractId)