public class ContractParameterPrefDao extends ru.bitel.common.dao.AbstractIdDao<ContractParameterPref>
Constructor and Description |
---|
ContractParameterPrefDao(java.sql.Connection con) |
Modifier and Type | Method and Description |
---|---|
java.util.List<ContractParameterPref> |
getAllContractParameterPrefList()
Получить все списки параметров
|
java.util.List<IdTitle> |
getContractParameterPrefIdTitleList(int paramTypeId)
Получить список IdTitle( id - код ParameterPrefId ) по типу параметра.
|
java.util.List<ContractParameterPref> |
getContractParameterPrefList(ContractParameterPref.ContractParameterPrefType prefEnum) |
java.util.List<ContractParameterPref> |
getContractParameterPrefList(java.util.Set<java.lang.Integer> ids) |
java.util.Map<java.lang.Integer,java.util.List<IdTitle>> |
getContractParameterPrefMapByType() |
protected ContractParameterPref |
getFromRS(java.sql.ResultSet rs) |
void |
moveParam(int id,
boolean up)
сдвиг параметра false - вниз, true - вверх
|
protected void |
updateImpl(ContractParameterPref pref) |
delete, get, getAndDelete, getAndUpdate
public ContractParameterPrefDao(java.sql.Connection con)
public java.util.List<ContractParameterPref> getContractParameterPrefList(ContractParameterPref.ContractParameterPrefType prefEnum) throws ru.bitel.bgbilling.common.BGException
prefEnum
- - элемент перечесления типа параметров договораru.bitel.bgbilling.common.BGException
public java.util.List<ContractParameterPref> getContractParameterPrefList(java.util.Set<java.lang.Integer> ids) throws ru.bitel.bgbilling.common.BGException
ids
- - set коды типов параметров.ru.bitel.bgbilling.common.BGException
public java.util.List<IdTitle> getContractParameterPrefIdTitleList(int paramTypeId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.util.List<ContractParameterPref> getAllContractParameterPrefList() throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void moveParam(int id, boolean up) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.util.Map<java.lang.Integer,java.util.List<IdTitle>> getContractParameterPrefMapByType() throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
protected ContractParameterPref getFromRS(java.sql.ResultSet rs) throws java.sql.SQLException, ru.bitel.bgbilling.common.BGException
getFromRS
in class ru.bitel.common.dao.AbstractDao<ContractParameterPref>
java.sql.SQLException
ru.bitel.bgbilling.common.BGException
protected void updateImpl(ContractParameterPref pref) throws ru.bitel.bgbilling.common.BGException, java.sql.SQLException
updateImpl
in class ru.bitel.common.dao.AbstractDao<ContractParameterPref>
ru.bitel.bgbilling.common.BGException
java.sql.SQLException