public class ContractDao extends AbstractEntityAttrDao<Contract>
AbstractEntityAttrDao.AddressItemModifiedEventListenerCONTRACT_OBJECT_SUPPORT, CONTRACT_SUPPORT, ENTITY_SUPPORT, entitySpecAttrDirectory, entitySpecDirectory, filterWeightComparator, userId| Constructor and Description |
|---|
ContractDao(java.sql.Connection con,
int userId) |
| Modifier and Type | Method and Description |
|---|---|
static void |
addContractGroupFilter(java.lang.StringBuilder where,
int userId) |
void |
checkContractParameter(EntityAttr entityAttr) |
java.lang.String |
contractListByFilter(ContractFilters contractFilters,
java.util.List<FilterEntityAttr> entityFilter,
Page page) |
Contract |
getByTitle(java.lang.String title)
Возвращает договор по заголовку.
|
java.util.List<Contract> |
getContractForTextlikeParamValue(int pid,
java.lang.String value)
Получает договор по текстовому значению/представлению некоторого параметра неопределённого типа.
|
EntityAttr |
getContractParameter(int contractId,
int parameterId)
Получение параметра договора.
|
java.util.Map<java.lang.Integer,EntityAttr> |
getContractParameters(int contractId,
int paramGroupId)
Возвращает map параметров договора.
|
java.util.Map<java.lang.Integer,java.lang.String> |
getContractParameterValuesForParameterIds(int contractId,
java.util.Set<java.lang.Integer> parameterIds) |
java.util.List<Contract> |
getContracts(java.lang.String idList)
Возвращает список Договоров по строке с кодами договоров, перечисленными
через запятую
|
protected Directory<? extends EntitySpecAttr> |
getEntitySpecAttrDirectory() |
Directory<? extends Id> |
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(ContractFilters contractFilters,
java.util.List<FilterEntityAttr> entityFilter,
Page page) |
java.util.List<Contract> |
list(ContractFilters contractFilters,
java.util.List<FilterEntityAttr> entityFilter,
java.lang.String orderBy,
Page page) |
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)
Deprecated.
|
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,
java.lang.String orderBy,
Page page)
Deprecated.
|
void |
update(Contract contract) |
boolean |
updateContractParameter(int contractId,
EntityAttr entityAttr) |
void |
updateContractParameters(int contractId,
java.util.Map<java.lang.Integer,EntityAttr> entityAttributes)
Deprecated.
|
void |
updateDomain(int contractId,
int domainId) |
protected void |
updateImpl(Contract contract) |
void |
updateParameter(int contractId,
EntityAttr a)
Deprecated.
|
void |
updatePassword(int contractId,
java.lang.String password) |
checkEntityAttribute, checkEntitySpecAttrDelete, filterInit, filterJoin, filterToPS, getAllEntityAttributes, getAttribute, getEntityAttribute, getEntityAttributes, getEntityTableName, getEntityValueForIds, getFromRS, list, listImpl, onAddressItemUpdate, updateEntityAttribute, updateEntityAttributesdelete, get, getAndDelete, getAndUpdateclose, delete, deleteImpl, eq, get, getById, getImpl, getListFromRS, getPeriod, getSQLOrder, getTableName, list, list, listImpl, listImpl, listImplPS, listImplPS, ormFromResultSet, ormUpdateImpl, ormUpdateImpl, processException, recycle, setStatementParampublic Directory<? extends Id> getEntitySpecDirectory() throws ru.bitel.bgbilling.common.BGException
getEntitySpecDirectory in class AbstractEntityAttrDao<Contract>ru.bitel.bgbilling.common.BGExceptionprotected Directory<? extends EntitySpecAttr> getEntitySpecAttrDirectory() throws ru.bitel.bgbilling.common.BGException
getEntitySpecAttrDirectory in class AbstractEntityAttrDao<Contract>ru.bitel.bgbilling.common.BGExceptionprotected Contract getFromRS(java.sql.ResultSet rs, boolean loadAttributes, boolean loadEntityTitle) throws java.sql.SQLException
getFromRS in class AbstractEntityAttrDao<Contract>java.sql.SQLExceptionpublic boolean updateContractParameter(int contractId,
EntityAttr entityAttr)
throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException@Deprecated
public 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
contractId - ID договора.paramGroupId - ID группы параметров. Если значение >0, то выдаются параметры указанной группы, иначе - все параметры.ru.bitel.bgbilling.common.BGExceptionpublic java.util.Map<java.lang.Integer,java.lang.String> getContractParameterValuesForParameterIds(int contractId,
java.util.Set<java.lang.Integer> parameterIds)
throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic EntityAttr getContractParameter(int contractId, int parameterId) throws ru.bitel.bgbilling.common.BGException
contractId - ID договораparameterId - ID параметраru.bitel.bgbilling.common.BGExceptionpublic void update(Contract contract) throws ru.bitel.bgbilling.common.BGException
update in class ru.bitel.common.dao.AbstractDao<Contract>ru.bitel.bgbilling.common.BGExceptionprotected void updateImpl(Contract contract) throws ru.bitel.bgbilling.common.BGException, java.sql.SQLException
updateImpl in class ru.bitel.common.dao.AbstractDao<Contract>ru.bitel.bgbilling.common.BGExceptionjava.sql.SQLException@Deprecated
public void updateParameter(int contractId,
EntityAttr a)
throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException@Deprecated public 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
list(ContractFilters, List, Page)title - comment - fc - -1 - всеgroupMaskAnd - маска группgroup - = маске группfirm - reservedentityFilter - subContracts - включать ли субдоговора в результатclosed - включать ли закрытые на текущий моментhidden - включать ли скрытыеpage - ru.bitel.bgbilling.common.BGExceptionpublic java.util.List<Contract> list(ContractFilters contractFilters, java.util.List<FilterEntityAttr> entityFilter, Page page) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException@Deprecated public 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, java.lang.String orderBy, Page page) throws ru.bitel.bgbilling.common.BGException
list(ContractFilters, List, String, Page)title - comment - fc - -1 - всеgroupMaskAnd - маска группgroup - = маске группfirm - reservedentityFilter - subContracts - включать ли субдоговора в результатclosed - включать ли закрытые на текущий моментhidden - включать ли скрытыеpage - ru.bitel.bgbilling.common.BGExceptionpublic java.util.List<Contract> list(ContractFilters contractFilters, java.util.List<FilterEntityAttr> entityFilter, java.lang.String orderBy, Page page) throws ru.bitel.bgbilling.common.BGException
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
contractId - - код супер договора.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.BGExceptionpublic static void addContractGroupFilter(java.lang.StringBuilder where,
int userId)
public void updateDomain(int contractId,
int domainId)
throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic java.util.List<Contract> getContractForTextlikeParamValue(int pid, java.lang.String value)
public java.lang.String contractListByFilter(ContractFilters contractFilters, java.util.List<FilterEntityAttr> entityFilter, Page page) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic void checkContractParameter(EntityAttr entityAttr) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException