public class ProductDao extends ru.bitel.common.dao.AbstractIdDao<Product>
Modifier and Type | Field and Description |
---|---|
protected java.sql.PreparedStatement |
getByContractAndIdPS |
Constructor and Description |
---|
ProductDao(java.sql.Connection con,
int userId) |
Modifier and Type | Method and Description |
---|---|
void |
checkProductSpecActivationModeDelete(int activationModeId) |
void |
checkProductSpecDelete(int productSpecId) |
void |
deactivate(Product product,
boolean customer) |
int |
delete(int contractId,
int id) |
Product |
get(int contractId,
int id) |
Product |
getAndDelete(int contractId,
int id) |
protected Product |
getFromRS(java.sql.ResultSet rs) |
java.util.List<Product> |
list(int moduleId,
int contractId,
int accountId,
boolean kernel,
java.util.Date time) |
java.util.List<Product> |
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 productId,
java.lang.String deviceProductId,
short deviceState)
Обновление состояния продукта.
|
protected void |
updateImpl(Product product) |
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, update
protected Product getFromRS(java.sql.ResultSet rs) throws java.sql.SQLException
getFromRS
in class ru.bitel.common.dao.AbstractDao<Product>
java.sql.SQLException
protected void updateImpl(Product product) throws ru.bitel.bgbilling.common.BGException, java.sql.SQLException
updateImpl
in class ru.bitel.common.dao.AbstractDao<Product>
ru.bitel.bgbilling.common.BGException
java.sql.SQLException
public void deactivate(Product product, boolean customer) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.util.List<Product> 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<Product> 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
moduleId
- ID модуля, если <0, то продукты всех модулей, ==0 - продукты ядраcontractId
- ID договораaccountId
- kernel
- включать ли продукты ядра, если moduleId >=0timeFrom
- timeTo
- timeFromIntersect
- timeToIntersect
- needNonActive
- titleLoad
- ru.bitel.bgbilling.common.BGException
public int delete(int contractId, int id) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void updateDeviceState(int contractId, int tvAccountId, int productId, java.lang.String deviceProductId, short deviceState) throws ru.bitel.bgbilling.common.BGException
contractId
- ID договораtvAccountId
- ID аккаунтаproductId
- ID продуктаdeviceProductId
- новый ID продукта на MW (внешний ID)deviceState
- новое состояние продукта на MW (внешнее состояние)ru.bitel.bgbilling.common.BGException
public Product get(int contractId, int id) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public Product getAndDelete(int contractId, int id) 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<Product>
ru.bitel.bgbilling.common.BGException
public void checkProductSpecDelete(int productSpecId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void checkProductSpecActivationModeDelete(int activationModeId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException