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, getAndUpdate
close, delete, deleteImpl, eq, get, getById, getImpl, getListFromRS, getPeriod, getSQLOrder, getTableName, list, list, listImpl, listImpl, listImplPS, listImplPS, ormFromResultSet, ormUpdateImpl, ormUpdateImpl, processException, setStatementParam
protected ProductPeriod getFromRS(java.sql.ResultSet rs) throws java.sql.SQLException
getFromRS
in class ru.bitel.common.dao.AbstractDao<ProductPeriod>
java.sql.SQLException
public void update(ProductPeriod b) throws ru.bitel.bgbilling.common.BGException
update
in class ru.bitel.common.dao.AbstractDao<ProductPeriod>
ru.bitel.bgbilling.common.BGException
protected 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.BGException
java.sql.SQLException
public int addFlag(int id, int flag) throws java.sql.SQLException
java.sql.SQLException
public int updatePeriod(int id, java.util.Date time, java.util.Date prolongationTime) throws java.sql.SQLException
id
- flag
- java.sql.SQLException
ProductPeriod}
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.BGException
public 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.BGException
public int deleteByProductId(int contractId, int id) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.util.List<ProductPeriod> list(int contractId, int productId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void recycle() throws ru.bitel.bgbilling.common.BGException
recycle
in class ru.bitel.common.dao.AbstractDao<ProductPeriod>
ru.bitel.bgbilling.common.BGException