Class InetServDao
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<E>
ru.bitel.oss.kernel.entity.server.bean.AbstractEntityAttrDao<E>
ru.bitel.oss.kernel.entity.server.bean.AbstractEntityDao<InetServ>
ru.bitel.bgbilling.modules.inet.server.bean.InetServDao
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from class ru.bitel.oss.kernel.entity.server.bean.AbstractEntityAttrDao
AbstractEntityAttrDao.AddressItemModifiedEventListenerNested classes/interfaces inherited from class ru.bitel.common.dao.AbstractDao
ru.bitel.common.dao.AbstractDao.ResultSetIterator -
Field Summary
Fields inherited from class ru.bitel.oss.kernel.entity.server.bean.AbstractEntityAttrDao
CONTRACT_OBJECT_SUPPORT, CONTRACT_SUPPORT, ENTITY_SUPPORT, entitySpecAttrDirectory, entitySpecDirectory, entityTableSuffix, filterWeightComparator, userIdFields 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 TypeMethodDescriptionvoiddeleteForContract(int contractId) Deprecated.Deprecated.protected InetServgetById(int id) protected InetServprotected InetServprotected InetServprotected InetServgetImpl(int id) getInetServFromRS(ResultSet rs, boolean contractLoad, boolean typeAndDeviceLoad) getInetServFromRS(ResultSet rs, boolean contractLoad, boolean typeAndDeviceLoad, boolean entityAttributesLoad) intlastNumericLogin(int max) Возвращает последний (наибольший) цифровой логинlist(int contractId) Получение списка сервисов договора.Получение списка сервисов договора с возможностью задания сортировки.Выбор всех сервисов указанного deviceState с периодом, пересекающимся с указанным.Список сервисов для заданных устройств , пересекающих заданные даты и принадлежащие заданным договорам ( если contractIds null или пустое, то для всех договоров)listByWrongIpResourceIds(Date date, Page page) listChildren(int parentId) listDevice(int deviceId) Получить список серв. по заданному id устройстваlistRuntime(int deviceId, Set<Integer> servIds, Set<Integer> contractIds) Получение списка сервисов для runtime.listToCancel(Date now) listToCreate(Date now) searchInetServ(InetServSearchParam searchParam, Page page) tree(int contractId) voidupdateDeviceStateAndOptions(int inetServId, short state, Set<Integer> inetOptions, int accessCode) voidupdateIdentifier(int inetServId, List<String> identifierList) protected voidupdateImpl(InetServ inetServ) voidupdateIpResource(int inetServId, int ipResource, int ipResourceSubscriptionId) Только для IPv4voidupdateMacAddress(int inetServId, byte[] macAddress) Обновление MAC-адреса сервисаMethods inherited from class ru.bitel.oss.kernel.entity.server.bean.AbstractEntityDao
delete, linkEntity, list, list, listImpl, unlinkEntity, updateMethods inherited from class ru.bitel.oss.kernel.entity.server.bean.AbstractEntityAttrDao
checkEntityAttribute, checkEntitySpecAttrDelete, deleteEntityAttribute, deleteEntityAttributes, filterInit, filterJoin, filterToPS, getAllEntityAttributes, getAttribute, getEntityAttribute, getEntityAttributes, getEntityAttributes, getEntitySpecAttrDirectory, getEntitySpecDirectory, getEntityTableName, getEntityTableSuffix, getEntityValueForIds, listImpl, onAddressItemUpdate, optEntityAttribute, updateEntityAttribute, updateEntityAttributesMethods inherited from class ru.bitel.common.dao.AbstractIdDao
executeUpdate, get, getAndDelete, getAndUpdate, optMethods inherited from class ru.bitel.common.dao.AbstractDao
close, delete, deleteImpl, eq, get, getListFromRS, getPeriod, getQueryById, getSQLOrder, getTableName, list, 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
-
InetServDao
-
-
Method Details
-
getInetServFromRS
public InetServ getInetServFromRS(ResultSet rs, boolean contractLoad, boolean typeAndDeviceLoad) throws SQLException, ru.bitel.bgbilling.common.BGException - Throws:
SQLExceptionru.bitel.bgbilling.common.BGException
-
getInetServFromRS
public InetServ getInetServFromRS(ResultSet rs, boolean contractLoad, boolean typeAndDeviceLoad, boolean entityAttributesLoad) throws SQLException, ru.bitel.bgbilling.common.BGException - Throws:
SQLExceptionru.bitel.bgbilling.common.BGException
-
getById
- Overrides:
getByIdin classru.bitel.common.dao.AbstractDao<InetServ>- Throws:
ru.bitel.bgbilling.common.BGExceptionSQLException
-
updateImpl
protected void updateImpl(InetServ inetServ) throws ru.bitel.bgbilling.common.BGException, SQLException - Specified by:
updateImplin classru.bitel.common.dao.AbstractDao<InetServ>- Throws:
ru.bitel.bgbilling.common.BGExceptionSQLException
-
list
- Throws:
ru.bitel.bgbilling.common.BGException
-
listRuntime
public List<InetServ> listRuntime(int deviceId, Set<Integer> servIds, Set<Integer> contractIds) throws ru.bitel.bgbilling.common.BGException Получение списка сервисов для runtime. Отсортированы по parentId.- Parameters:
deviceId-servIds-- Returns:
- Throws:
ru.bitel.bgbilling.common.BGException
-
list
Получение списка сервисов договора.- Parameters:
contractId- код договора.- Returns:
- список сервисов.
- Throws:
ru.bitel.bgbilling.common.BGException
-
list
public List<InetServ> list(int contractId, String orderBy) throws ru.bitel.bgbilling.common.BGException Получение списка сервисов договора с возможностью задания сортировки.- Parameters:
contractId- код договораorderBy- выражение, подтавляемое после order by- Returns:
- список сервисов договора.
- Throws:
ru.bitel.bgbilling.common.BGException
-
tree
- Throws:
ru.bitel.bgbilling.common.BGException
-
list
public List<InetServ> list(String login, Date dateFrom, Date dateTo) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
list
public List<InetServ> list(Set<Integer> deviceIds, Date dateFrom, Date dateTo, Set<Integer> contractIds) throws ru.bitel.bgbilling.common.BGException Список сервисов для заданных устройств , пересекающих заданные даты и принадлежащие заданным договорам ( если contractIds null или пустое, то для всех договоров)- Parameters:
deviceIds-dateFrom-dateTo-contractIds-- Returns:
- Throws:
ru.bitel.bgbilling.common.BGException
-
get
@Deprecated public InetServ get(Date time, String login) throws SQLException, ru.bitel.bgbilling.common.BGException Deprecated.- Throws:
SQLExceptionru.bitel.bgbilling.common.BGException
-
get
Deprecated.- Throws:
ru.bitel.bgbilling.common.BGException
-
updateDeviceStateAndOptions
public void updateDeviceStateAndOptions(int inetServId, short state, Set<Integer> inetOptions, int accessCode) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
updateIpResource
public void updateIpResource(int inetServId, int ipResource, int ipResourceSubscriptionId) throws ru.bitel.bgbilling.common.BGException Только для IPv4- Parameters:
inetServId-ipResource-ipResourceSubscriptionId-- Throws:
ru.bitel.bgbilling.common.BGException
-
lastNumericLogin
public int lastNumericLogin(int max) throws ru.bitel.bgbilling.common.BGException Возвращает последний (наибольший) цифровой логин- Returns:
- Throws:
ru.bitel.bgbilling.common.BGExceptionSQLException
-
list
public List<InetServ> list(int deviceState, Date dateFrom, Date dateTo) throws ru.bitel.bgbilling.common.BGException Выбор всех сервисов указанного deviceState с периодом, пересекающимся с указанным.- Parameters:
deviceState-dateFrom-dateTo-- Returns:
- Throws:
ru.bitel.bgbilling.common.BGException
-
listToCreate
- Throws:
ru.bitel.bgbilling.common.BGException
-
listToCancel
- Throws:
ru.bitel.bgbilling.common.BGException
-
deleteForContract
public void deleteForContract(int contractId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
searchInetServ
public List<InetServ> searchInetServ(InetServSearchParam searchParam, Page page) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
listDevice
Получить список серв. по заданному id устройства- Returns:
- Throws:
ru.bitel.bgbilling.common.BGException
-
listChildren
- Throws:
ru.bitel.bgbilling.common.BGException
-
updateMacAddress
public void updateMacAddress(int inetServId, byte[] macAddress) throws ru.bitel.bgbilling.common.BGException Обновление MAC-адреса сервиса- Parameters:
inetServId-macAddress-- Throws:
ru.bitel.bgbilling.common.BGException
-
updateIdentifier
public void updateIdentifier(int inetServId, List<String> identifierList) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
listByWrongIpResourceIds
public List<InetServ> listByWrongIpResourceIds(Date date, Page page) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
getFromRS
protected InetServ getFromRS(ResultSet rs, boolean loadAttributes) throws SQLException, ru.bitel.bgbilling.common.BGException - Overrides:
getFromRSin classAbstractEntityDao<InetServ>- Throws:
SQLExceptionru.bitel.bgbilling.common.BGException
-
getFromRSImpl
protected InetServ getFromRSImpl(ResultSet rs) throws SQLException, ru.bitel.bgbilling.common.BGException - Specified by:
getFromRSImplin classAbstractEntityDao<InetServ>- Throws:
SQLExceptionru.bitel.bgbilling.common.BGException
-
getFromRS
protected InetServ getFromRS(ResultSet rs) throws SQLException, ru.bitel.bgbilling.common.BGException - Overrides:
getFromRSin classAbstractEntityDao<InetServ>- Throws:
SQLExceptionru.bitel.bgbilling.common.BGException
-
getImpl
- Overrides:
getImplin classru.bitel.common.dao.AbstractDao<InetServ>- Throws:
ru.bitel.bgbilling.common.BGExceptionSQLException
-