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:
java.lang.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.AddressItemModifiedEventListenerNested classes/interfaces inherited from class ru.bitel.common.dao.AbstractDao
ru.bitel.common.dao.AbstractDao.ResultSetIterator -
Field Summary
Fields Modifier and Type Field Description protected Directory<? extends EntitySpec>entitySpecDirectoryFields inherited from class ru.bitel.oss.kernel.entity.server.bean.AbstractEntityDao
insertEntityPS, updateEntityPS, updateEntityPS2Fields inherited from class ru.bitel.oss.kernel.entity.server.bean.AbstractEntityAttrDao
CONTRACT_OBJECT_SUPPORT, CONTRACT_SUPPORT, ENTITY_SUPPORT, entitySpecAttrDirectory, 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_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 Constructor Description InetDeviceDao(java.sql.Connection con, int moduleId) -
Method Summary
Modifier and Type Method Description static voidcheckTables(java.sql.Connection con, int moduleId, java.util.Date initialDate)intdelete(int id)InetDeviceget(int id)Directory<? extends EntitySpec>getEntitySpecDirectory()protected InetDevicegetFromRSImpl(java.sql.ResultSet rs)java.util.List<InetDevice>inetDeviceList()java.util.List<InetDevice>inetDeviceList(int deviceTypeId)java.util.List<InetDevice>listByInvDeviceId(int id)java.util.List<InetDevice>listSource()voidmove(int newParentId, java.util.Set<java.lang.Integer> children)InetDevicenode(java.util.List<FilterEntityAttr> entityFilter, int deviceId, boolean loadDeviceGroupIds)voidrecycle()InetDeviceroot(java.lang.String identifier, java.lang.String host, java.util.Set<java.lang.Integer> deviceTypeIds, java.util.Set<java.lang.Integer> deviceGroupIds, java.util.Date dateFrom, java.util.Date dateTo, java.util.Date intersectDateFrom, java.util.Date intersectDateTo, java.util.List<FilterEntityAttr> entityFilter, boolean loadDeviceGroupIds, boolean loadAncestors)InetDevicerootSource()protected voidupdateImpl(InetDevice inetDevice)Methods inherited from class ru.bitel.oss.kernel.entity.server.bean.AbstractEntityDao
getFromRS, getFromRS, linkEntity, list, list, listImpl, unlinkEntity, updateMethods 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, updateEntityAttributesMethods inherited from class ru.bitel.common.dao.AbstractIdDao
getAndDelete, getAndUpdateMethods 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, setStatementParamMethods inherited from class ru.bitel.common.dao.AbstarctDaoConstant
getSQLOrderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
entitySpecDirectory
-
-
Constructor Details
-
InetDeviceDao
public InetDeviceDao(java.sql.Connection con, int moduleId) throws ru.bitel.bgbilling.common.BGException- Throws:
ru.bitel.bgbilling.common.BGException
-
-
Method Details
-
root
public InetDevice root(java.lang.String identifier, java.lang.String host, java.util.Set<java.lang.Integer> deviceTypeIds, java.util.Set<java.lang.Integer> deviceGroupIds, java.util.Date dateFrom, java.util.Date dateTo, java.util.Date intersectDateFrom, java.util.Date intersectDateTo, java.util.List<FilterEntityAttr> entityFilter, boolean loadDeviceGroupIds, boolean loadAncestors) throws ru.bitel.bgbilling.common.BGException- Throws:
ru.bitel.bgbilling.common.BGException
-
node
public InetDevice node(java.util.List<FilterEntityAttr> entityFilter, int deviceId, boolean loadDeviceGroupIds) throws ru.bitel.bgbilling.common.BGException- Throws:
ru.bitel.bgbilling.common.BGException
-
get
- Overrides:
getin 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:
getEntitySpecDirectoryin classAbstractEntityAttrDao<InetDevice>- Throws:
ru.bitel.bgbilling.common.BGException
-
move
public void move(int newParentId, java.util.Set<java.lang.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:
deletein classAbstractEntityDao<InetDevice>- Throws:
ru.bitel.bgbilling.common.BGException
-
recycle
public void recycle()- Specified by:
recyclein interfaceru.bitel.common.worker.Recyclable- Overrides:
recyclein classAbstractEntityDao<InetDevice>
-
rootSource
- Throws:
ru.bitel.bgbilling.common.BGException
-
listSource
- Throws:
ru.bitel.bgbilling.common.BGException
-
listByInvDeviceId
public java.util.List<InetDevice> listByInvDeviceId(int id) throws ru.bitel.bgbilling.common.BGException- Throws:
ru.bitel.bgbilling.common.BGException
-
checkTables
public static void checkTables(java.sql.Connection con, int moduleId, java.util.Date initialDate) -
inetDeviceList
public java.util.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(java.sql.ResultSet rs) throws java.sql.SQLException, ru.bitel.bgbilling.common.BGException- Specified by:
getFromRSImplin classAbstractEntityDao<InetDevice>- Throws:
java.sql.SQLExceptionru.bitel.bgbilling.common.BGException
-
updateImpl
protected void updateImpl(InetDevice inetDevice) throws ru.bitel.bgbilling.common.BGException, java.sql.SQLException- Specified by:
updateImplin classru.bitel.common.dao.AbstractDao<InetDevice>- Throws:
ru.bitel.bgbilling.common.BGExceptionjava.sql.SQLException
-