Class InetDeviceDao

java.lang.Object
ru.bitel.common.dao.AbstarctDaoConstant
ru.bitel.common.dao.AbstractDao<B>
ru.bitel.common.dao.AbstractIdDao<E>
All Implemented Interfaces:
java.lang.AutoCloseable, ru.bitel.common.worker.Recyclable

public class InetDeviceDao
extends AbstractEntityDao<InetDevice>
implements ru.bitel.common.worker.Recyclable
  • Field Details

  • 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

      public InetDevice get​(int id) throws ru.bitel.bgbilling.common.BGException
      Overrides:
      get in class ru.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 class AbstractEntityAttrDao<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:
      delete in class AbstractEntityDao<InetDevice>
      Throws:
      ru.bitel.bgbilling.common.BGException
    • recycle

      public void recycle()
      Specified by:
      recycle in interface ru.bitel.common.worker.Recyclable
      Overrides:
      recycle in class AbstractEntityDao<InetDevice>
    • rootSource

      public InetDevice rootSource() throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • listSource

      public java.util.List<InetDevice> listSource() throws ru.bitel.bgbilling.common.BGException
      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

      public java.util.List<InetDevice> inetDeviceList() throws ru.bitel.bgbilling.common.BGException
      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:
      getFromRSImpl in class AbstractEntityDao<InetDevice>
      Throws:
      java.sql.SQLException
      ru.bitel.bgbilling.common.BGException
    • updateImpl

      protected void updateImpl​(InetDevice inetDevice) throws ru.bitel.bgbilling.common.BGException, java.sql.SQLException
      Specified by:
      updateImpl in class ru.bitel.common.dao.AbstractDao<InetDevice>
      Throws:
      ru.bitel.bgbilling.common.BGException
      java.sql.SQLException