public class TransactionManager extends AbstractTransactionManager<Transaction>
Modifier and Type | Field and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
fields |
moduleSetup
Constructor and Description |
---|
TransactionManager(java.sql.Connection con,
int mid) |
Modifier and Type | Method and Description |
---|---|
void |
doAutopaymentRequest(int contractId,
java.lang.String contractTitle,
java.lang.String customerAddress,
java.lang.String recurrentOrderId,
java.math.BigDecimal sum) |
protected Transaction |
getById(int id) |
protected Transaction |
getFromRS(java.sql.ResultSet rs) |
protected int |
psStatus(java.sql.PreparedStatement ps,
java.lang.String status,
int index) |
protected void |
queryStatus(java.lang.StringBuilder query,
java.lang.String status) |
Transaction |
registerOrder(int contractId,
java.lang.String contractTitle,
java.lang.String customerAddress,
java.lang.String customerAddress2,
java.math.BigDecimal sum,
java.util.Map<java.lang.String,java.lang.Object> dataMap,
boolean requestRecurrentOrderId) |
static java.lang.String |
signVer2(java.lang.String method,
java.lang.String url,
java.util.Map<java.lang.String,java.lang.String> params,
java.lang.String secretKey) |
protected void |
updateImpl(Transaction transaction) |
doConnection, doConnection, searchTransaction, searchTransaction, setConnectionTimeout
delete, get, getAndDelete, getAndUpdate
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 registerOrder(int contractId, java.lang.String contractTitle, java.lang.String customerAddress, java.lang.String customerAddress2, java.math.BigDecimal sum, java.util.Map<java.lang.String,java.lang.Object> dataMap, boolean requestRecurrentOrderId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void doAutopaymentRequest(int contractId, java.lang.String contractTitle, java.lang.String customerAddress, java.lang.String recurrentOrderId, java.math.BigDecimal sum)
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
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
public static java.lang.String signVer2(java.lang.String method, java.lang.String url, java.util.Map<java.lang.String,java.lang.String> params, java.lang.String secretKey) throws java.net.URISyntaxException, java.io.UnsupportedEncodingException, java.security.NoSuchAlgorithmException, java.security.InvalidKeyException
java.net.URISyntaxException
java.io.UnsupportedEncodingException
java.security.NoSuchAlgorithmException
java.security.InvalidKeyException