public class ContractPeriodDao extends ru.bitel.common.dao.AbstractIdDao<ContractPeriod>
Constructor and Description |
---|
ContractPeriodDao(java.sql.Connection con) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
deleteForContract(int contractId) |
java.util.List<ContractPeriod> |
getContractPeriodList(long period) |
protected ContractPeriod |
getFromRS(java.sql.ResultSet rs) |
void |
searchContractPeriod(SearchResult<ContractPeriod> searchResult,
int contractId) |
boolean |
setSentCloseEventFlag(int id) |
protected void |
updateImpl(ContractPeriod contractPeriod) |
delete, get, getAndDelete, getAndUpdate
public void searchContractPeriod(SearchResult<ContractPeriod> searchResult, int contractId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public boolean setSentCloseEventFlag(int id) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
protected ContractPeriod getFromRS(java.sql.ResultSet rs) throws java.sql.SQLException, ru.bitel.bgbilling.common.BGException
getFromRS
in class ru.bitel.common.dao.AbstractDao<ContractPeriod>
java.sql.SQLException
ru.bitel.bgbilling.common.BGException
protected void updateImpl(ContractPeriod contractPeriod) throws ru.bitel.bgbilling.common.BGException, java.sql.SQLException
updateImpl
in class ru.bitel.common.dao.AbstractDao<ContractPeriod>
ru.bitel.bgbilling.common.BGException
java.sql.SQLException
public java.util.List<ContractPeriod> getContractPeriodList(long period) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void deleteForContract(int contractId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void close() throws ru.bitel.bgbilling.common.BGException
close
in interface java.lang.AutoCloseable
close
in class ru.bitel.common.dao.AbstractDao<ContractPeriod>
ru.bitel.bgbilling.common.BGException