public class RentsoftPaymentManager extends ru.bitel.common.dao.AbstractIdDao<RentsoftPayment>
| Constructor and Description | 
|---|
| RentsoftPaymentManager(java.sql.Connection con,
                      int moduleId) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | areChargesAllowedToCid(int contractId) | 
| boolean | billUser(RentsoftPayment payment,
        boolean revert) | 
| boolean | checkCid(int contractId) | 
| java.lang.String | cidToUuid(int cid) | 
| void | deleteForContract(int cid) | 
| RentsoftPayment | getByTxid(java.lang.String txid) | 
| int | getCidToCharge(int parentContractId) | 
| java.lang.String | getCurrentBalance(int cid) | 
| protected RentsoftPayment | getFromRS(java.sql.ResultSet rs) | 
| boolean | getIsJuridical(int contractId) | 
| boolean | getIsPostpaid(int contractId) | 
| java.util.List<RentsoftPayment> | getPaymentList(int productId,
              int cid) | 
| java.lang.String | getTariffIds(int contractId) | 
| java.util.List<java.lang.String> | getUuidsByTariff(int tid) | 
| boolean | isEnoughMoney(int contractId,
             java.math.BigDecimal amount) | 
| boolean | isTxidExists(java.lang.String txid) | 
| boolean | recalculateUser(int cid,
               java.util.Date date) | 
| protected void | updateImpl(RentsoftPayment rentsoftPayment) | 
| int | uuidToCid(java.lang.String uuid) | 
delete, get, getAndDelete, getAndUpdateclose, delete, deleteImpl, eq, get, getById, getImpl, getListFromRS, getPeriod, getSQLOrder, getTableName, list, list, listImpl, listImpl, listImplPS, listImplPS, ormFromResultSet, ormUpdateImpl, ormUpdateImpl, processException, recycle, setStatementParam, updatepublic RentsoftPaymentManager(java.sql.Connection con,
                              int moduleId)
                       throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic java.util.List<RentsoftPayment> getPaymentList(int productId, int cid) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionprotected void updateImpl(RentsoftPayment rentsoftPayment) throws ru.bitel.bgbilling.common.BGException, java.sql.SQLException
updateImpl in class ru.bitel.common.dao.AbstractDao<RentsoftPayment>ru.bitel.bgbilling.common.BGExceptionjava.sql.SQLExceptionprotected RentsoftPayment getFromRS(java.sql.ResultSet rs) throws java.sql.SQLException, ru.bitel.bgbilling.common.BGException
getFromRS in class ru.bitel.common.dao.AbstractDao<RentsoftPayment>java.sql.SQLExceptionru.bitel.bgbilling.common.BGExceptionpublic RentsoftPayment getByTxid(java.lang.String txid) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic boolean isTxidExists(java.lang.String txid)
                     throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic boolean checkCid(int contractId)
                 throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic boolean isEnoughMoney(int contractId,
                             java.math.BigDecimal amount)
public boolean billUser(RentsoftPayment payment, boolean revert) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic boolean recalculateUser(int cid,
                               java.util.Date date)
                        throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic java.lang.String getCurrentBalance(int cid)
public java.lang.String getTariffIds(int contractId)
                              throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic boolean getIsJuridical(int contractId)
public boolean getIsPostpaid(int contractId)
public boolean areChargesAllowedToCid(int contractId)
public java.util.List<java.lang.String> getUuidsByTariff(int tid)
                                                  throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic void deleteForContract(int cid)
                       throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic int uuidToCid(java.lang.String uuid)
public java.lang.String cidToUuid(int cid)
public int getCidToCharge(int parentContractId)