Package ru.bitel.oss.kernel.entity.server.bean

# Class EntityAttrServicingPersonDao

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

public class EntityAttrServicingPersonDao extends Object

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `protected final Connection`
  `con`
  `protected static final String`
  `ENTITY_TABLE_MAP_KEY`
  `protected final AbstractEntityAttrDao<?>`
  `entityAttrDao`
  `protected final EntityAttrDaoSupport`
  `support`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `EntityAttrServicingPersonDao(Connection con, AbstractEntityAttrDao<?> entityAttrDao, String table)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `protected String`
  `beanIdName()`
  `protected boolean`
  `checkEntitySpecAttrDelete(int entitySpecAttrId)`
  `protected void`
  `createTable()`
  `final boolean`
  `delete(int entityId, AbstractSpecAttr sa)`
  `protected boolean`
  `deleteImpl(int entityId, int entitySpecAttrId)`
  `EntityAttrServicingPerson`
  `get(int entityId, int attrSpecId)`
  `protected PreparedStatement`
  `getDeletePS(int entityId, int entitySpecAttrId)`
  `protected Set<String>`
  `getEntityTableSet()`
  `protected PreparedStatement`
  `getInsertHistoryPS()`
  `protected PreparedStatement`
  `getInsertPS(int entityId, int entitySpecAttrId)`
  `protected PreparedStatement`
  `getSelectPS(int entityId, int entitySpecAttrId)`
  `protected PreparedStatement`
  `getUpdatePS(int entityId, int entitySpecAttrId)`
  `protected String`
  `idName()`
  `void`
  `insert(int entityId, EntityAttr a)`
  Вызывается при updateEntityAttributes, после удаления всех атрибутов (т.е. при перезаписи всех атрибутов, например, при сохранении устройства Inet)
  `protected void`
  `insertHistory(int contractId, int entitySpecAttrId, EntityAttrServicingPerson attr)`
  `protected String`
  `typeName()`
  `boolean`
  `update(int entityId, AbstractSpecAttr sa, EntityAttr a)`
  Вызывается при обновлении одного атрибута.
  `protected boolean`
  `updateImpl(int entityId, EntityAttrServicingPerson entityAttrServicingPerson)`
  `protected String`
  `valueName()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### ENTITY_TABLE_MAP_KEY

    protected static final String ENTITY_TABLE_MAP_KEY
    See Also:
      - Constant Field Values

  - ### con

    protected final Connection con

  - ### entityAttrDao

    protected final AbstractEntityAttrDao<?> entityAttrDao

  - ### support

    protected final EntityAttrDaoSupport support

- ## Constructor Details

  - ### EntityAttrServicingPersonDao

    public EntityAttrServicingPersonDao(Connection con, AbstractEntityAttrDao<?> entityAttrDao, String table)

- ## 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, AbstractSpecAttr 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`

  - ### getInsertHistoryPS

    protected PreparedStatement getInsertHistoryPS() throws SQLException
    Throws:
      `SQLException`

  - ### insertHistory

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