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:
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(Connection con, int moduleId) throws ru.bitel.bgbilling.common.BGException
      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

      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, 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 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 List<InetDevice> listSource() throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • listByInvDeviceId

      public List<InetDevice> listByInvDeviceId(int id) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • checkTables

      public static void checkTables(Connection con, int moduleId, Date initialDate)
    • inetDeviceList

      public List<InetDevice> inetDeviceList(int deviceTypeId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • inetDeviceList

      public List<InetDevice> inetDeviceList() throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • getFromRSImpl

      protected InetDevice getFromRSImpl(ResultSet rs) throws SQLException, ru.bitel.bgbilling.common.BGException
      Specified by:
      getFromRSImpl in class AbstractEntityDao<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 class ru.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