public abstract class AbstractAutopaymentManager extends ru.bitel.common.dao.AbstractDao<Autopayment>
Constructor and Description |
---|
AbstractAutopaymentManager(java.sql.Connection con,
java.lang.String tableNamePrefix,
int moduleId) |
Modifier and Type | Method and Description |
---|---|
void |
autopaymentOff(Autopayment autopayment) |
Autopayment |
getAutopayment(int id) |
Autopayment |
getCurrentAutopayment(int contractId) |
protected Autopayment |
getFromRS(java.sql.ResultSet rs) |
void |
invokeAutopayment(int contractId,
java.math.BigDecimal amount) |
static <T> Autopayment |
registerAutopayment(java.sql.Connection con,
int moduleId,
AbstractAutopaymentManager autopaymentManager,
int contractId,
ContractAutopaymentMode mode,
ru.bitel.common.function.ThrowingFunction<Autopayment,T> registerFunction)
Регистрация автоплатежа - создается Autopayment, вызывается registerFunction.
|
<T extends BGAbstractTransaction> |
registerAutopayment(int contractId,
ContractAutopaymentMode mode,
java.util.function.Function<java.math.BigDecimal,T> registerOrder) |
void |
searchActivateAutopayment(SearchResult<Autopayment> searchResult,
java.util.Date date,
int mode) |
void |
searchAutopayment(SearchResult<Autopayment> searchResult,
int contractId) |
void |
searchCurrentAutopayment(SearchResult<Autopayment> searchResult,
java.util.Date date,
int mode)
Выбрать подписки которые должны исполниться в указанный день
|
static void |
unregisterAutopayment(java.sql.Connection con,
int moduleId,
AbstractAutopaymentManager autopaymentManager,
int contractId)
Отмена автоплатежа в биллинге.
|
Autopayment |
updateAutopayment(Autopayment autopayment) |
protected void |
updateImpl(Autopayment autopayment) |
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 AbstractAutopaymentManager(java.sql.Connection con, java.lang.String tableNamePrefix, int moduleId)
public Autopayment getAutopayment(int id) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public Autopayment getCurrentAutopayment(int contractId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
protected void updateImpl(Autopayment autopayment) throws ru.bitel.bgbilling.common.BGException, java.sql.SQLException
updateImpl
in class ru.bitel.common.dao.AbstractDao<Autopayment>
ru.bitel.bgbilling.common.BGException
java.sql.SQLException
public Autopayment updateAutopayment(Autopayment autopayment) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void searchAutopayment(SearchResult<Autopayment> searchResult, int contractId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void searchActivateAutopayment(SearchResult<Autopayment> searchResult, java.util.Date date, int mode) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void searchCurrentAutopayment(SearchResult<Autopayment> searchResult, java.util.Date date, int mode) throws ru.bitel.bgbilling.common.BGException
searchResult
- date
- mode
- ru.bitel.bgbilling.common.BGException
protected Autopayment getFromRS(java.sql.ResultSet rs) throws java.sql.SQLException, ru.bitel.bgbilling.common.BGException
getFromRS
in class ru.bitel.common.dao.AbstractDao<Autopayment>
java.sql.SQLException
ru.bitel.bgbilling.common.BGException
public <T extends BGAbstractTransaction> T registerAutopayment(int contractId, ContractAutopaymentMode mode, java.util.function.Function<java.math.BigDecimal,T> registerOrder) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException
ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGMessageException
public void autopaymentOff(Autopayment autopayment) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void invokeAutopayment(int contractId, java.math.BigDecimal amount) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public static <T> Autopayment registerAutopayment(java.sql.Connection con, int moduleId, AbstractAutopaymentManager autopaymentManager, int contractId, ContractAutopaymentMode mode, ru.bitel.common.function.ThrowingFunction<Autopayment,T> registerFunction) throws ru.bitel.bgbilling.common.BGException
con
- moduleId
- contractId
- mode
- registerFunction
- ru.bitel.bgbilling.common.BGException
public static void unregisterAutopayment(java.sql.Connection con, int moduleId, AbstractAutopaymentManager autopaymentManager, int contractId) throws ru.bitel.bgbilling.common.BGException
con
- moduleId
- contractId
- ru.bitel.bgbilling.common.BGException