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.AddressItemModifiedEventListener
Nested 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, 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_ALL, SQL_AND, SQL_CALC_FOUND_ROWS, 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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
contractObjectTable
(SearchResult<ContractObject> searchResult, int contractId, String titleFilter, int typeId) protected Directory<? extends AbstractSpecAttr>
Directory<? extends EntitySpec>
protected ContractObject
getObjectParameter
(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) void
orderObject
(int id, boolean up) protected void
updateImpl
(ContractObject contractObject) boolean
updateObjectParameter
(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, getEntityAttribute, getEntityAttributes, getEntityAttributes, getEntityTableName, getEntityTableSuffix, getEntityValueForIds, getFromRS, list, listImpl, onAddressItemUpdate, optEntityAttribute, updateEntityAttribute, updateEntityAttributes
Methods inherited from class ru.bitel.common.dao.AbstractIdDao
delete, get, getAndDelete, getAndUpdate, opt
Methods 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, update
Methods 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
-
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:
getEntitySpecDirectory
in classAbstractEntityAttrDao<ContractObject>
- Throws:
ru.bitel.bgbilling.common.BGException
-
getEntitySpecAttrDirectory
protected Directory<? extends AbstractSpecAttr> getEntitySpecAttrDirectory() throws ru.bitel.bgbilling.common.BGException- Overrides:
getEntitySpecAttrDirectory
in 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
- Specified by:
getFromRS
in classAbstractEntityAttrDao<ContractObject>
- Throws:
SQLException
-
updateImpl
protected void updateImpl(ContractObject contractObject) throws ru.bitel.bgbilling.common.BGException, SQLException - Specified by:
updateImpl
in classru.bitel.common.dao.AbstractDao<ContractObject>
- Throws:
ru.bitel.bgbilling.common.BGException
SQLException
-
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
-