public class ProductPeriodDao extends ru.bitel.common.dao.AbstractIdDao<ProductPeriod>
| Constructor and Description |
|---|
ProductPeriodDao(java.sql.Connection con,
int userId) |
| Modifier and Type | Method and Description |
|---|---|
int |
addFlag(int id,
int flag) |
int |
deleteByProductId(int contractId,
int id) |
protected ProductPeriod |
getFromRS(java.sql.ResultSet rs) |
java.util.List<ProductPeriod> |
list(int contractId,
int productId) |
java.util.List<ProductPeriod> |
list(int moduleId,
int contractId,
int accountId,
boolean kernel,
java.util.Date time) |
java.util.List<ProductPeriod> |
list(int moduleId,
int contractId,
int accountId,
boolean kernel,
java.util.Date timeFrom,
java.util.Date timeTo,
boolean needNonActive) |
void |
recycle() |
void |
update(ProductPeriod b) |
protected void |
updateImpl(ProductPeriod productPeriod) |
int |
updatePeriod(int id,
java.util.Date time,
java.util.Date prolongationTime) |
delete, get, getAndDelete, getAndUpdateprotected ProductPeriod getFromRS(java.sql.ResultSet rs) throws java.sql.SQLException
getFromRS in class ru.bitel.common.dao.AbstractDao<ProductPeriod>java.sql.SQLExceptionpublic void update(ProductPeriod b) throws ru.bitel.bgbilling.common.BGException
update in class ru.bitel.common.dao.AbstractDao<ProductPeriod>ru.bitel.bgbilling.common.BGExceptionprotected void updateImpl(ProductPeriod productPeriod) throws ru.bitel.bgbilling.common.BGException, java.sql.SQLException
updateImpl in class ru.bitel.common.dao.AbstractDao<ProductPeriod>ru.bitel.bgbilling.common.BGExceptionjava.sql.SQLExceptionpublic int addFlag(int id,
int flag)
throws java.sql.SQLException
java.sql.SQLExceptionpublic int updatePeriod(int id,
java.util.Date time,
java.util.Date prolongationTime)
throws java.sql.SQLException
id - flag - java.sql.SQLExceptionProductPeriod}public java.util.List<ProductPeriod> list(int moduleId, int contractId, int accountId, boolean kernel, java.util.Date time) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic java.util.List<ProductPeriod> list(int moduleId, int contractId, int accountId, boolean kernel, java.util.Date timeFrom, java.util.Date timeTo, boolean needNonActive) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic int deleteByProductId(int contractId,
int id)
throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic java.util.List<ProductPeriod> list(int contractId, int productId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic void recycle()
throws ru.bitel.bgbilling.common.BGException
recycle in class ru.bitel.common.dao.AbstractDao<ProductPeriod>ru.bitel.bgbilling.common.BGException