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, getAndUpdate
close, delete, deleteImpl, eq, get, getById, getImpl, getListFromRS, getPeriod, getSQLOrder, getTableName, list, list, listImpl, listImpl, listImplPS, listImplPS, ormFromResultSet, ormUpdateImpl, ormUpdateImpl, processException, recycle, setStatementParam, update
public RentsoftPaymentManager(java.sql.Connection con, int moduleId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.util.List<RentsoftPayment> getPaymentList(int productId, int cid) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
protected 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.BGException
java.sql.SQLException
protected 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.SQLException
ru.bitel.bgbilling.common.BGException
public RentsoftPayment getByTxid(java.lang.String txid) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public boolean isTxidExists(java.lang.String txid) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public boolean checkCid(int contractId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public 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.BGException
public boolean recalculateUser(int cid, java.util.Date date) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.lang.String getCurrentBalance(int cid)
public java.lang.String getTariffIds(int contractId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public 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.BGException
public void deleteForContract(int cid) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public int uuidToCid(java.lang.String uuid)
public java.lang.String cidToUuid(int cid)
public int getCidToCharge(int parentContractId)