Class AbstractEntityDao<E extends Entity>
java.lang.Object
ru.bitel.common.dao.AbstarctDaoConstant
ru.bitel.common.dao.AbstractDao<B>
ru.bitel.common.dao.AbstractIdDao<E>
ru.bitel.oss.kernel.entity.server.bean.AbstractEntityAttrDao<E>
ru.bitel.oss.kernel.entity.server.bean.AbstractEntityDao<E>
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
DeviceDao
,InetDeviceDao
,InetServDao
,ProductSpecDao
,ServiceSpecDao
,TvChannelSpecDao
,VoiceAccountDao
-
Nested Class Summary
Nested classes/interfaces inherited from class ru.bitel.oss.kernel.entity.server.bean.AbstractEntityAttrDao
AbstractEntityAttrDao.AddressItemModifiedEventListener
Nested classes/interfaces inherited from class ru.bitel.common.dao.AbstractDao
ru.bitel.common.dao.AbstractDao.ResultSetIterator
-
Field Summary
Modifier and TypeFieldDescriptionprotected PreparedStatement
protected PreparedStatement
protected PreparedStatement
Fields inherited from class ru.bitel.oss.kernel.entity.server.bean.AbstractEntityAttrDao
CONTRACT_OBJECT_SUPPORT, CONTRACT_SUPPORT, ENTITY_SUPPORT, entitySpecAttrDirectory, entitySpecDirectory, entityTableSuffix, filterWeightComparator, userId
Fields inherited from class ru.bitel.common.dao.AbstractDao
cacheFilter, cacheJoin, cacheOrderBy, cachePaged, cachePS, cacheWhat, con, getByIdPS, moduleId, orderByPattern, tableName
Fields inherited from class ru.bitel.common.dao.AbstarctDaoConstant
ERROR, fields, SQL_CALC_FOUND_ROWS, SQL_DELETE, SQL_DISTINCT, SQL_EQ, SQL_EQCS, SQL_FROM, SQL_GROUP, SQL_IN, SQL_INSERT, SQL_LIMIT, SQL_ON_DUPLICATE_KEY_UPDATE, SQL_ORDER, SQL_SELECT, SQL_SET, SQL_UPDATE, SQL_VALUES, SQL_WHERE
-
Constructor Summary
ConstructorDescriptionAbstractEntityDao
(Connection con, int moduleId, int userId, String tableName, String entityTableSuffix) AbstractEntityDao
(Connection con, int moduleId, int userId, String tableName, String entityTableSuffix, EntityAttrDaoSupport entityAttrDaoSupport) -
Method Summary
Modifier and TypeMethodDescriptionint
delete
(int id) protected E
protected E
protected abstract E
protected void
linkEntity
(Entity entity) list
(boolean loadAttributes, Page page, String what, String join, List<FilterEntityAttr> entityFilter, String filter, String groupBy, String orderBy, Object... params) void
recycle()
protected void
unlinkEntity
(int entityId) void
Methods inherited from class ru.bitel.oss.kernel.entity.server.bean.AbstractEntityAttrDao
checkEntityAttribute, checkEntitySpecAttrDelete, deleteEntityAttribute, deleteEntityAttributes, filterInit, filterJoin, filterToPS, getAllEntityAttributes, getAttribute, getEntityAttribute, getEntityAttributes, getEntityAttributes, getEntitySpecAttrDirectory, getEntitySpecDirectory, getEntityTableName, getEntityTableSuffix, getEntityValueForIds, listImpl, onAddressItemUpdate, updateEntityAttribute, updateEntityAttributes
Methods inherited from class ru.bitel.common.dao.AbstractIdDao
get, getAndDelete, getAndUpdate
Methods inherited from class ru.bitel.common.dao.AbstractDao
close, delete, deleteImpl, eq, get, getById, getImpl, getListFromRS, getPeriod, getQueryById, getSQLOrder, getTableName, list, listImpl, listImplPS, listImplPS, ormFromResultSet, ormUpdateImpl, ormUpdateImpl, ormUpdateImpl, ormUpdateImpl, processException, setStatementParam, updateImpl
Methods inherited from class ru.bitel.common.dao.AbstarctDaoConstant
getSQLOrder
-
Field Details
-
insertEntityPS
-
updateEntityPS
-
updateEntityPS2
-
-
Constructor Details
-
AbstractEntityDao
public AbstractEntityDao(Connection con, int moduleId, int userId, String tableName, String entityTableSuffix) -
AbstractEntityDao
public AbstractEntityDao(Connection con, int moduleId, int userId, String tableName, String entityTableSuffix, EntityAttrDaoSupport entityAttrDaoSupport)
-
-
Method Details
-
linkEntity
- Throws:
SQLException
-
unlinkEntity
- Throws:
SQLException
-
update
-
delete
public int delete(int id) throws ru.bitel.bgbilling.common.BGException -
list
protected List<E> list(boolean loadAttributes, Page page, String what, String join, List<FilterEntityAttr> entityFilter, String filter, String groupBy, String orderBy, Object... params) throws ru.bitel.bgbilling.common.BGException - Overrides:
list
in classAbstractEntityAttrDao<E extends Entity>
- Throws:
ru.bitel.bgbilling.common.BGException
-
getFromRS
protected E getFromRS(ResultSet rs, boolean loadAttributes) throws SQLException, ru.bitel.bgbilling.common.BGException - Specified by:
getFromRS
in classAbstractEntityAttrDao<E extends Entity>
- Throws:
SQLException
ru.bitel.bgbilling.common.BGException
-
getFromRSImpl
protected abstract E getFromRSImpl(ResultSet rs) throws SQLException, ru.bitel.bgbilling.common.BGException - Throws:
SQLException
ru.bitel.bgbilling.common.BGException
-
recycle
public void recycle() throws ru.bitel.bgbilling.common.BGException -
list
-
listImpl
protected List<E> listImpl(Page page, String filter, String orderBy, Object... params) throws ru.bitel.bgbilling.common.BGException, SQLException - Overrides:
listImpl
in classru.bitel.common.dao.AbstractDao<E extends Entity>
- Throws:
ru.bitel.bgbilling.common.BGException
SQLException
-
getFromRS
- Overrides:
getFromRS
in classAbstractEntityAttrDao<E extends Entity>
- Throws:
SQLException
ru.bitel.bgbilling.common.BGException
-