public class TransactionManager extends AbstractTransactionManager<Transaction>
fields, moduleSetup
Constructor and Description |
---|
TransactionManager(java.sql.Connection con,
int moduleId) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
buildSignData(java.util.Map<java.lang.String,java.lang.Object> dataMap,
java.lang.String[] checkParams) |
java.lang.String |
doRequest(Transaction transaction,
java.lang.String contractTitle,
java.math.BigDecimal sum,
java.lang.String email,
java.lang.String intRef,
java.lang.String recurRef) |
static java.lang.String |
doSign(java.lang.String str,
java.lang.String secret) |
protected Transaction |
getById(int id) |
static java.lang.String |
getFormatSum(java.math.BigDecimal sum) |
static java.lang.String |
getFormatTime(java.util.Date date) |
protected Transaction |
getFromRS(java.sql.ResultSet rs) |
static java.lang.String |
getNonce() |
Transaction |
newTransaction(int contractId,
java.math.BigDecimal sum,
boolean autopaymentTransaction,
boolean reqChain) |
protected void |
updateImpl(Transaction transaction) |
doConnection, doConnection, psStatus, queryStatus, searchTransaction, searchTransaction, setConnectionTimeout
delete, get, getAndDelete, getAndUpdate
public TransactionManager(java.sql.Connection con, int moduleId)
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 Transaction getById(int id) throws ru.bitel.bgbilling.common.BGException, java.sql.SQLException
getById
in class ru.bitel.common.dao.AbstractDao<Transaction>
ru.bitel.bgbilling.common.BGException
java.sql.SQLException
public static java.lang.String buildSignData(java.util.Map<java.lang.String,java.lang.Object> dataMap, java.lang.String[] checkParams)
public static java.lang.String doSign(java.lang.String str, java.lang.String secret)
public static java.lang.String getNonce()
public Transaction newTransaction(int contractId, java.math.BigDecimal sum, boolean autopaymentTransaction, boolean reqChain) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.lang.String doRequest(Transaction transaction, java.lang.String contractTitle, java.math.BigDecimal sum, java.lang.String email, java.lang.String intRef, java.lang.String recurRef)
public static java.lang.String getFormatSum(java.math.BigDecimal sum)
public static java.lang.String getFormatTime(java.util.Date date)