public class TransactionManager extends AbstractTransactionManager<Transaction>
Modifier and Type | Field and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
fields |
logger, moduleSetup
Constructor and Description |
---|
TransactionManager(java.sql.Connection con,
int moduleId) |
Modifier and Type | Method and Description |
---|---|
Transaction |
doRecurrentRequest(int contractId,
java.math.BigDecimal sum,
java.lang.String parentOrderIDP) |
Transaction |
doResultsRequest(int contractId) |
java.lang.String |
getFormatSum(java.math.BigDecimal sum) |
protected Transaction |
getFromRS(java.sql.ResultSet rs) |
java.lang.String |
getReceipt(java.math.BigDecimal sum,
java.lang.String customerAddress,
java.lang.String contractTitle) |
java.lang.String |
getReceiptSignature(java.lang.Object shopIdp,
java.lang.Object orderIdp,
java.lang.Object subTotalP,
java.lang.Object receipt) |
Transaction |
getTransactionByTransactionId(java.lang.String transactionId) |
protected int |
psStatus(java.sql.PreparedStatement ps,
java.lang.String status,
int index) |
protected void |
queryStatus(java.lang.StringBuilder query,
java.lang.String status) |
protected void |
setConnectionTimeout(javax.net.ssl.HttpsURLConnection connection) |
protected void |
updateImpl(Transaction transaction) |
doConnection, doConnection, getParameter, searchTransaction, searchTransaction, 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)
protected void queryStatus(java.lang.StringBuilder query, java.lang.String status)
queryStatus
in class AbstractTransactionManager<Transaction>
protected int psStatus(java.sql.PreparedStatement ps, java.lang.String status, int index) throws java.sql.SQLException
psStatus
in class AbstractTransactionManager<Transaction>
java.sql.SQLException
public Transaction getTransactionByTransactionId(java.lang.String transactionId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public Transaction doResultsRequest(int contractId)
public Transaction doRecurrentRequest(int contractId, java.math.BigDecimal sum, java.lang.String parentOrderIDP) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.lang.String getFormatSum(java.math.BigDecimal sum)
public java.lang.String getReceipt(java.math.BigDecimal sum, java.lang.String customerAddress, java.lang.String contractTitle)
public java.lang.String getReceiptSignature(java.lang.Object shopIdp, java.lang.Object orderIdp, java.lang.Object subTotalP, java.lang.Object receipt)
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
updateImpl
in class ru.bitel.common.dao.AbstractDao<Transaction>
ru.bitel.bgbilling.common.BGException
protected void setConnectionTimeout(javax.net.ssl.HttpsURLConnection connection)
setConnectionTimeout
in class AbstractTransactionManager<Transaction>