Class ContractTariffDao
java.lang.Object
ru.bitel.common.dao.AbstarctDaoConstant
ru.bitel.common.dao.AbstractDao<B>
ru.bitel.common.dao.AbstractIdDao<ContractTariff>
ru.bitel.bgbilling.kernel.contract.api.server.bean.ContractTariffDao
- All Implemented Interfaces:
- java.lang.AutoCloseable
public class ContractTariffDao extends ru.bitel.common.dao.AbstractIdDao<ContractTariff>
- 
Nested Class SummaryNested classes/interfaces inherited from class ru.bitel.common.dao.AbstractDaoru.bitel.common.dao.AbstractDao.ResultSetIterator
- 
Field SummaryFields inherited from class ru.bitel.common.dao.AbstractDaocacheFilter, cacheJoin, cacheOrderBy, cachePaged, cachePS, cacheWhat, con, getByIdPS, moduleId, orderByPattern, tableNameFields inherited from class ru.bitel.common.dao.AbstarctDaoConstantERROR, fields, SQL_CALC_FOUND_ROWS, SQL_DELETE, SQL_DISTINCT, SQL_EQ, SQL_EQCS, SQL_FROM, SQL_GROUP, SQL_IN, SQL_INSERT, SQL_LIMIT, SQL_ON_DUPLICATE_KEY_UPDATE, SQL_ORDER, SQL_SELECT, SQL_SET, SQL_UPDATE, SQL_VALUES, SQL_WHERE
- 
Constructor SummaryConstructors Constructor Description ContractTariffDao(java.sql.Connection con)
- 
Method SummaryModifier and Type Method Description booleancheckDoubleTariffForContract(int contractId, int tpid, java.util.Calendar date1, java.util.Calendar date2)ContractTariffgetFirst(int contractId, java.util.Date date)Возвращает первый тариф из списка тарифов для договора на определенную датуprotected ContractTariffgetFromRS(java.sql.ResultSet rs)java.util.List<ContractTariff>list(int contractId, java.util.Date date)Возвращает список тарифов для данного договора на определенную датуjava.util.List<ContractTariff>list(int contractId, java.util.Date date, int emid, int eid)Возвращает список тарифов для данного договора на определенную датуprotected voidupdateImpl(ContractTariff contractTariff)Methods inherited from class ru.bitel.common.dao.AbstractIdDaodelete, get, getAndDelete, getAndUpdateMethods inherited from class ru.bitel.common.dao.AbstractDaoclose, delete, deleteImpl, eq, get, getById, getImpl, getListFromRS, getPeriod, getQueryById, getSQLOrder, getTableName, list, list, listImpl, listImpl, listImplPS, listImplPS, ormFromResultSet, ormUpdateImpl, ormUpdateImpl, ormUpdateImpl, ormUpdateImpl, processException, recycle, setStatementParam, updateMethods inherited from class ru.bitel.common.dao.AbstarctDaoConstantgetSQLOrderMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- 
Constructor Details- 
ContractTariffDaopublic ContractTariffDao(java.sql.Connection con)
 
- 
- 
Method Details- 
getFromRSprotected ContractTariff getFromRS(java.sql.ResultSet rs) throws java.sql.SQLException, ru.bitel.bgbilling.common.BGException- Specified by:
- getFromRSin class- ru.bitel.common.dao.AbstractDao<ContractTariff>
- Throws:
- java.sql.SQLException
- ru.bitel.bgbilling.common.BGException
 
- 
updateImplprotected void updateImpl(ContractTariff contractTariff) throws ru.bitel.bgbilling.common.BGException, java.sql.SQLException- Specified by:
- updateImplin class- ru.bitel.common.dao.AbstractDao<ContractTariff>
- Throws:
- ru.bitel.bgbilling.common.BGException
- java.sql.SQLException
 
- 
listpublic java.util.List<ContractTariff> list(int contractId, java.util.Date date) throws ru.bitel.bgbilling.common.BGExceptionВозвращает список тарифов для данного договора на определенную дату- Parameters:
- contractId- код договора
- date- дата
- Returns:
- Throws:
- ru.bitel.bgbilling.common.BGException
 
- 
listpublic java.util.List<ContractTariff> list(int contractId, java.util.Date date, int emid, int eid) throws ru.bitel.bgbilling.common.BGExceptionВозвращает список тарифов для данного договора на определенную дату- Parameters:
- contractId- код договора
- date- дата
- Returns:
- Throws:
- ru.bitel.bgbilling.common.BGException
 
- 
getFirstpublic ContractTariff getFirst(int contractId, java.util.Date date) throws ru.bitel.bgbilling.common.BGExceptionВозвращает первый тариф из списка тарифов для договора на определенную дату- Parameters:
- contractId- код договора
- date- дата
- Returns:
- null - если нету
- Throws:
- ru.bitel.bgbilling.common.BGException
 
- 
checkDoubleTariffForContractpublic boolean checkDoubleTariffForContract(int contractId, int tpid, java.util.Calendar date1, java.util.Calendar date2)
 
-