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 void |
addTransactionParameters(Transaction transaction,
java.lang.String params) |
void |
addTransactionPayment(Transaction transaction,
java.lang.String transactionParameters) |
boolean |
check(Transaction transaction,
org.json.JSONObject resultJsonObject) |
void |
doCharge(Transaction transaction,
Autopayment autopayment) |
void |
doCheckRequest(int contractId,
boolean autopaymentTransaction) |
void |
doResend() |
protected Transaction |
getFromRS(java.sql.ResultSet rs) |
protected Transaction |
getImpl(int transactionId) |
java.lang.String |
getToken(org.json.JSONObject requestJsonObject,
java.lang.String password) |
static void |
main(java.lang.String[] args) |
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,
boolean autopaymentTransaction,
boolean requestBindingId) |
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,
boolean autopaymentTransaction,
boolean requestBindingId,
java.lang.String returnUrl) |
protected void |
setConnectionTimeout(javax.net.ssl.HttpsURLConnection connection) |
boolean |
update(Transaction transaction,
TransactionStatus newTransactionStatus) |
protected void |
updateImpl(Transaction transaction) |
doConnection, doConnection, psStatus, queryStatus, searchTransaction, searchTransaction
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 Transaction getImpl(int transactionId) throws ru.bitel.bgbilling.common.BGException, java.sql.SQLException
getImpl
in class ru.bitel.common.dao.AbstractDao<Transaction>
ru.bitel.bgbilling.common.BGException
java.sql.SQLException
public boolean update(Transaction transaction, TransactionStatus newTransactionStatus) throws ru.bitel.bgbilling.common.BGException
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 void doResend() throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void doCheckRequest(int contractId, boolean autopaymentTransaction) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public boolean check(Transaction transaction, org.json.JSONObject resultJsonObject) throws ru.bitel.bgbilling.common.BGException
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, boolean autopaymentTransaction, boolean requestBindingId) throws ru.bitel.bgbilling.common.BGException
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, boolean autopaymentTransaction, boolean requestBindingId, java.lang.String returnUrl) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void doCharge(Transaction transaction, Autopayment autopayment) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void addTransactionPayment(Transaction transaction, java.lang.String transactionParameters) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public static void addTransactionParameters(Transaction transaction, java.lang.String params)
protected void setConnectionTimeout(javax.net.ssl.HttpsURLConnection connection)
setConnectionTimeout
in class AbstractTransactionManager<Transaction>
public java.lang.String getToken(org.json.JSONObject requestJsonObject, java.lang.String password)
public static void main(java.lang.String[] args)