Class TariffPlanDao
java.lang.Object
ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
ru.bitel.bgbilling.common.dao.AbstractDaoConstant
ru.bitel.bgbilling.common.dao.AbstractDao<TariffPlan>
ru.bitel.bgbilling.common.dao.AbstractIdDao<TariffPlan>
ru.bitel.bgbilling.common.dao.AbstractDirectoryIdDao<TariffPlan>
ru.bitel.bgbilling.kernel.tariff.server.dao.TariffPlanDao
- All Implemented Interfaces:
Directory<TariffPlan>
Управление объектами типа
TariffPlan-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class ru.bitel.bgbilling.common.dao.AbstractDao
ru.bitel.bgbilling.common.dao.AbstractDao.ListParams -
Field Summary
FieldsFields inherited from class ru.bitel.bgbilling.common.dao.AbstractDao
orderByPatternFields inherited from class ru.bitel.bgbilling.common.dao.AbstractDaoConstant
con, ERROR, fields, moduleId, SQL_ALL, SQL_AND, 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_ORDER, SQL_SELECT, SQL_SET, SQL_UPDATE, SQL_VALUES, SQL_WHERE, tableName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcopyTariffPlan(int tariffPlanId) Создает новый тарифный план, полностью аналогичный заданномуintСоздает новый тарифный план с такими же значениями полей, как и у заданного плана.protected TariffPlanВозвращает список модулей для которых может быть определено тарифное деревоgetModuleTrees(int treeId) getTariffContractCount(List<Integer> tariffIds) getTariffPlanList(int defaultTariffPlanId, List<Integer> contractLabelIds, int face, String title) Возвращает список тарифных планов по фильтруgetTariffPlanList(List<Integer> idFilter) Deprecated.Получение Map с ключами Integer - код тарифа и значениями типа TariffPlanintgetTariffPlanTreeId(int tariffPlanId) protected intinsertNode(PreparedStatement psInsertNode, ru.bitel.bgbilling.kernel.tariff.server.dao.TreeNode treeNode) protected intinsertNodeCopy(Map<Integer, Integer> linkNodeIds, PreparedStatement psInsertNode, Map<Integer, ru.bitel.bgbilling.kernel.tariff.server.dao.TreeNode> oldNodeMap, ru.bitel.bgbilling.kernel.tariff.server.dao.TreeNode oldTreeNode) list()Список всех объектовTariffPlanс сортировкой по названиюСписок объектовTariffPlanупорядоченный по названиюvoidsearchTariffPlans(SearchResult<TariffPlan> searchResult, TariffPlanSearchParameters tariffPlanSearchParameters) protected voidupdateImpl(TariffPlan tariffPlan) booleanusesModule(int tariffPlanId, int moduleId) Проверяет, использует ли тарифный план данный модульMethods inherited from class ru.bitel.bgbilling.common.dao.AbstractDirectoryIdDao
deleteDirectoryItem, directoryItems, directoryItemsImpl, getDirectoryItem, getDirectoryItem, getDirectoryItemIdImpl, getDirectoryItemTitleImpl, updateDirectoryItemMethods inherited from class ru.bitel.bgbilling.common.dao.AbstractIdDao
delete, executeUpdate, get, getAndDelete, getAndUpdate, loadData, opt, prepareStatement, sqlCommand, sqlCommandAndTable, sqlInsertValues, sqlQuery, sqlUpdateSet, sqlWhereIdMethods inherited from class ru.bitel.bgbilling.common.dao.AbstractDao
deleteImpl, dropTemporaryTable, eq, get, getById, getImpl, getListFromRS, getPeriod, getQueryById, getQueryWithFilter, getSQLOrder, list, list, listCountImplPS, listImpl, listImplPS, ormFromResultSet, ormUpdateImpl, ormUpdateImpl, ormUpdateImpl, ormUpdateImpl, queryPeriod, setPageRecordCount, updateMethods inherited from class ru.bitel.bgbilling.common.dao.AbstractDaoConstant
getPlaceholders, getSQLOrder, getSQLOrderFields, getTableName, psSetDate, psSetDateOrNull, psSetInt, psSetIntOrNull, psSetPeriod, psSetString, psSetStringOrNull, psSetTimestampOrNull, queryAndIn, setStatementParam, sqlDelete, sqlDeleteBatch, sqlInsert, sqlInsertBatch, sqlInsertGetId, sqlInsertGetLongId, sqlInsertOnDuplicateKeyUpdate, sqlInsertSelect, sqlInsertUpdateById, sqlSelectCountAsInt, sqlUpdate, sqlUpdateBatchMethods inherited from class ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
error, error, error, getLogger, logError, logError, warnMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ru.bitel.bgbilling.kernel.directory.api.common.bean.Directory
optDirectoryItem
-
Field Details
-
TABLE_TARIFF_PLAN
- See Also:
-
-
Constructor Details
-
TariffPlanDao
-
-
Method Details
-
getTariffPlanMap
Получение Map с ключами Integer - код тарифа и значениями типа TariffPlan- Returns:
- Map
- Throws:
ru.bitel.bgbilling.common.BGExceptionSQLException
-
list
Список всех объектовTariffPlanс сортировкой по названию- Overrides:
listin classru.bitel.bgbilling.common.dao.AbstractDao<TariffPlan>- Returns:
- List
- Throws:
ru.bitel.bgbilling.common.BGExceptionSQLException
-
getTariffPlanList
Deprecated.Uselist(List<Integer>)insteadСписок объектовTariffPlanупорядоченный по названию- Parameters:
idFilter- - cписок-фильтр с кодами тарифов- Returns:
- List
- Throws:
ru.bitel.bgbilling.common.BGExceptionSQLException
-
list
Список объектовTariffPlanупорядоченный по названию- Parameters:
idFilter- - cписок-фильтр с кодами тарифов- Returns:
- List
- Throws:
ru.bitel.bgbilling.common.BGExceptionSQLException
-
getTariffPlanList
public List<TariffPlan> getTariffPlanList(int defaultTariffPlanId, List<Integer> contractLabelIds, int face, String title) throws SQLException Возвращает список тарифных планов по фильтру- Parameters:
defaultTariffPlanId- код тарифного плана, который должен быть включен в список независимо от того, удовлетворяет он фильтру или нетface- физ или юр лицо, для которого предписан тарифtitle- номер договора, который должен удовлетворять паттерну тарифаgroups- маска групп- Returns:
- Throws:
ru.bitel.bgbilling.common.BGExceptionSQLException
-
copyTariffPlan
Создает новый тарифный план, полностью аналогичный заданному- Parameters:
tariffPlanId- - копируемый тарифный план- Returns:
- код нового тарифного плана
- Throws:
SQLException
-
insertNodeCopy
protected int insertNodeCopy(Map<Integer, Integer> linkNodeIds, PreparedStatement psInsertNode, Map<Integer, throws SQLExceptionru.bitel.bgbilling.kernel.tariff.server.dao.TreeNode> oldNodeMap, ru.bitel.bgbilling.kernel.tariff.server.dao.TreeNode oldTreeNode) - Throws:
SQLException
-
insertNode
protected int insertNode(PreparedStatement psInsertNode, ru.bitel.bgbilling.kernel.tariff.server.dao.TreeNode treeNode) throws SQLException - Throws:
SQLException
-
copyTariffPlan
Создает новый тарифный план с такими же значениями полей, как и у заданного плана.- Parameters:
tp- - копируемый тарифный план- Returns:
- код скопированного тарифного плана
- Throws:
ru.bitel.bgbilling.common.BGExceptionSQLException
-
getTariffPlanTreeId
- Throws:
SQLException
-
getModuleTrees
- Parameters:
treeId-- Returns:
- Throws:
ru.bitel.bgbilling.common.BGExceptionSQLException
-
usesModule
Проверяет, использует ли тарифный план данный модуль- Parameters:
moduleId- код модуляplan- тарифный план- Returns:
- true - если использует
- Throws:
ru.bitel.bgbilling.common.BGExceptionSQLException
-
searchTariffPlans
public void searchTariffPlans(SearchResult<TariffPlan> searchResult, TariffPlanSearchParameters tariffPlanSearchParameters) throws SQLException - Throws:
SQLException
-
getTariffContractCount
public Map<Integer,TariffPlanDao.TariffPlanCounts> getTariffContractCount(List<Integer> tariffIds) throws SQLException - Throws:
SQLException
-
getModuleList
Возвращает список модулей для которых может быть определено тарифное дерево- Throws:
SQLException
-
getFromRS
- Specified by:
getFromRSin classru.bitel.bgbilling.common.dao.AbstractDao<TariffPlan>- Throws:
SQLException
-
updateImpl
- Specified by:
updateImplin classru.bitel.bgbilling.common.dao.AbstractDao<TariffPlan>- Throws:
SQLException
-
get
- Throws:
SQLException
-
list(List<Integer>)instead