Class ContractObjectDao
java.lang.Object
ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
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_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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontractObjectTable(SearchResult<ContractObject> searchResult, int contractId, String titleFilter, int typeId) protected Directory<? extends AbstractSpecAttr>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, getEntityAttribute, getEntityAttributes, getEntityAttributes, getEntityTableName, getEntityTableSuffix, getEntityValueForIds, getFromRS, list, listImpl, onAddressItemUpdate, optEntityAttribute, updateEntityAttribute, updateEntityAttributesMethods inherited from class ru.bitel.common.dao.AbstractIdDao
delete, executeUpdate, 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, setStatementParam, updateMethods inherited from class ru.bitel.common.dao.AbstarctDaoConstant
getSQLOrderMethods inherited from class ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
error, error, error, getLogger, logError, logError, warn
-
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 Exception - Throws:
Exception
-
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 AbstractSpecAttr> 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
- Specified by:
getFromRSin classAbstractEntityAttrDao<ContractObject>- Throws:
SQLException
-
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
-