public class TransactionManager extends AbstractTransactionManager<Transaction>
Modifier and Type | Field and Description |
---|---|
static int |
PAYMENT_TYPE_CHARGE |
static int |
PAYMENT_TYPE_PAYMENT |
logger, moduleSetup
Constructor and Description |
---|
TransactionManager(java.sql.Connection con,
int moduleId) |
Modifier and Type | Method and Description |
---|---|
void |
addPaymentToTransaction(long transactionId,
int paymentId,
int paymentType) |
void |
addUserData(int contactId,
java.lang.String cardNumber,
java.lang.String rebillAnchor)
Добавление в БД информации о карте (4 последние цифры) и пользователе
этой карты (rebillAnchor - это фактически id пользователя в системе payonline)
|
void |
deletePaymentToTransaction(long transactionId) |
Transaction |
getByTransId(long transId) |
protected Transaction |
getFromRS(java.sql.ResultSet rs) |
protected Transaction |
getFromRS(java.sql.ResultSet rs,
boolean setContractTitle) |
java.util.List<Transaction> |
getList() |
java.util.List<Transaction> |
getList(int contractId) |
java.util.List<Transaction> |
getList(int contractId,
Period period) |
int |
getPaymentIdToTransaction(long transactionId,
int paymentType) |
void |
searchTransaction(SearchResult<Transaction> searchResult,
int contractId,
java.lang.String contractTitle,
java.lang.String transactionStatus) |
protected void |
updateImpl(Transaction b) |
doConnection, doConnection, getParameter, psStatus, queryStatus, searchTransaction, setConnectionTimeout, 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 static final int PAYMENT_TYPE_PAYMENT
public static final int PAYMENT_TYPE_CHARGE
public TransactionManager(java.sql.Connection con, int moduleId)
protected void updateImpl(Transaction b) throws ru.bitel.bgbilling.common.BGException, java.sql.SQLException
updateImpl
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 Transaction getFromRS(java.sql.ResultSet rs, boolean setContractTitle) throws java.sql.SQLException, ru.bitel.bgbilling.common.BGException
java.sql.SQLException
ru.bitel.bgbilling.common.BGException
public void searchTransaction(SearchResult<Transaction> searchResult, int contractId, java.lang.String contractTitle, java.lang.String transactionStatus) throws ru.bitel.bgbilling.common.BGException
searchTransaction
in class AbstractTransactionManager<Transaction>
ru.bitel.bgbilling.common.BGException
public java.util.List<Transaction> getList() throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.util.List<Transaction> getList(int contractId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.util.List<Transaction> getList(int contractId, Period period) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public Transaction getByTransId(long transId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void addUserData(int contactId, java.lang.String cardNumber, java.lang.String rebillAnchor) throws ru.bitel.bgbilling.common.BGException
contactId
- код договораcardNumber
- номер карты (последние 4 цифры)rebillAnchor
- идентификатор пользователя в системе payonlineru.bitel.bgbilling.common.BGException
public void addPaymentToTransaction(long transactionId, int paymentId, int paymentType) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void deletePaymentToTransaction(long transactionId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public int getPaymentIdToTransaction(long transactionId, int paymentType) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException