public class AttributeDao extends ru.bitel.common.dao.AbstractIdDao<Attribute>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONTRACT_PARAM_PREF_MACROS |
static java.lang.String |
CONTRACT_PARAM_PREF_MACROS_USE_SUPER |
| Constructor and Description |
|---|
AttributeDao(java.sql.Connection con,
int mid) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearAllAttributes()
Удаление всех реквизитов для всех договоров
|
void |
clearAttributes(int contractId)
Удаление всех реквизитов для данного договора
|
java.util.List<Attribute> |
getActiveAttributeList(int contractId)
Получение всех активных реквизитов на текущий момент
|
java.util.List<Attribute> |
getActiveAttributeList(java.util.Set<java.lang.Integer> contractIds) |
java.util.List<Attribute> |
getAttributeListByCid(int contractId) |
protected Attribute |
getFromRS(java.sql.ResultSet rs) |
protected void |
updateImpl(Attribute attribute) |
delete, get, getAndDelete, getAndUpdatepublic static final java.lang.String CONTRACT_PARAM_PREF_MACROS
public static final java.lang.String CONTRACT_PARAM_PREF_MACROS_USE_SUPER
public java.util.List<Attribute> getAttributeListByCid(int contractId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic java.util.List<Attribute> getActiveAttributeList(int contractId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic java.util.List<Attribute> getActiveAttributeList(java.util.Set<java.lang.Integer> contractIds) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic void clearAttributes(int contractId)
throws ru.bitel.bgbilling.common.BGException
contractId - - код договораru.bitel.bgbilling.common.BGExceptionpublic void clearAllAttributes()
throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionprotected void updateImpl(Attribute attribute) throws ru.bitel.bgbilling.common.BGException, java.sql.SQLException
updateImpl in class ru.bitel.common.dao.AbstractDao<Attribute>ru.bitel.bgbilling.common.BGExceptionjava.sql.SQLException