Class AbstractEntityDao<E extends Entity>
java.lang.Object
ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
ru.bitel.bgbilling.common.dao.AbstractDaoConstant
ru.bitel.bgbilling.common.dao.AbstractDao<E>
ru.bitel.bgbilling.common.dao.AbstractIdDao<E>
ru.bitel.oss.kernel.entity.server.bean.AbstractEntityAttrDao<E>
ru.bitel.oss.kernel.entity.server.bean.AbstractEntityDao<E>
- Direct Known Subclasses:
ru.bitel.oss.systems.inventory.resource.server.dao.DeviceDao,InetDeviceDao,InetServDao
-
Nested Class Summary
Nested classes/interfaces inherited from class ru.bitel.oss.kernel.entity.server.bean.AbstractEntityAttrDao
AbstractEntityAttrDao.AddressItemModifiedEventListenerNested classes/interfaces inherited from class ru.bitel.bgbilling.common.dao.AbstractDao
ru.bitel.bgbilling.common.dao.AbstractDao.ListParams -
Field Summary
Fields inherited from class ru.bitel.oss.kernel.entity.server.bean.AbstractEntityAttrDao
CONTRACT_OBJECT_SUPPORT, CONTRACT_SUPPORT, ENTITY_SUPPORT, entitySpecAttrDirectory, entitySpecDirectory, entityTableSuffix, filterWeightComparator, userIdFields inherited from class ru.bitel.bgbilling.common.dao.AbstractDao
orderByPatternFields inherited from class ru.bitel.bgbilling.common.dao.AbstractDaoConstant
con, ERROR, fields, moduleId, SQL_ALL, SQL_AND, SQL_DELETE, SQL_DISTINCT, SQL_EQ, SQL_EQCS, SQL_FROM, SQL_GROUP, SQL_IN, SQL_INSERT, SQL_JOIN, SQL_LEFT_JOIN, SQL_LIMIT, SQL_NOT_IN, SQL_ON, SQL_ON_DUPLICATE_KEY_UPDATE, SQL_ORDER, SQL_SELECT, SQL_SET, SQL_UPDATE, SQL_VALUES, SQL_WHERE, tableName -
Constructor Summary
ConstructorsConstructorDescriptionAbstractEntityDao(Connection con, String tableName, String entityTableSuffix, int moduleId, int userId) AbstractEntityDao(Connection con, String tableName, String entityTableSuffix, EntityAttrDaoSupport entityAttrDaoSupport, int moduleId, int userId) -
Method Summary
Modifier and TypeMethodDescriptionintdelete(int id) protected Eprotected Eprotected abstract Eprotected voidlinkEntity(Entity entity) list(boolean loadAttributes, Page page, String what, String join, List<FilterEntityAttr> entityFilter, String filter, String groupBy, String orderBy, Object... params) listImpl(ru.bitel.bgbilling.common.dao.AbstractDao.ListParams listParams) protected voidunlinkEntity(int entityId) voidMethods 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, optEntityAttribute, updateEntityAttribute, updateEntityAttributesMethods inherited from class ru.bitel.bgbilling.common.dao.AbstractIdDao
executeUpdate, get, getAndDelete, getAndUpdate, loadData, opt, prepareStatement, sqlCommand, sqlCommandAndTable, sqlInsertValues, sqlQuery, sqlUpdateSet, sqlWhereIdMethods inherited from class ru.bitel.bgbilling.common.dao.AbstractDao
deleteImpl, dropTemporaryTable, eq, get, getById, getImpl, getListFromRS, getPeriod, getQueryById, getQueryWithFilter, getSQLOrder, list, list, listCountImplPS, listImplPS, ormFromResultSet, ormUpdateImpl, ormUpdateImpl, ormUpdateImpl, ormUpdateImpl, queryPeriod, setPageRecordCount, updateImplMethods inherited from class ru.bitel.bgbilling.common.dao.AbstractDaoConstant
delete, delete, getSQLOrder, getSQLOrderFields, getTableName, psSetDate, psSetDateOrNull, psSetInt, psSetIntOrNull, psSetPeriod, psSetString, psSetStringOrNull, psSetTimestampOrNull, queryAndIn, setStatementParamMethods inherited from class ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
error, error, error, getLogger, logError, logError, warn
-
Constructor Details
-
AbstractEntityDao
public AbstractEntityDao(Connection con, String tableName, String entityTableSuffix, int moduleId, int userId) -
AbstractEntityDao
public AbstractEntityDao(Connection con, String tableName, String entityTableSuffix, EntityAttrDaoSupport entityAttrDaoSupport, int moduleId, int userId)
-
-
Method Details
-
linkEntity
- Throws:
ru.bitel.bgbilling.common.BGException
-
unlinkEntity
- Throws:
SQLException
-
update
- Overrides:
updatein classru.bitel.bgbilling.common.dao.AbstractDao<E extends Entity>- Throws:
SQLException
-
delete
- Overrides:
deletein classru.bitel.bgbilling.common.dao.AbstractIdDao<E extends Entity>- Throws:
SQLException
-
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 SQLException - Overrides:
listin classAbstractEntityAttrDao<E extends Entity>- Throws:
SQLException
-
getFromRS
- Specified by:
getFromRSin classAbstractEntityAttrDao<E extends Entity>- Throws:
SQLException
-
getFromRSImpl
- Throws:
SQLException
-
list
protected Result<E> list(Page page, String filter, String orderBy, Object... params) throws SQLException - Overrides:
listin classru.bitel.bgbilling.common.dao.AbstractDao<E extends Entity>- Throws:
SQLException
-
listImpl
protected List<E> listImpl(ru.bitel.bgbilling.common.dao.AbstractDao.ListParams listParams) throws SQLException - Overrides:
listImplin classru.bitel.bgbilling.common.dao.AbstractDao<E extends Entity>- Throws:
SQLException
-
getFromRS
- Overrides:
getFromRSin classAbstractEntityAttrDao<E extends Entity>- Throws:
SQLException
-