Class TransactionManager
java.lang.Object
ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
ru.bitel.common.dao.AbstarctDaoConstant
ru.bitel.common.dao.AbstractDao<B>
ru.bitel.common.dao.AbstractIdDao<B>
ru.bitel.bgbilling.server.bean.AbstractTransactionManager<Transaction>
ru.bitel.bgbilling.modules.payonline.server.bean.TransactionManager
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from class ru.bitel.common.dao.AbstractDao
ru.bitel.common.dao.AbstractDao.ResultSetIterator
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
Fields inherited from class ru.bitel.bgbilling.server.bean.AbstractTransactionManager
moduleSetup
Fields inherited from class ru.bitel.common.dao.AbstractDao
cacheFilter, cacheJoin, cacheOrderBy, cachePaged, cachePS, cacheWhat, con, getByIdPS, moduleId, orderByPattern, tableName
Fields inherited from class ru.bitel.common.dao.AbstarctDaoConstant
ERROR, fields, SQL_ALL, SQL_AND, SQL_CALC_FOUND_ROWS, SQL_DELETE, SQL_DISTINCT, SQL_EQ, SQL_EQCS, SQL_FROM, SQL_GROUP, SQL_IN, SQL_INSERT, SQL_JOIN, SQL_LEFT_JOIN, SQL_LIMIT, SQL_NOT_IN, SQL_ON, SQL_ON_DUPLICATE_KEY_UPDATE, SQL_ORDER, SQL_SELECT, SQL_SET, SQL_UPDATE, SQL_VALUES, SQL_WHERE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPaymentToTransaction
(long transactionId, int paymentId, int paymentType) void
addUserData
(int contactId, String cardNumber, String rebillAnchor) Добавление в БД информации о карте (4 последние цифры) и пользователе этой карты (rebillAnchor - это фактически id пользователя в системе payonline)void
deletePaymentToTransaction
(long transactionId) getByTransId
(long transId) protected Transaction
protected Transaction
getList()
getList
(int contractId) int
getPaymentIdToTransaction
(long transactionId, int paymentType) void
searchTransaction
(SearchResult<Transaction> searchResult, int contractId, String contractTitle, String transactionStatus) protected void
Methods inherited from class ru.bitel.bgbilling.server.bean.AbstractTransactionManager
doConnection, doConnection, getParameter, getParamString, getParamString, getParamString, psStatus, queryStatus, searchTransaction, setConnectionTimeout, setParameter
Methods inherited from class ru.bitel.common.dao.AbstractIdDao
delete, get, getAndDelete, getAndUpdate, opt
Methods inherited from class ru.bitel.common.dao.AbstractDao
close, delete, deleteImpl, eq, get, getById, getImpl, getListFromRS, getPeriod, getQueryById, getSQLOrder, getTableName, list, list, listImpl, listImpl, listImplPS, listImplPS, ormFromResultSet, ormUpdateImpl, ormUpdateImpl, ormUpdateImpl, ormUpdateImpl, processException, setStatementParam, update
Methods inherited from class ru.bitel.common.dao.AbstarctDaoConstant
getSQLOrder
Methods inherited from class ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
getLogger, logError
-
Field Details
-
PAYMENT_TYPE_PAYMENT
public static final int PAYMENT_TYPE_PAYMENT- See Also:
-
PAYMENT_TYPE_CHARGE
public static final int PAYMENT_TYPE_CHARGE- See Also:
-
-
Constructor Details
-
TransactionManager
-
-
Method Details
-
updateImpl
- Specified by:
updateImpl
in classru.bitel.common.dao.AbstractDao<Transaction>
- Throws:
ru.bitel.bgbilling.common.BGException
SQLException
-
getFromRS
protected Transaction getFromRS(ResultSet rs) throws SQLException, ru.bitel.bgbilling.common.BGException - Specified by:
getFromRS
in classru.bitel.common.dao.AbstractDao<Transaction>
- Throws:
SQLException
ru.bitel.bgbilling.common.BGException
-
getFromRS
protected Transaction getFromRS(ResultSet rs, boolean setContractTitle) throws SQLException, ru.bitel.bgbilling.common.BGException - Throws:
SQLException
ru.bitel.bgbilling.common.BGException
-
searchTransaction
public void searchTransaction(SearchResult<Transaction> searchResult, int contractId, String contractTitle, String transactionStatus) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
getList
- Throws:
ru.bitel.bgbilling.common.BGException
-
getList
- Throws:
ru.bitel.bgbilling.common.BGException
-
getList
public List<Transaction> getList(int contractId, Period period) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
getByTransId
- Throws:
ru.bitel.bgbilling.common.BGException
-
addUserData
public void addUserData(int contactId, String cardNumber, String rebillAnchor) throws ru.bitel.bgbilling.common.BGException Добавление в БД информации о карте (4 последние цифры) и пользователе этой карты (rebillAnchor - это фактически id пользователя в системе payonline)- Parameters:
contactId
- код договораcardNumber
- номер карты (последние 4 цифры)rebillAnchor
- идентификатор пользователя в системе payonline- Throws:
ru.bitel.bgbilling.common.BGException
-
addPaymentToTransaction
public void addPaymentToTransaction(long transactionId, int paymentId, int paymentType) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
deletePaymentToTransaction
public void deletePaymentToTransaction(long transactionId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
getPaymentIdToTransaction
public int getPaymentIdToTransaction(long transactionId, int paymentType) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-