Class VoiceCostMapItemDao
java.lang.Object
ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
ru.bitel.common.dao.AbstarctDaoConstant
ru.bitel.common.dao.AbstractDao<B>
ru.bitel.common.dao.AbstractIdDao<VoiceCostMapItem>
ru.bitel.bgbilling.modules.voice.server.bean.code.VoiceCostMapItemDao
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from class ru.bitel.common.dao.AbstractDao
ru.bitel.common.dao.AbstractDao.ResultSetIterator -
Field Summary
Fields inherited from class ru.bitel.common.dao.AbstractDao
cacheFilter, cacheJoin, cacheOrderBy, cachePaged, cachePS, cacheWhat, con, getByIdPS, moduleId, orderByPattern, tableNameFields inherited from class ru.bitel.common.dao.AbstarctDaoConstant
ERROR, fields, SQL_ALL, SQL_AND, SQL_CALC_FOUND_ROWS, SQL_DELETE, SQL_DISTINCT, SQL_EQ, SQL_EQCS, SQL_FROM, SQL_GROUP, SQL_IN, SQL_INSERT, SQL_JOIN, SQL_LEFT_JOIN, SQL_LIMIT, SQL_NOT_IN, SQL_ON, SQL_ON_DUPLICATE_KEY_UPDATE, SQL_ORDER, SQL_SELECT, SQL_SET, SQL_UPDATE, SQL_VALUES, SQL_WHERE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncodeMap(int codeId, int costMapId) voiddeleteByMapId(int id) protected VoiceCostMapItemprotected VoiceCostMapItemgetImpl(int id) list(int codeId, int costMapId) Получение списка всех элементов определенной карты цен на все датыПолучение списка элементов определенной карты цен на определенную дату с подгрузкой названий геокодов и направлений.voidupdate(VoiceCostMapItem item) voidupdateHistory(List<VoiceCostMapItem> itemHistory) Запись истории изменений карты цен.protected voidupdateImpl(VoiceCostMapItem item) Methods inherited from class ru.bitel.common.dao.AbstractIdDao
delete, executeUpdate, get, getAndDelete, getAndUpdate, optMethods inherited from class ru.bitel.common.dao.AbstractDao
close, delete, deleteImpl, eq, get, getById, getListFromRS, getPeriod, getQueryById, getSQLOrder, getTableName, list, list, listImpl, listImpl, listImplPS, listImplPS, ormFromResultSet, ormUpdateImpl, ormUpdateImpl, ormUpdateImpl, ormUpdateImpl, processException, setStatementParamMethods inherited from class ru.bitel.common.dao.AbstarctDaoConstant
getSQLOrderMethods inherited from class ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
error, error, error, getLogger, logError, logError, warn
-
Constructor Details
-
VoiceCostMapItemDao
-
-
Method Details
-
getFromRS
protected VoiceCostMapItem getFromRS(ResultSet rs) throws SQLException, ru.bitel.bgbilling.common.BGException - Specified by:
getFromRSin classru.bitel.common.dao.AbstractDao<VoiceCostMapItem>- Throws:
SQLExceptionru.bitel.bgbilling.common.BGException
-
getImpl
protected VoiceCostMapItem getImpl(int id) throws ru.bitel.bgbilling.common.BGException, SQLException - Overrides:
getImplin classru.bitel.common.dao.AbstractDao<VoiceCostMapItem>- Throws:
ru.bitel.bgbilling.common.BGExceptionSQLException
-
update
- Overrides:
updatein classru.bitel.common.dao.AbstractDao<VoiceCostMapItem>- Throws:
ru.bitel.bgbilling.common.BGException
-
updateImpl
protected void updateImpl(VoiceCostMapItem item) throws ru.bitel.bgbilling.common.BGException, SQLException - Specified by:
updateImplin classru.bitel.common.dao.AbstractDao<VoiceCostMapItem>- Throws:
ru.bitel.bgbilling.common.BGExceptionSQLException
-
list
public List<VoiceCostMapItem> list(int costMapId, Date date) throws ru.bitel.bgbilling.common.BGException Получение списка элементов определенной карты цен на определенную дату с подгрузкой названий геокодов и направлений.- Parameters:
costMapId- код карты цен, элементы которой необходимо получитьdate- дата, на которую нужно получить список элементов карты цен.- Returns:
- Throws:
ru.bitel.bgbilling.common.BGException
-
list
public List<VoiceCostMapItem> list(int codeId, int costMapId) throws ru.bitel.bgbilling.common.BGException Получение списка всех элементов определенной карты цен на все даты- Parameters:
costMapId- код карты цен, элементы которой необходимо получитьdate- дата, на которую нужно получить список элементов карты цен.- Returns:
- Throws:
ru.bitel.bgbilling.common.BGException
-
deleteByMapId
public void deleteByMapId(int id) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
codeMap
public Map<Integer,List<VoiceCostMapItem>> codeMap(int codeId, int costMapId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
updateHistory
public void updateHistory(List<VoiceCostMapItem> itemHistory) throws ru.bitel.bgbilling.common.BGException Запись истории изменений карты цен. Заключается в полном удалении имеющихся записей и записью тех, что пришли в запросе от клиента.- Parameters:
itemHistory- список изменений цен для кода, в котором могло поменяться направление и даты- Throws:
ru.bitel.bgbilling.common.BGException
-