public class ContractDao extends AbstractEntityAttrDao<Contract>
AbstractEntityAttrDao.AddressItemModifiedEventListenerentitySpecAttrDirectory, entitySpecDirectory, filterWeightComparator, userIdcacheFilter, cacheJoin, cacheOrderBy, cachePaged, cachePS, cacheWhat, con, getByIdPS, mid, moduleId, orderByPattern, SQL_CALC_FOUND_ROWS, SQL_DELETE, SQL_EQ, SQL_EQCS, SQL_FROM, SQL_GROUP, SQL_IN, SQL_INSERT, SQL_LIMIT, SQL_ORDER, SQL_SELECT, SQL_SET, SQL_UPDATE, SQL_WHERE, tableName| Constructor and Description |
|---|
ContractDao(java.sql.Connection con,
int userId) |
| Modifier and Type | Method and Description |
|---|---|
Contract |
getByTitle(java.lang.String title)
Возвращает договор по заголовку.
|
java.util.Map<java.lang.Integer,EntityAttr> |
getContractParameters(int contractId,
int paramGroupId) |
java.util.List<Contract> |
getContracts(java.lang.String idList)
Возвращает список Договоров по строке с кодами договоров, перечисленными
через запятую
|
ru.bitel.bgbilling.kernel.directory.api.common.Directory<? extends EntitySpec> |
getEntitySpecDirectory() |
protected Contract |
getFromRS(java.sql.ResultSet rs,
boolean loadAttributes,
boolean loadEntityTitle) |
java.util.List<Contract> |
getSubContracts(int contractId,
int subMode)
Получает зависимые, независимые или все(subMode==-1) субдоговора данного договора.
|
java.util.List<Contract> |
list(java.lang.String title,
java.lang.String comment,
int fc,
long groupMaskAnd,
int firm,
java.util.List<FilterEntityAttr> entityFilter,
boolean subContracts,
boolean closed,
boolean hidden,
Page page) |
boolean |
updateContractParameter(int contractId,
EntityAttr entityAttr) |
void |
updateContractParameters(int contractId,
java.util.Map<java.lang.Integer,EntityAttr> entityAttributes) |
protected void |
updateImpl(Contract contract)
Этот метод каждый реализует сам со своей логикой.
|
void |
updateParameter(int contractId,
EntityAttr a) |
void |
updatePassword(int contractId,
java.lang.String password) |
filterInit, filterJoin, filterToPS, getAttribute, getEntityAttributes, getEntitySpecAttrDirectory, getEntityTableName, getFromRS, list, listImpl, onAddressItemUpdate, updateEntityAttribute, updateEntityAttributesdelete, get, getAndDelete, getAndUpdatepublic ru.bitel.bgbilling.kernel.directory.api.common.Directory<? extends EntitySpec> getEntitySpecDirectory() throws ru.bitel.bgbilling.common.BGException
getEntitySpecDirectory in class AbstractEntityAttrDao<Contract>ru.bitel.bgbilling.common.BGExceptionprotected Contract getFromRS(java.sql.ResultSet rs, boolean loadAttributes, boolean loadEntityTitle) throws java.sql.SQLException, ru.bitel.bgbilling.common.BGException
getFromRS in class AbstractEntityAttrDao<Contract>java.sql.SQLExceptionru.bitel.bgbilling.common.BGExceptionpublic boolean updateContractParameter(int contractId,
EntityAttr entityAttr)
throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic void updateContractParameters(int contractId,
java.util.Map<java.lang.Integer,EntityAttr> entityAttributes)
throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic java.util.Map<java.lang.Integer,EntityAttr> getContractParameters(int contractId, int paramGroupId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionprotected void updateImpl(Contract contract) throws ru.bitel.bgbilling.common.BGException, java.sql.SQLException
ru.bitel.common.dao.AbstractDaoupdateImpl in class ru.bitel.common.dao.AbstractDao<Contract>contract - экземпляр моделиru.bitel.bgbilling.common.BGException - ошибкиjava.sql.SQLException - ошибкиpublic void updateParameter(int contractId,
EntityAttr a)
throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic java.util.List<Contract> list(java.lang.String title, java.lang.String comment, int fc, long groupMaskAnd, int firm, java.util.List<FilterEntityAttr> entityFilter, boolean subContracts, boolean closed, boolean hidden, Page page) throws ru.bitel.bgbilling.common.BGException
title - comment - fc - groupMaskAnd - маска группgroup - = маске группfirm - entityFilter - subContracts - closed - hidden - page - ru.bitel.bgbilling.common.BGExceptionpublic java.util.List<Contract> getContracts(java.lang.String idList) throws ru.bitel.bgbilling.common.BGException
idList - ru.bitel.bgbilling.common.BGExceptionpublic java.util.List<Contract> getSubContracts(int contractId, int subMode) throws ru.bitel.bgbilling.common.BGException
cid - - код супер договора.subMode - зависимый(0), независимый(1)(из KernelConst) или все(-1).ru.bitel.bgbilling.common.BGExceptionpublic Contract getByTitle(java.lang.String title) throws ru.bitel.bgbilling.common.BGException
title - заголовок.ru.bitel.bgbilling.common.BGException - ошибка.public void updatePassword(int contractId,
java.lang.String password)
throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException