public abstract class AbstractEntityDao<E extends Entity> extends AbstractEntityAttrDao<E>
AbstractEntityAttrDao.AddressItemModifiedEventListener
Modifier and Type | Field and Description |
---|---|
protected java.sql.PreparedStatement |
getImplPS |
protected java.sql.PreparedStatement |
insertEntityPS |
protected java.sql.PreparedStatement |
updateEntityPS |
protected java.sql.PreparedStatement |
updateEntityPS2 |
CONTRACT_OBJECT_SUPPORT, CONTRACT_SUPPORT, ENTITY_SUPPORT, entitySpecAttrDirectory, entitySpecDirectory, filterWeightComparator, userId
Constructor and Description |
---|
AbstractEntityDao(java.sql.Connection con,
int mid,
int userId,
java.lang.String tableName) |
Modifier and Type | Method and Description |
---|---|
protected int |
deleteImpl(int id) |
protected E |
getFromRS(java.sql.ResultSet rs,
boolean loadAttributes,
boolean loadEntityTitle) |
protected abstract E |
getFromRSImpl(java.sql.ResultSet rs) |
protected E |
getImpl(int id) |
protected void |
linkEntity(Entity entity) |
protected java.util.List<E> |
list(boolean loadAttributes,
Page page,
java.lang.String what,
java.lang.String join,
java.util.List<FilterEntityAttr> entityFilter,
java.lang.String filter,
java.lang.String groupBy,
java.lang.String orderBy,
java.lang.Object... params) |
protected Result<E> |
list(Page page,
java.lang.String filter,
java.lang.String orderBy,
java.lang.Object... params) |
protected java.util.List<E> |
listImpl(Page page,
java.lang.String filter,
java.lang.String orderBy,
java.lang.Object... params) |
void |
recycle() |
protected void |
unlinkEntity(int entityId) |
void |
update(E b) |
checkEntityAttribute, checkEntitySpecAttrDelete, filterInit, filterJoin, filterToPS, getAllEntityAttributes, getAttribute, getEntityAttribute, getEntityAttributes, getEntitySpecAttrDirectory, getEntitySpecDirectory, getEntityTableName, getEntityValueForIds, getFromRS, listImpl, onAddressItemUpdate, updateEntityAttribute, updateEntityAttributes
delete, get, getAndDelete, getAndUpdate
protected java.sql.PreparedStatement insertEntityPS
protected java.sql.PreparedStatement updateEntityPS
protected java.sql.PreparedStatement updateEntityPS2
protected java.sql.PreparedStatement getImplPS
public AbstractEntityDao(java.sql.Connection con, int mid, int userId, java.lang.String tableName)
protected void linkEntity(Entity entity) throws java.sql.SQLException
java.sql.SQLException
protected void unlinkEntity(int entityId) throws java.sql.SQLException
java.sql.SQLException
protected int deleteImpl(int id) throws ru.bitel.bgbilling.common.BGException
public void update(E b) throws ru.bitel.bgbilling.common.BGException
protected java.util.List<E> list(boolean loadAttributes, Page page, java.lang.String what, java.lang.String join, java.util.List<FilterEntityAttr> entityFilter, java.lang.String filter, java.lang.String groupBy, java.lang.String orderBy, java.lang.Object... params) throws ru.bitel.bgbilling.common.BGException
list
in class AbstractEntityAttrDao<E extends Entity>
ru.bitel.bgbilling.common.BGException
protected E getImpl(int id) throws ru.bitel.bgbilling.common.BGException, java.sql.SQLException
protected E getFromRS(java.sql.ResultSet rs, boolean loadAttributes, boolean loadEntityTitle) throws java.sql.SQLException, ru.bitel.bgbilling.common.BGException
getFromRS
in class AbstractEntityAttrDao<E extends Entity>
java.sql.SQLException
ru.bitel.bgbilling.common.BGException
protected abstract E getFromRSImpl(java.sql.ResultSet rs) throws java.sql.SQLException, ru.bitel.bgbilling.common.BGException
java.sql.SQLException
ru.bitel.bgbilling.common.BGException
public void recycle() throws ru.bitel.bgbilling.common.BGException
protected Result<E> list(Page page, java.lang.String filter, java.lang.String orderBy, java.lang.Object... params) throws ru.bitel.bgbilling.common.BGException