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

public class ProductSpecDao extends AbstractEntityDao<ProductSpec> implements Directory<ProductSpec>
  • Constructor Details

    • ProductSpecDao

      public ProductSpecDao(Connection con, int moduleId)
    • ProductSpecDao

      public ProductSpecDao(Connection con)
    • ProductSpecDao

      public ProductSpecDao(Connection con, int moduleId, int userId)
  • Method Details

    • getFromRSImpl

      protected ProductSpec getFromRSImpl(ResultSet rs) throws SQLException, ru.bitel.bgbilling.common.BGException
      Specified by:
      getFromRSImpl in class AbstractEntityDao<ProductSpec>
      Throws:
      SQLException
      ru.bitel.bgbilling.common.BGException
    • updateImpl

      protected void updateImpl(ProductSpec productSpec) throws ru.bitel.bgbilling.common.BGException, SQLException
      Specified by:
      updateImpl in class ru.bitel.common.dao.AbstractDao<ProductSpec>
      Throws:
      ru.bitel.bgbilling.common.BGException
      SQLException
    • getQueryById

      protected String getQueryById()
      Overrides:
      getQueryById in class ru.bitel.common.dao.AbstractDao<ProductSpec>
    • get

      public ProductSpec get(String title) throws ru.bitel.bgbilling.common.BGException
      Description copied from interface: Directory
      Получение элемента по title(name)
      Может быть не имплементировано - в этом случае бросается UnsupportedOperationException
      Specified by:
      get in interface Directory<ProductSpec>
      Returns:
      Throws:
      ru.bitel.bgbilling.common.BGException
    • list

      public List<ProductSpec> list(int moduleId, Date dateFrom, Date dateTo, String title, List<FilterEntityAttr> entityFilter) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • list

      public List<ProductSpec> list(int moduleId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • list

      public List<ProductSpec> list() throws ru.bitel.bgbilling.common.BGException
      Description copied from interface: Directory
      Получение всего списка элементов из справочника
      Specified by:
      list in interface Directory<ProductSpec>
      Returns:
      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
    • getByIdentifier

      public ProductSpec getByIdentifier(String identifier) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • delete

      public int delete(int id) throws ru.bitel.bgbilling.common.BGException
      Description copied from interface: Directory
      Удаление элемента по id
      Specified by:
      delete in interface Directory<ProductSpec>
      Overrides:
      delete in class AbstractEntityDao<ProductSpec>
      Returns:
      Throws:
      ru.bitel.bgbilling.common.BGException
    • reorder

      public boolean reorder(int srcProductId, int parentProductId, int pos) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException