public class TransactionManager extends ru.bitel.common.dao.AbstractIdDao<Transaction>
Modifier and Type | Field and Description |
---|---|
static int |
ERR_ALREADY_PAYED |
static int |
ERR_OFF |
static int |
ERR_TEST_MODE |
static int |
ERR_UNIQUE_INVS |
static int |
ERR_UNIQUE_TRANS |
static int |
ERR_WRONG_CONTRACT_ID |
static int |
ERR_WRONG_HASH |
static int |
ERR_WRONG_PAYMENT_ID |
static int |
ERR_WRONG_PAYMENT_TYPE |
static int |
ERR_WRONG_RECIEVER_PURSE |
static int |
ERR_WRONG_REMOTE_HOST |
static int |
ERR_WRONG_REQUEST |
static int |
ERR_WRONG_SUMM |
java.util.Map<java.lang.String,java.lang.String> |
fields |
Constructor and Description |
---|
TransactionManager(java.sql.Connection con,
int moduleId) |
Modifier and Type | Method and Description |
---|---|
int |
checkAndUpdateWMPayment(int contractId,
WMRequest request,
int sysMode)
Проверяет запрос и возвращает ошибки.
|
int |
getFirstYear(int cid) |
protected Transaction |
getFromRS(java.sql.ResultSet rs) |
protected Transaction |
getFromRS(java.sql.ResultSet rs,
boolean contractTitle) |
static java.lang.String |
getPaymentComment(java.sql.Connection con,
java.lang.String pattern,
Transaction transaction) |
Transaction |
getWMPayment(int cid,
int id) |
java.util.List<Transaction> |
getWMPaymentList(java.util.Calendar from,
java.util.Calendar until,
int status,
java.lang.String contractTitle,
java.lang.String wmId,
java.lang.String wmPayId) |
java.lang.String |
logResult(int result) |
void |
searchTransaction(SearchResult<Transaction> searchResult,
int contractId,
java.lang.String contractTitle,
java.lang.String status) |
protected void |
updateImpl(Transaction transaction) |
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 ERR_WRONG_REQUEST
public static final int ERR_WRONG_REMOTE_HOST
public static final int ERR_WRONG_HASH
public static final int ERR_WRONG_RECIEVER_PURSE
public static final int ERR_TEST_MODE
public static final int ERR_WRONG_PAYMENT_ID
public static final int ERR_WRONG_CONTRACT_ID
public static final int ERR_WRONG_SUMM
public static final int ERR_ALREADY_PAYED
public static final int ERR_UNIQUE_INVS
public static final int ERR_UNIQUE_TRANS
public static final int ERR_OFF
public static final int ERR_WRONG_PAYMENT_TYPE
public java.util.Map<java.lang.String,java.lang.String> fields
public TransactionManager(java.sql.Connection con, int moduleId)
public java.util.List<Transaction> getWMPaymentList(java.util.Calendar from, java.util.Calendar until, int status, java.lang.String contractTitle, java.lang.String wmId, java.lang.String wmPayId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void searchTransaction(SearchResult<Transaction> searchResult, int contractId, java.lang.String contractTitle, java.lang.String status) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public Transaction getWMPayment(int cid, int id)
public int checkAndUpdateWMPayment(int contractId, WMRequest request, int sysMode) throws ru.bitel.bgbilling.common.BGException
request
- ru.bitel.bgbilling.common.BGException
public int getFirstYear(int cid)
public java.lang.String logResult(int result)
public static java.lang.String getPaymentComment(java.sql.Connection con, java.lang.String pattern, Transaction transaction)
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 contractTitle) throws java.sql.SQLException, ru.bitel.bgbilling.common.BGException
java.sql.SQLException
ru.bitel.bgbilling.common.BGException
protected void updateImpl(Transaction transaction) 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