Class EntityAttrServicingPersonDao

java.lang.Object
ru.bitel.oss.kernel.entity.server.bean.EntityAttrServicingPersonDao

public class EntityAttrServicingPersonDao extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • createTable

      protected void createTable()
    • updateImpl

      protected boolean updateImpl(int entityId, EntityAttrServicingPerson entityAttrServicingPerson) throws SQLException, ru.bitel.bgbilling.common.BGException
      Throws:
      SQLException
      ru.bitel.bgbilling.common.BGException
    • insert

      public void insert(int entityId, EntityAttr a) throws SQLException, ru.bitel.bgbilling.common.BGException
      Вызывается при updateEntityAttributes, после удаления всех атрибутов (т.е. при перезаписи всех атрибутов, например, при сохранении устройства Inet)
      Throws:
      SQLException
      ru.bitel.bgbilling.common.BGException
    • get

      public EntityAttrServicingPerson get(int entityId, int attrSpecId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • getEntityTableSet

      protected Set<String> getEntityTableSet()
    • idName

      protected String idName()
    • valueName

      protected String valueName()
    • beanIdName

      protected String beanIdName()
    • typeName

      protected String typeName()
    • update

      public boolean update(int entityId, AbstractSpecAttr sa, EntityAttr a) throws SQLException, ru.bitel.bgbilling.common.BGException
      Вызывается при обновлении одного атрибута. Здесь может быть удаление атрибута, если он на самом деле пустой
      Parameters:
      entityId -
      sa -
      a -
      Returns:
      Throws:
      SQLException
      ru.bitel.bgbilling.common.BGException
    • checkEntitySpecAttrDelete

      protected boolean checkEntitySpecAttrDelete(int entitySpecAttrId) throws SQLException
      Throws:
      SQLException
    • getSelectPS

      protected PreparedStatement getSelectPS(int entityId, int entitySpecAttrId) throws SQLException
      Throws:
      SQLException
    • getInsertPS

      protected PreparedStatement getInsertPS(int entityId, int entitySpecAttrId) throws SQLException
      Throws:
      SQLException
    • getUpdatePS

      protected PreparedStatement getUpdatePS(int entityId, int entitySpecAttrId) throws SQLException
      Throws:
      SQLException
    • getDeletePS

      protected PreparedStatement getDeletePS(int entityId, int entitySpecAttrId) throws SQLException
      Throws:
      SQLException
    • delete

      public final boolean delete(int entityId, EntitySpecAttr sa) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • deleteImpl

      protected boolean deleteImpl(int entityId, int entitySpecAttrId) throws SQLException
      Throws:
      SQLException
    • getInsertHistiryPS

      protected PreparedStatement getInsertHistiryPS() throws SQLException
      Throws:
      SQLException
    • insertHistory

      protected void insertHistory(int contractId, int entitySpecAttrId, EntityAttrServicingPerson attr) throws SQLException
      Throws:
      SQLException