public class TransactionManager extends AbstractTransactionManager<Transaction>
fields, moduleSetup
Constructor and Description |
---|
TransactionManager(java.sql.Connection con,
int moduleId) |
Modifier and Type | Method and Description |
---|---|
void |
addTransaction(Transaction transaction)
Добавление новой транзакции в БД
|
protected Transaction |
getFromRS(java.sql.ResultSet rs) |
java.util.List<Transaction> |
getReturnMoneyTransactionList()
ПОлучение списка транзакций, ожидающих возврата
|
Transaction |
getTransactionById(int transactionId)
Получение единственной транзакции по ее коду
|
Transaction |
registerOrder(int contractId,
java.lang.String contractTitle,
java.lang.String customerAddress,
java.math.BigDecimal sum,
java.util.Map<java.lang.String,java.lang.Object> dataMap,
java.lang.String ipAddress) |
void |
searchTransaction(SearchResult<Transaction> searchResult,
int contractId,
java.lang.String contractTitle,
java.lang.String status) |
protected void |
updateImpl(Transaction transaction) |
doConnection, doConnection, getParameter, psStatus, queryStatus, searchTransaction, setConnectionTimeout, setParameter
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 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
searchTransaction
in class AbstractTransactionManager<Transaction>
ru.bitel.bgbilling.common.BGException
public Transaction getTransactionById(int transactionId) throws ru.bitel.bgbilling.common.BGException
transactionId
- код транзакцииru.bitel.bgbilling.common.BGException
public java.util.List<Transaction> getReturnMoneyTransactionList() throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void addTransaction(Transaction transaction) throws ru.bitel.bgbilling.common.BGException
transaction
- транзакцияru.bitel.bgbilling.common.BGException
public Transaction registerOrder(int contractId, java.lang.String contractTitle, java.lang.String customerAddress, java.math.BigDecimal sum, java.util.Map<java.lang.String,java.lang.Object> dataMap, java.lang.String ipAddress) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
protected 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.SQLException
ru.bitel.bgbilling.common.BGException
protected void updateImpl(Transaction transaction) throws ru.bitel.bgbilling.common.BGException, java.sql.SQLException
updateImpl
in class ru.bitel.common.dao.AbstractDao<Transaction>
ru.bitel.bgbilling.common.BGException
java.sql.SQLException