Class EntityAttrMultiListDao
java.lang.Object
ru.bitel.oss.kernel.entity.server.bean.EntityAttrMultiListDao
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Connectionprotected static final Stringprotected final AbstractEntityAttrDao<?>protected final EntityAttrDaoSupport -
Constructor Summary
ConstructorsConstructorDescriptionEntityAttrMultiListDao(Connection con, AbstractEntityAttrDao<?> entityAttrDao, String table, String listValueTable) -
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 attr) Вызывается при updateEntityAttributes, после удаления всех атрибутов (т.е. при перезаписи всех атрибутов, например, при сохранении устройства Inet)protected voidinsertHistory(int contractId, int entitySpecAttrId, EntityAttrMultiList attr) protected StringtypeName()booleanupdate(int entityId, AbstractSpecAttr sa, EntityAttr a) Вызывается при обновлении одного атрибута.protected booleanupdateImpl(int entityId, EntityAttrMultiList attr) protected String
-
Field Details
-
itemTable
-
ENTITY_TABLE_MAP_KEY
- See Also:
-
con
-
entityAttrDao
-
support
-
-
Constructor Details
-
EntityAttrMultiListDao
public EntityAttrMultiListDao(Connection con, AbstractEntityAttrDao<?> entityAttrDao, String table, String listValueTable)
-
-
Method Details
-
createTable
protected void createTable() -
getSelectPS
- Throws:
SQLException
-
getInsertPS
- Throws:
SQLException
-
getUpdatePS
- Throws:
SQLException
-
get
public EntityAttrMultiList get(int entityId, int attrSpecId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
insert
public void insert(int entityId, EntityAttr attr) throws SQLException, ru.bitel.bgbilling.common.BGException Вызывается при updateEntityAttributes, после удаления всех атрибутов (т.е. при перезаписи всех атрибутов, например, при сохранении устройства Inet)- Throws:
SQLExceptionru.bitel.bgbilling.common.BGException
-
updateImpl
protected boolean updateImpl(int entityId, EntityAttrMultiList attr) throws SQLException, ru.bitel.bgbilling.common.BGException - Throws:
SQLExceptionru.bitel.bgbilling.common.BGException
-
deleteImpl
- Throws:
SQLException
-
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
-
getDeletePS
- Throws:
SQLException
-
delete
public final boolean delete(int entityId, AbstractSpecAttr sa) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
getInsertHistiryPS
- Throws:
SQLException
-
insertHistory
protected void insertHistory(int contractId, int entitySpecAttrId, EntityAttrMultiList attr) throws SQLException - Throws:
SQLException
-