public class EntityAttrMultiListDao
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.sql.Connection |
con |
protected java.sql.PreparedStatement |
deletePS |
protected AbstractEntityAttrDao<?> |
entityAttrDao |
protected java.sql.PreparedStatement |
insertHistoryPS |
protected java.sql.PreparedStatement |
insertPS |
protected java.sql.PreparedStatement |
selectPS |
protected ru.bitel.oss.kernel.entity.server.bean.EntityAttrDaoSupport |
support |
protected java.sql.PreparedStatement |
updatePS |
Constructor and Description |
---|
EntityAttrMultiListDao(java.sql.Connection con,
AbstractEntityAttrDao<?> entityAttrDao,
java.lang.String table,
java.lang.String listValueTable) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
beanIdName() |
protected boolean |
checkEntitySpecAttrDelete(int entitySpecAttrId) |
boolean |
delete(int entityId,
EntitySpecAttr sa) |
protected boolean |
deleteImpl(int entityId,
int entitySpecAttrId) |
EntityAttrMultiList |
get(int entityId,
int attrSpecId) |
protected java.sql.PreparedStatement |
getDeletePS(int entityId,
int entitySpecAttrId) |
protected java.sql.PreparedStatement |
getInsertHistiryPS() |
protected java.sql.PreparedStatement |
getInsertPS(int entityId,
int entitySpecAttrId) |
protected java.sql.PreparedStatement |
getSelectPS(int entityId,
int entitySpecAttrId) |
protected java.sql.PreparedStatement |
getUpdatePS(int entityId,
int entitySpecAttrId) |
protected java.lang.String |
idName() |
void |
insert(int entityId,
EntityAttr attr)
Вызывается при updateEntityAttributes, после удаления всех атрибутов (т.е. при перезаписи всех атрибутов, например, при сохранении устройства Inet)
|
protected void |
insertHistory(int cid,
A attr) |
protected java.lang.String |
typeName() |
boolean |
update(int entityId,
EntitySpecAttr sa,
EntityAttr a)
Вызывается при обновлении одного атрибута.
|
protected boolean |
updateImpl(int entityId,
EntityAttrMultiList attr) |
protected java.lang.String |
valueName() |
protected final java.sql.Connection con
protected final AbstractEntityAttrDao<?> entityAttrDao
protected final ru.bitel.oss.kernel.entity.server.bean.EntityAttrDaoSupport support
protected java.sql.PreparedStatement selectPS
protected java.sql.PreparedStatement insertPS
protected java.sql.PreparedStatement updatePS
protected java.sql.PreparedStatement deletePS
protected java.sql.PreparedStatement insertHistoryPS
public EntityAttrMultiListDao(java.sql.Connection con, AbstractEntityAttrDao<?> entityAttrDao, java.lang.String table, java.lang.String listValueTable)
protected java.sql.PreparedStatement getSelectPS(int entityId, int entitySpecAttrId) throws java.sql.SQLException
java.sql.SQLException
protected java.sql.PreparedStatement getInsertPS(int entityId, int entitySpecAttrId) throws java.sql.SQLException
java.sql.SQLException
protected java.sql.PreparedStatement getUpdatePS(int entityId, int entitySpecAttrId) throws java.sql.SQLException
java.sql.SQLException
public EntityAttrMultiList get(int entityId, int attrSpecId) throws java.sql.SQLException
java.sql.SQLException
public void insert(int entityId, EntityAttr attr) throws java.sql.SQLException, ru.bitel.bgbilling.common.BGException
java.sql.SQLException
ru.bitel.bgbilling.common.BGException
protected boolean updateImpl(int entityId, EntityAttrMultiList attr) throws java.sql.SQLException, ru.bitel.bgbilling.common.BGException
java.sql.SQLException
ru.bitel.bgbilling.common.BGException
protected boolean deleteImpl(int entityId, int entitySpecAttrId) throws java.sql.SQLException
java.sql.SQLException
protected java.lang.String idName()
protected java.lang.String valueName()
protected java.lang.String beanIdName()
protected java.lang.String typeName()
public boolean update(int entityId, EntitySpecAttr sa, EntityAttr a) throws java.sql.SQLException, ru.bitel.bgbilling.common.BGException
entityId
- sa
- a
- java.sql.SQLException
ru.bitel.bgbilling.common.BGException
protected boolean checkEntitySpecAttrDelete(int entitySpecAttrId) throws java.sql.SQLException
java.sql.SQLException
protected java.sql.PreparedStatement getDeletePS(int entityId, int entitySpecAttrId) throws java.sql.SQLException
java.sql.SQLException
public final boolean delete(int entityId, EntitySpecAttr sa) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
protected java.sql.PreparedStatement getInsertHistiryPS() throws java.sql.SQLException
java.sql.SQLException
protected void insertHistory(int cid, A attr) throws java.sql.SQLException
java.sql.SQLException