Class EntityAttrServicingPersonDao
java.lang.Object
ru.bitel.oss.kernel.entity.server.bean.EntityAttrServicingPersonDao
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Connectionprotected static final Stringprotected final AbstractEntityAttrDao<?>protected final EntityAttrDaoSupport -
Constructor Summary
ConstructorsConstructorDescriptionEntityAttrServicingPersonDao(Connection con, AbstractEntityAttrDao<?> entityAttrDao, String table) -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected booleancheckEntitySpecAttrDelete(int entitySpecAttrId) protected voidfinal booleandelete(int entityId, AbstractSpecAttr sa) protected booleandeleteImpl(int entityId, int entitySpecAttrId) get(int entityId, int attrSpecId) protected PreparedStatementgetDeletePS(int entityId, int entitySpecAttrId) protected PreparedStatementprotected PreparedStatementgetInsertPS(int entityId, int entitySpecAttrId) protected PreparedStatementgetSelectPS(int entityId, int entitySpecAttrId) protected PreparedStatementgetUpdatePS(int entityId, int entitySpecAttrId) protected StringidName()voidinsert(int entityId, EntityAttr a) Вызывается при updateEntityAttributes, после удаления всех атрибутов (т.е. при перезаписи всех атрибутов, например, при сохранении устройства Inet)protected voidinsertHistory(int contractId, int entitySpecAttrId, EntityAttrServicingPerson attr) protected StringtypeName()booleanupdate(int entityId, AbstractSpecAttr sa, EntityAttr a) Вызывается при обновлении одного атрибута.protected booleanupdateImpl(int entityId, EntityAttrServicingPerson entityAttrServicingPerson) protected String
-
Field Details
-
ENTITY_TABLE_MAP_KEY
- See Also:
-
con
-
entityAttrDao
-
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:
SQLExceptionru.bitel.bgbilling.common.BGException
-
insert
public void insert(int entityId, EntityAttr a) throws SQLException, ru.bitel.bgbilling.common.BGException Вызывается при updateEntityAttributes, после удаления всех атрибутов (т.е. при перезаписи всех атрибутов, например, при сохранении устройства Inet)- Throws:
SQLExceptionru.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
-
idName
-
valueName
-
beanIdName
-
typeName
-
update
public boolean update(int entityId, AbstractSpecAttr sa, EntityAttr a) throws SQLException, ru.bitel.bgbilling.common.BGException Вызывается при обновлении одного атрибута. Здесь может быть удаление атрибута, если он на самом деле пустой- Parameters:
entityId-sa-a-- Returns:
- Throws:
SQLExceptionru.bitel.bgbilling.common.BGException
-
checkEntitySpecAttrDelete
- Throws:
SQLException
-
getSelectPS
- Throws:
SQLException
-
getInsertPS
- Throws:
SQLException
-
getUpdatePS
- Throws:
SQLException
-
getDeletePS
- Throws:
SQLException
-
delete
public final boolean delete(int entityId, AbstractSpecAttr sa) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
deleteImpl
- Throws:
SQLException
-
getInsertHistiryPS
- Throws:
SQLException
-
insertHistory
protected void insertHistory(int contractId, int entitySpecAttrId, EntityAttrServicingPerson attr) throws SQLException - Throws:
SQLException
-