Class InetDeviceDao
java.lang.Object
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<InetDevice>
ru.bitel.bgbilling.modules.inet.server.bean.InetDeviceDao
- All Implemented Interfaces:
AutoCloseable
,ru.bitel.common.worker.Recyclable
public class InetDeviceDao
extends AbstractEntityDao<InetDevice>
implements ru.bitel.common.worker.Recyclable
-
Nested Class Summary
Nested classes/interfaces inherited from class ru.bitel.oss.kernel.entity.server.bean.AbstractEntityAttrDao
AbstractEntityAttrDao.AddressItemModifiedEventListener
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.oss.kernel.entity.server.bean.AbstractEntityAttrDao
CONTRACT_OBJECT_SUPPORT, CONTRACT_SUPPORT, ENTITY_SUPPORT, entitySpecAttrDirectory, entityTableSuffix, filterWeightComparator, userId
Fields inherited from class ru.bitel.common.dao.AbstractDao
cacheFilter, cacheJoin, cacheOrderBy, cachePaged, cachePS, cacheWhat, con, getByIdPS, moduleId, orderByPattern, tableName
Fields inherited from class ru.bitel.common.dao.AbstarctDaoConstant
ERROR, 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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkTables
(Connection con, int moduleId, Date initialDate) int
delete
(int id) get
(int id) Directory<? extends EntitySpec>
protected InetDevice
inetDeviceList
(int deviceTypeId) listByInvDeviceId
(int id) void
node
(List<FilterEntityAttr> entityFilter, int deviceId, boolean loadDeviceGroupIds) void
recycle()
boolean
reorder
(int srcDeviceId, int parentDeviceId, int pos) root
(DeviceTreeFilter deviceTreeFilter, boolean loadAncestors) protected void
updateImpl
(InetDevice inetDevice) Methods inherited from class ru.bitel.oss.kernel.entity.server.bean.AbstractEntityDao
getFromRS, getFromRS, linkEntity, list, list, listImpl, unlinkEntity, update
Methods inherited from class ru.bitel.oss.kernel.entity.server.bean.AbstractEntityAttrDao
checkEntityAttribute, checkEntitySpecAttrDelete, deleteEntityAttribute, deleteEntityAttributes, filterInit, filterJoin, filterToPS, getAllEntityAttributes, getAttribute, getEntityAttribute, getEntityAttributes, getEntityAttributes, getEntitySpecAttr, getEntitySpecAttrDirectory, getEntityTableName, getEntityTableSuffix, getEntityValueForIds, listImpl, onAddressItemUpdate, optEntityAttribute, updateEntityAttribute, updateEntityAttributes
Methods inherited from class ru.bitel.common.dao.AbstractIdDao
getAndDelete, getAndUpdate, opt
Methods inherited from class ru.bitel.common.dao.AbstractDao
close, delete, deleteImpl, eq, get, getById, getImpl, getListFromRS, getPeriod, getQueryById, getSQLOrder, getTableName, list, listImpl, listImplPS, listImplPS, ormFromResultSet, ormUpdateImpl, ormUpdateImpl, ormUpdateImpl, ormUpdateImpl, processException, setStatementParam
Methods inherited from class ru.bitel.common.dao.AbstarctDaoConstant
getLogger, getSQLOrder
-
Field Details
-
entitySpecDirectory
-
-
Constructor Details
-
InetDeviceDao
- Throws:
ru.bitel.bgbilling.common.BGException
-
-
Method Details
-
root
public InetDevice root(DeviceTreeFilter deviceTreeFilter, boolean loadAncestors) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
node
public InetDevice node(List<FilterEntityAttr> entityFilter, int deviceId, boolean loadDeviceGroupIds) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
get
- Overrides:
get
in classru.bitel.common.dao.AbstractIdDao<InetDevice>
- Throws:
ru.bitel.bgbilling.common.BGException
-
getEntitySpecDirectory
public Directory<? extends EntitySpec> getEntitySpecDirectory() throws ru.bitel.bgbilling.common.BGException- Overrides:
getEntitySpecDirectory
in classAbstractEntityAttrDao<InetDevice>
- Throws:
ru.bitel.bgbilling.common.BGException
-
move
public void move(int newParentId, Set<Integer> children) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
delete
public int delete(int id) throws ru.bitel.bgbilling.common.BGException - Overrides:
delete
in classAbstractEntityDao<InetDevice>
- Throws:
ru.bitel.bgbilling.common.BGException
-
recycle
public void recycle()- Specified by:
recycle
in interfaceru.bitel.common.worker.Recyclable
- Overrides:
recycle
in classAbstractEntityDao<InetDevice>
-
rootSource
- Throws:
ru.bitel.bgbilling.common.BGException
-
listSource
- Throws:
ru.bitel.bgbilling.common.BGException
-
listByInvDeviceId
- Throws:
ru.bitel.bgbilling.common.BGException
-
checkTables
-
inetDeviceList
public List<InetDevice> inetDeviceList(int deviceTypeId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
inetDeviceList
- Throws:
ru.bitel.bgbilling.common.BGException
-
getFromRSImpl
protected InetDevice getFromRSImpl(ResultSet rs) throws SQLException, ru.bitel.bgbilling.common.BGException - Specified by:
getFromRSImpl
in classAbstractEntityDao<InetDevice>
- Throws:
SQLException
ru.bitel.bgbilling.common.BGException
-
updateImpl
protected void updateImpl(InetDevice inetDevice) throws ru.bitel.bgbilling.common.BGException, SQLException - Specified by:
updateImpl
in classru.bitel.common.dao.AbstractDao<InetDevice>
- Throws:
ru.bitel.bgbilling.common.BGException
SQLException
-
reorder
public boolean reorder(int srcDeviceId, int parentDeviceId, int pos) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-