Class ContractAutopaymentManager

java.lang.Object
ru.bitel.common.dao.AbstarctDaoConstant
ru.bitel.bgbilling.kernel.contract.autopayment.server.bean.ContractAutopaymentManager
All Implemented Interfaces:
AutoCloseable

public class ContractAutopaymentManager extends ru.bitel.common.dao.AbstarctDaoConstant implements AutoCloseable
  • Constructor Details

    • ContractAutopaymentManager

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

    • isEnabled

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

      public boolean isEnabled(int contractId, Date onDate) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • setEnabled

      public boolean setEnabled(int contractId, boolean enabled, int userId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • searchContractAutopayment

      public void searchContractAutopayment(SearchResult<ContractAutopayment> searchResult, int contractId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • cleanForContract

      public void cleanForContract(int contractId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • getFromResultSet

      protected ContractAutopayment getFromResultSet(ResultSet resultSet) throws SQLException
      Throws:
      SQLException
    • close

      public void close() throws ru.bitel.bgbilling.common.BGException
      Specified by:
      close in interface AutoCloseable
      Throws:
      ru.bitel.bgbilling.common.BGException
    • isContractAutopaymentEnabled

      public static boolean isContractAutopaymentEnabled(Connection con, int moduleId, int contractId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException