public class TransactionManager extends ru.bitel.common.dao.AbstractDao<Transaction>
| Constructor and Description |
|---|
TransactionManager(java.sql.Connection con,
int moduleId) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTransaction(Transaction transaction)
Добавление новой транзакции в БД.
|
boolean |
checkPayment(int contractId,
java.lang.String mobiPaymentId)
Проверяет, совершал ли указанный договор платеж с таким mobiPaymentId.
|
void |
deleteServiceCode(java.util.List<java.lang.Integer> ids) |
protected Transaction |
getFromRS(java.sql.ResultSet rs) |
java.util.List<MobiServiceCode> |
getServiceCodeList() |
Transaction |
getTransaction(java.lang.String mobiPaymentId)
Возвращает одну единственную транзакцию по ее коду.
|
void |
searchTransactions(SearchResult<Transaction> searchResult,
int contractId,
java.lang.String contractTitle,
java.lang.String status)
Универсальный метод, возвращающий список транзакций в зависимости от
условий фильтра
|
protected void |
updateImpl(Transaction transaction) |
void |
updateServiceCode(MobiServiceCode mobiServiceCode) |
void |
updateTransaction(Transaction transaction)
Обновление уже существующей транзакции.
|
public TransactionManager(java.sql.Connection con,
int moduleId)
public void searchTransactions(SearchResult<Transaction> searchResult, int contractId, java.lang.String contractTitle, java.lang.String status) throws ru.bitel.bgbilling.common.BGException
contractId - contractTitle - status - fromDate - toDate - ru.bitel.bgbilling.common.BGExceptionpublic boolean checkPayment(int contractId,
java.lang.String mobiPaymentId)
throws ru.bitel.bgbilling.common.BGException
contractId - код договораpaymentID - код транзакцииru.bitel.bgbilling.common.BGExceptionpublic Transaction getTransaction(java.lang.String mobiPaymentId) throws ru.bitel.bgbilling.common.BGException
mobiPaymentId - код транзакции на стороне сервисаru.bitel.bgbilling.common.BGExceptionpublic void addTransaction(Transaction transaction) throws ru.bitel.bgbilling.common.BGException
transaction - добавляемая транзакцияru.bitel.bgbilling.common.BGExceptionpublic void updateTransaction(Transaction transaction) throws ru.bitel.bgbilling.common.BGException
transaction - обновляемая транзакцияru.bitel.bgbilling.common.BGExceptionpublic java.util.List<MobiServiceCode> getServiceCodeList() throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic void updateServiceCode(MobiServiceCode mobiServiceCode) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic void deleteServiceCode(java.util.List<java.lang.Integer> ids)
throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionprotected Transaction getFromRS(java.sql.ResultSet rs) throws java.sql.SQLException, ru.bitel.bgbilling.common.BGException
getFromRS in class ru.bitel.common.dao.AbstractDao<Transaction>java.sql.SQLExceptionru.bitel.bgbilling.common.BGExceptionprotected void updateImpl(Transaction transaction) throws ru.bitel.bgbilling.common.BGException
updateImpl in class ru.bitel.common.dao.AbstractDao<Transaction>ru.bitel.bgbilling.common.BGException