public class ContractTariffOptionDao extends ru.bitel.common.dao.AbstractIdDao<ContractTariffOption>
Constructor and Description |
---|
ContractTariffOptionDao(java.sql.Connection con) |
Modifier and Type | Method and Description |
---|---|
static ContractTariffOptionList |
getContractRealtimeTariffOptionList(java.sql.Connection con,
int contractId,
java.util.Date fromTime)
Из даты time_to вычитается одна миллисекунда.
|
ContractTariffOptionList |
getContractRealtimeTariffOptionList(int contractId,
java.util.Date fromTime)
Из даты time_to вычитается одна миллисекунда.
|
protected ContractTariffOption |
getFromRS(java.sql.ResultSet rs) |
static ContractTariffOptionList |
getRoundContractRealtimeTariffOptionList(java.sql.Connection con,
int contractId,
java.util.Date fromTime)
Вовзращает оции , у которых time_from округлено до начала часа .
|
ContractTariffOptionList |
getRoundContractRealtimeTariffOptionList(int contractId,
java.util.Date fromTime)
Вовзращает оции , у которых time_from округлено до начала часа .
|
java.util.List<ContractTariffOption> |
list(int contractId,
java.util.Date date) |
java.util.List<ContractTariffOption> |
list(int contractId,
java.util.Date date,
boolean history,
boolean needNonActive) |
void |
update(ContractTariffOption b) |
void |
update(ContractTariffOption b,
boolean checkDeactivated) |
protected void |
updateImpl(ContractTariffOption contractOption) |
protected void |
updateImpl(ContractTariffOption contractOption,
boolean checkDeactivated) |
delete, get, getAndDelete, getAndUpdate
public java.util.List<ContractTariffOption> list(int contractId, java.util.Date date) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.util.List<ContractTariffOption> list(int contractId, java.util.Date date, boolean history, boolean needNonActive) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public ContractTariffOptionList getContractRealtimeTariffOptionList(int contractId, java.util.Date fromTime) throws java.sql.SQLException
contractId
- fromTime
- java.sql.SQLException
public static ContractTariffOptionList getContractRealtimeTariffOptionList(java.sql.Connection con, int contractId, java.util.Date fromTime) throws java.sql.SQLException
con
- contractId
- fromTime
- java.sql.SQLException
public ContractTariffOptionList getRoundContractRealtimeTariffOptionList(int contractId, java.util.Date fromTime) throws java.sql.SQLException
contractId
- fromTime
- java.sql.SQLException
public static ContractTariffOptionList getRoundContractRealtimeTariffOptionList(java.sql.Connection con, int contractId, java.util.Date fromTime) throws java.sql.SQLException
con
- contractId
- fromTime
- java.sql.SQLException
protected ContractTariffOption getFromRS(java.sql.ResultSet rs) throws java.sql.SQLException
getFromRS
in class ru.bitel.common.dao.AbstractDao<ContractTariffOption>
java.sql.SQLException
public void update(ContractTariffOption b) throws ru.bitel.bgbilling.common.BGException
update
in class ru.bitel.common.dao.AbstractDao<ContractTariffOption>
ru.bitel.bgbilling.common.BGException
public void update(ContractTariffOption b, boolean checkDeactivated) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
protected void updateImpl(ContractTariffOption contractOption) throws ru.bitel.bgbilling.common.BGException, java.sql.SQLException
updateImpl
in class ru.bitel.common.dao.AbstractDao<ContractTariffOption>
ru.bitel.bgbilling.common.BGException
java.sql.SQLException
protected void updateImpl(ContractTariffOption contractOption, boolean checkDeactivated) throws ru.bitel.bgbilling.common.BGException, java.sql.SQLException
ru.bitel.bgbilling.common.BGException
java.sql.SQLException