public class TransactionManager extends ru.bitel.common.dao.AbstractIdDao<Transaction>
cacheFilter, cacheJoin, cacheOrderBy, cachePaged, cachePS, cacheWhat, con, getByIdPS, logger, mid, moduleId, orderByPattern, SQL_CALC_FOUND_ROWS, SQL_DELETE, SQL_EQ, SQL_EQCS, SQL_FROM, SQL_GROUP, SQL_IN, SQL_INSERT, SQL_LIMIT, SQL_ORDER, SQL_SELECT, SQL_SET, SQL_UPDATE, SQL_WHERE, tableName| Constructor and Description |
|---|
TransactionManager(java.sql.Connection con,
int moduleId) |
| Modifier and Type | Method and Description |
|---|---|
void |
doCheckRequest(int contractId) |
protected Transaction |
getFromRS(java.sql.ResultSet rs) |
protected Transaction |
getImpl(int transactionId) |
java.lang.String |
paymentOrderBinding(Transaction transaction,
Autopayment autopayment)
14.3.2.1.
|
void |
searchTransaction(SearchResult<Transaction> searchResult,
int contractId,
java.lang.String contractTitle,
java.lang.String status) |
boolean |
update(Transaction transaction,
TransactionStatus newTransactionStatus) |
protected void |
updateImpl(Transaction transaction)
Этот метод каждый реализует сам со своей логикой.
|
delete, get, getAndDelete, getAndUpdatepublic TransactionManager(java.sql.Connection con,
int moduleId)
public void searchTransaction(SearchResult<Transaction> searchResult, int contractId, java.lang.String contractTitle, java.lang.String status) 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 Transaction getImpl(int transactionId) throws ru.bitel.bgbilling.common.BGException, java.sql.SQLException
getImpl in class ru.bitel.common.dao.AbstractDao<Transaction>ru.bitel.bgbilling.common.BGExceptionjava.sql.SQLExceptionpublic boolean update(Transaction transaction, TransactionStatus newTransactionStatus) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionprotected void updateImpl(Transaction transaction) throws ru.bitel.bgbilling.common.BGException
ru.bitel.common.dao.AbstractDaoupdateImpl in class ru.bitel.common.dao.AbstractDao<Transaction>transaction - экземпляр моделиru.bitel.bgbilling.common.BGException - ошибкиpublic void doCheckRequest(int contractId)
throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic java.lang.String paymentOrderBinding(Transaction transaction, Autopayment autopayment)