public class ServiceDao extends ru.bitel.common.dao.AbstractIdDao<Service> implements ru.bitel.common.worker.Recyclable
| Constructor and Description |
|---|
ServiceDao(java.sql.Connection con) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(int contractId,
int id) |
void |
deleteByProduct(int contractId,
int productId) |
protected Service |
getFromRS(java.sql.ResultSet rs) |
java.util.List<Service> |
list(int contractId,
int productId) |
java.util.List<Service> |
list(int moduleId,
int contractId,
int accountId,
boolean kernel,
java.util.Date timeFrom,
java.util.Date timeTo,
java.util.Date timeFromIntersect,
java.util.Date timeToIntersect,
boolean needNonActive,
boolean titleLoad) |
void |
recycle() |
void |
updateDeviceState(int contractId,
int tvAccountId,
int serviceId,
short deviceState) |
protected void |
updateImpl(Service b) |
delete, get, getAndDelete, getAndUpdatepublic java.util.List<Service> list(int contractId, int productId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic java.util.List<Service> list(int moduleId, int contractId, int accountId, boolean kernel, java.util.Date timeFrom, java.util.Date timeTo, java.util.Date timeFromIntersect, java.util.Date timeToIntersect, boolean needNonActive, boolean titleLoad) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionprotected Service getFromRS(java.sql.ResultSet rs) throws java.sql.SQLException, ru.bitel.bgbilling.common.BGException
getFromRS in class ru.bitel.common.dao.AbstractDao<Service>java.sql.SQLExceptionru.bitel.bgbilling.common.BGExceptionprotected void updateImpl(Service b) throws ru.bitel.bgbilling.common.BGException, java.sql.SQLException
updateImpl in class ru.bitel.common.dao.AbstractDao<Service>ru.bitel.bgbilling.common.BGExceptionjava.sql.SQLExceptionpublic void updateDeviceState(int contractId,
int tvAccountId,
int serviceId,
short deviceState)
throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic void delete(int contractId,
int id)
throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic void deleteByProduct(int contractId,
int productId)
throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic void recycle()
recycle in interface ru.bitel.common.worker.Recyclablerecycle in class ru.bitel.common.dao.AbstractDao<Service>