public class ContractParamDAO extends BillingDAO
dbInfo, transferData, user
Constructor and Description |
---|
ContractParamDAO(User user,
DBInfo dbInfo) |
ContractParamDAO(User user,
java.lang.String billingId) |
Modifier and Type | Method and Description |
---|---|
ParamAddressValue |
getAddressParam(int contractId,
int paramId) |
java.util.List<java.lang.Integer> |
getContractParamIds(int contractId) |
java.util.List<ParamListValue> |
getListParam(int contractId,
int paramId) |
ParamList |
getListParamValue(int contractId,
int paramId) |
ContractParameter |
getParameter(int contractId,
int paramId) |
java.util.List<ContractParameter> |
getParameterList(int contractId) |
java.util.List<IdTitle> |
getParamListValues(int paramId) |
java.lang.String |
getParamTitle(int contractId,
int paramId) |
java.lang.Integer |
getParamType(int contractId,
int paramId) |
java.util.List<ParamPhoneValueItem> |
getPhoneParam(int contractId,
int paramId) |
java.lang.String |
getTextParam(int contractId,
int paramId) |
static ParameterPhoneValue |
toCrmObject(java.util.List<ParamPhoneValueItem> phones) |
static ParameterAddressValue |
toCrmObject(ParamAddressValue item,
java.sql.Connection con) |
void |
updateAddressParameter(java.lang.Integer contractId,
java.lang.Integer paramId,
ParamAddressValue address) |
void |
updateDateParameter(java.lang.Integer contractId,
java.lang.Integer paramId,
java.util.Date value) |
void |
updateDateParameter(java.lang.Integer contractId,
java.lang.Integer paramId,
java.lang.String value) |
void |
updateListParameter(java.lang.Integer contractId,
java.lang.Integer paramId,
java.lang.String value) |
void |
updatePhoneParameter(java.lang.Integer contractId,
java.lang.Integer paramId,
ParameterPhoneValue phoneValue) |
void |
updateTextParameter(java.lang.Integer contractId,
java.lang.Integer paramId,
java.lang.String value) |
doRequest, getDbInfo, getPage, getParameterId, setPage
public ContractParamDAO(User user, java.lang.String billingId) throws BGException
BGException
public ContractParamDAO(User user, DBInfo dbInfo) throws BGException
BGException
public java.util.List<ContractParameter> getParameterList(int contractId) throws BGException
BGException
public java.lang.String getTextParam(int contractId, int paramId)
public ContractParameter getParameter(int contractId, int paramId)
public java.lang.Integer getParamType(int contractId, int paramId)
public java.lang.String getParamTitle(int contractId, int paramId)
public java.util.List<java.lang.Integer> getContractParamIds(int contractId)
public java.util.List<IdTitle> getParamListValues(int paramId) throws BGException
BGException
public java.util.List<ParamPhoneValueItem> getPhoneParam(int contractId, int paramId) throws BGException
BGException
public ParamAddressValue getAddressParam(int contractId, int paramId) throws BGException
BGException
public ParamList getListParamValue(int contractId, int paramId) throws BGException
BGException
public java.util.List<ParamListValue> getListParam(int contractId, int paramId) throws BGException
BGException
public static ParameterPhoneValue toCrmObject(java.util.List<ParamPhoneValueItem> phones)
public static ParameterAddressValue toCrmObject(ParamAddressValue item, java.sql.Connection con) throws BGException
BGException
public void updateTextParameter(java.lang.Integer contractId, java.lang.Integer paramId, java.lang.String value) throws BGException
BGException
public void updateListParameter(java.lang.Integer contractId, java.lang.Integer paramId, java.lang.String value) throws BGException
BGException
public void updateAddressParameter(java.lang.Integer contractId, java.lang.Integer paramId, ParamAddressValue address) throws BGException
BGException
public void updateDateParameter(java.lang.Integer contractId, java.lang.Integer paramId, java.util.Date value) throws BGException
BGException
public void updateDateParameter(java.lang.Integer contractId, java.lang.Integer paramId, java.lang.String value) throws BGException
BGException
public void updatePhoneParameter(java.lang.Integer contractId, java.lang.Integer paramId, ParameterPhoneValue phoneValue) throws BGException
BGException