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 |
---|---|
void |
doCheck(int contractId) |
void |
doCheckRequest(Transaction transaction) |
void |
doPayment(Transaction transaction,
java.lang.String status,
PaymentDao paymentDao) |
java.lang.String |
doPaymentRequest(Transaction transaction,
java.math.BigDecimal sum,
java.lang.String description,
java.lang.String successurl,
java.lang.String failurl,
boolean regcard) |
Transaction |
doRecurrentRequest(int contractId,
java.math.BigDecimal sum,
java.lang.String cardId) |
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 void doCheck(int contractId)
public void doCheckRequest(Transaction transaction)
public void doPayment(Transaction transaction, java.lang.String status, PaymentDao paymentDao) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.lang.String doPaymentRequest(Transaction transaction, java.math.BigDecimal sum, java.lang.String description, java.lang.String successurl, java.lang.String failurl, boolean regcard)
public Transaction doRecurrentRequest(int contractId, java.math.BigDecimal sum, java.lang.String cardId) 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>