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
FieldsFields inherited from class ru.bitel.oss.kernel.entity.server.bean.AbstractEntityDao
insertEntityPS, updateEntityPS, updateEntityPS2
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
Constructors -
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
(String identifier, String host, Set<Integer> deviceTypeIds, Set<Integer> deviceGroupIds, Date dateFrom, Date dateTo, Date intersectDateFrom, Date intersectDateTo, List<FilterEntityAttr> entityFilter, boolean loadDeviceGroupIds, 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, deleteEntityAttributes, filterInit, filterJoin, filterToPS, getAllEntityAttributes, getAttribute, getEntityAttribute, getEntityAttributes, getEntitySpecAttrDirectory, getEntityTableName, getEntityTableSuffix, getEntityValueForIds, listImpl, onAddressItemUpdate, updateEntityAttribute, updateEntityAttributes
Methods inherited from class ru.bitel.common.dao.AbstractIdDao
getAndDelete, getAndUpdate
Methods inherited from class ru.bitel.common.dao.AbstractDao
close, delete, deleteImpl, eq, get, getById, getImpl, getListFromRS, getLogger, getPeriod, getQueryById, getSQLOrder, getTableName, list, listImpl, listImplPS, listImplPS, ormFromResultSet, ormUpdateImpl, ormUpdateImpl, ormUpdateImpl, ormUpdateImpl, processException, setStatementParam
Methods inherited from class ru.bitel.common.dao.AbstarctDaoConstant
getSQLOrder
-
Field Details
-
entitySpecDirectory
-
-
Constructor Details
-
InetDeviceDao
- Throws:
ru.bitel.bgbilling.common.BGException
-
-
Method Details
-
root
public InetDevice root(String identifier, String host, Set<Integer> deviceTypeIds, Set<Integer> deviceGroupIds, Date dateFrom, Date dateTo, Date intersectDateFrom, Date intersectDateTo, List<FilterEntityAttr> entityFilter, boolean loadDeviceGroupIds, 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
-