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, getAndUpdate
public java.util.List<Service> list(int contractId, int productId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public 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.BGException
protected 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.SQLException
ru.bitel.bgbilling.common.BGException
protected 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.BGException
java.sql.SQLException
public void updateDeviceState(int contractId, int tvAccountId, int serviceId, short deviceState) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void delete(int contractId, int id) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void deleteByProduct(int contractId, int productId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void recycle()
recycle
in interface ru.bitel.common.worker.Recyclable
recycle
in class ru.bitel.common.dao.AbstractDao<Service>