Class ContractObjectDao
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<ContractObject>
ru.bitel.bgbilling.kernel.contract.object.server.bean.ContractObjectDao
- All Implemented Interfaces:
AutoCloseable
-
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.common.dao.AbstractDao
ru.bitel.common.dao.AbstractDao.ResultSetIterator -
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.common.dao.AbstractDao
cacheFilter, cacheJoin, cacheOrderBy, cachePaged, cachePS, cacheWhat, con, getByIdPS, moduleId, orderByPattern, tableNameFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontractObjectTable(SearchResult<ContractObject> searchResult, int contractId, String titleFilter, int typeId) protected EntityAttrgetEntityAttribute(int entityId, int entityAttrId) Получение значения атрибута/параметраprotected EntitySpecAttrgetEntitySpecAttr(int entitySpecAttrId) protected Directory<? extends EntitySpecAttr>Directory<? extends EntitySpec>protected ContractObjectgetObjectParameter(int objectId, int parameterId) getObjectParameterAddressAsString(int contractId, int parameterId) list(int contractId) optObjectParameterAddress(int objectId, int parameterId) optObjectParameterBoolean(int objectId, int parameterId) optObjectParameterBooleanAsBoolean(int objectId, int parameterId) optObjectParameterDate(int objectId, int parameterId) optObjectParameterDateAsDate(int objectId, int parameterId) optObjectParameterList(int objectId, int parameterId) optObjectParameterListAsString(int objectId, int parameterId) optObjectParameterText(int objectId, int parameterId) optObjectParameterTextAsString(int objectId, int parameterId) voidorderObject(int id, boolean up) protected voidupdateImpl(ContractObject contractObject) booleanupdateObjectParameter(int objectId, EntityAttr entityAttr) Methods inherited from class ru.bitel.oss.kernel.entity.server.bean.AbstractEntityAttrDao
checkEntityAttribute, checkEntitySpecAttrDelete, deleteEntityAttribute, deleteEntityAttributes, filterInit, filterJoin, filterToPS, getAllEntityAttributes, getAttribute, getEntityAttributes, getEntityAttributes, getEntityTableName, getEntityTableSuffix, getEntityValueForIds, getFromRS, list, listImpl, onAddressItemUpdate, optEntityAttribute, updateEntityAttribute, updateEntityAttributesMethods inherited from class ru.bitel.common.dao.AbstractIdDao
delete, get, getAndDelete, getAndUpdate, optMethods inherited from class ru.bitel.common.dao.AbstractDao
close, delete, deleteImpl, eq, get, getById, getImpl, getListFromRS, getPeriod, getQueryById, getSQLOrder, getTableName, list, list, listImpl, listImpl, listImplPS, listImplPS, ormFromResultSet, ormUpdateImpl, ormUpdateImpl, ormUpdateImpl, ormUpdateImpl, processException, recycle, setStatementParam, updateMethods inherited from class ru.bitel.common.dao.AbstarctDaoConstant
getLogger, getSQLOrder
-
Constructor Details
-
ContractObjectDao
-
-
Method Details
-
getObjectParameter
public EntityAttr getObjectParameter(int objectId, int parameterId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
getEntityAttribute
protected EntityAttr getEntityAttribute(int entityId, int entityAttrId) throws ru.bitel.bgbilling.common.BGException Description copied from class:AbstractEntityAttrDaoПолучение значения атрибута/параметра- Overrides:
getEntityAttributein classAbstractEntityAttrDao<ContractObject>- Parameters:
entityId- ID объекта/договораentityAttrId- ID атрибута/параметра- Returns:
- Throws:
ru.bitel.bgbilling.common.BGException
-
getEntitySpecAttr
protected EntitySpecAttr getEntitySpecAttr(int entitySpecAttrId) throws ru.bitel.bgbilling.common.BGException - Overrides:
getEntitySpecAttrin classAbstractEntityAttrDao<ContractObject>- Throws:
ru.bitel.bgbilling.common.BGException
-
updateObjectParameter
public boolean updateObjectParameter(int objectId, EntityAttr entityAttr) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
optObjectParameterText
public Optional<EntityAttrText> optObjectParameterText(int objectId, int parameterId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
optObjectParameterTextAsString
public Optional<String> optObjectParameterTextAsString(int objectId, int parameterId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
optObjectParameterBoolean
public Optional<EntityAttrBoolean> optObjectParameterBoolean(int objectId, int parameterId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
optObjectParameterBooleanAsBoolean
public Optional<Boolean> optObjectParameterBooleanAsBoolean(int objectId, int parameterId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
optObjectParameterDate
public Optional<EntityAttrDate> optObjectParameterDate(int objectId, int parameterId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
optObjectParameterDateAsDate
public Optional<Date> optObjectParameterDateAsDate(int objectId, int parameterId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
optObjectParameterList
public Optional<EntityAttrList> optObjectParameterList(int objectId, int parameterId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
optObjectParameterListAsString
public Optional<String> optObjectParameterListAsString(int objectId, int parameterId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
optObjectParameterAddress
public Optional<EntityAttrAddress> optObjectParameterAddress(int objectId, int parameterId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
getObjectParameterAddressAsString
public Optional<String> getObjectParameterAddressAsString(int contractId, int parameterId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
getEntitySpecDirectory
public Directory<? extends EntitySpec> getEntitySpecDirectory() throws ru.bitel.bgbilling.common.BGException- Overrides:
getEntitySpecDirectoryin classAbstractEntityAttrDao<ContractObject>- Throws:
ru.bitel.bgbilling.common.BGException
-
getEntitySpecAttrDirectory
protected Directory<? extends EntitySpecAttr> getEntitySpecAttrDirectory() throws ru.bitel.bgbilling.common.BGException- Overrides:
getEntitySpecAttrDirectoryin classAbstractEntityAttrDao<ContractObject>- Throws:
ru.bitel.bgbilling.common.BGException
-
contractObjectTable
public void contractObjectTable(SearchResult<ContractObject> searchResult, int contractId, String titleFilter, int typeId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
getFromRS
protected ContractObject getFromRS(ResultSet rs, boolean loadAttributes) throws SQLException, ru.bitel.bgbilling.common.BGException - Specified by:
getFromRSin classAbstractEntityAttrDao<ContractObject>- Throws:
SQLExceptionru.bitel.bgbilling.common.BGException
-
updateImpl
protected void updateImpl(ContractObject contractObject) throws ru.bitel.bgbilling.common.BGException, SQLException - Specified by:
updateImplin classru.bitel.common.dao.AbstractDao<ContractObject>- Throws:
ru.bitel.bgbilling.common.BGExceptionSQLException
-
list
- Throws:
ru.bitel.bgbilling.common.BGException
-
orderObject
public void orderObject(int id, boolean up) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-