public class SubscriptionDao extends ru.bitel.common.dao.AbstractIdDao<Subscription>
Modifier and Type | Field and Description |
---|---|
protected int |
userId |
Constructor and Description |
---|
SubscriptionDao(java.sql.Connection con,
int moduleId,
int userId) |
Modifier and Type | Method and Description |
---|---|
void |
addDetail(CostSumTime costSumTime,
int registrationPeriodId)
Добавление записи в таблицу детализации наработки
|
java.util.List<CostSumTime> |
getAmountDetail(int contractId,
PeriodWithTime period) |
protected Subscription |
getFromRS(java.sql.ResultSet rs) |
java.util.List<Subscription> |
list(int contractId) |
protected void |
updateImpl(Subscription subscription) |
void |
updateRegistrationPeriodId(int subscriptionId,
int registrationPeriodId) |
void |
updateSubscriptionJobId(int subscriptionId,
long subscriptionJobId) |
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 SubscriptionDao(java.sql.Connection con, int moduleId, int userId)
con
- moduleId
- userId
- protected Subscription getFromRS(java.sql.ResultSet rs) throws java.sql.SQLException, ru.bitel.bgbilling.common.BGException
getFromRS
in class ru.bitel.common.dao.AbstractDao<Subscription>
java.sql.SQLException
ru.bitel.bgbilling.common.BGException
protected void updateImpl(Subscription subscription) throws ru.bitel.bgbilling.common.BGException, java.sql.SQLException
updateImpl
in class ru.bitel.common.dao.AbstractDao<Subscription>
ru.bitel.bgbilling.common.BGException
java.sql.SQLException
public void updateRegistrationPeriodId(int subscriptionId, int registrationPeriodId) throws ru.bitel.bgbilling.common.BGException
subscriptionId
- registrationPeriodId
- ru.bitel.bgbilling.common.BGException
public void updateSubscriptionJobId(int subscriptionId, long subscriptionJobId) throws ru.bitel.bgbilling.common.BGException
subscriptionId
- subscriptionJobId
- ru.bitel.bgbilling.common.BGException
public java.util.List<Subscription> list(int contractId) throws ru.bitel.bgbilling.common.BGException
contractId
- ru.bitel.bgbilling.common.BGException
public void addDetail(CostSumTime costSumTime, int registrationPeriodId) throws ru.bitel.bgbilling.common.BGException
contractId
- код договораserviceId
- код услугиsumm
- сумма наработкиru.bitel.bgbilling.common.BGException
public java.util.List<CostSumTime> getAmountDetail(int contractId, PeriodWithTime period) throws ru.bitel.bgbilling.common.BGException
contractId
- period
- ru.bitel.bgbilling.common.BGException