Class AbstractEntityDao<E extends Entity>

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<E>
All Implemented Interfaces:
AutoCloseable
Direct Known Subclasses:
DeviceDao, InetDeviceDao, InetServDao, ProductSpecDao, ServiceSpecDao, TvChannelSpecDao, VoiceAccountDao

public abstract class AbstractEntityDao<E extends Entity> extends AbstractEntityAttrDao<E>
  • Constructor Details

  • Method Details

    • linkEntity

      protected void linkEntity(Entity entity) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • unlinkEntity

      protected void unlinkEntity(int entityId) throws SQLException
      Throws:
      SQLException
    • update

      public void update(E b) throws ru.bitel.bgbilling.common.BGException
      Overrides:
      update in class ru.bitel.common.dao.AbstractDao<E extends Entity>
      Throws:
      ru.bitel.bgbilling.common.BGException
    • delete

      public int delete(int id) throws ru.bitel.bgbilling.common.BGException
      Overrides:
      delete in class ru.bitel.common.dao.AbstractIdDao<E extends Entity>
      Throws:
      ru.bitel.bgbilling.common.BGException
    • list

      protected List<E> list(boolean loadAttributes, Page page, String what, String join, List<FilterEntityAttr> entityFilter, String filter, String groupBy, String orderBy, Object... params) throws ru.bitel.bgbilling.common.BGException
      Overrides:
      list in class AbstractEntityAttrDao<E extends Entity>
      Throws:
      ru.bitel.bgbilling.common.BGException
    • getFromRS

      protected E getFromRS(ResultSet rs, boolean loadAttributes) throws SQLException, ru.bitel.bgbilling.common.BGException
      Specified by:
      getFromRS in class AbstractEntityAttrDao<E extends Entity>
      Throws:
      SQLException
      ru.bitel.bgbilling.common.BGException
    • getFromRSImpl

      protected abstract E getFromRSImpl(ResultSet rs) throws SQLException, ru.bitel.bgbilling.common.BGException
      Throws:
      SQLException
      ru.bitel.bgbilling.common.BGException
    • list

      protected Result<E> list(Page page, String filter, String orderBy, Object... params) throws ru.bitel.bgbilling.common.BGException
      Overrides:
      list in class ru.bitel.common.dao.AbstractDao<E extends Entity>
      Throws:
      ru.bitel.bgbilling.common.BGException
    • listImpl

      protected List<E> listImpl(Page page, String filter, String orderBy, Object... params) throws ru.bitel.bgbilling.common.BGException, SQLException
      Overrides:
      listImpl in class ru.bitel.common.dao.AbstractDao<E extends Entity>
      Throws:
      ru.bitel.bgbilling.common.BGException
      SQLException
    • getFromRS

      protected E getFromRS(ResultSet rs) throws SQLException, ru.bitel.bgbilling.common.BGException
      Overrides:
      getFromRS in class AbstractEntityAttrDao<E extends Entity>
      Throws:
      SQLException
      ru.bitel.bgbilling.common.BGException