public class VoiceDestinationDao extends ru.bitel.common.dao.AbstractIdDao<VoiceDestination>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
VOICE_DESTINATION_TABLE |
| Constructor and Description |
|---|
VoiceDestinationDao(java.sql.Connection con,
int mid) |
| Modifier and Type | Method and Description |
|---|---|
int |
delete(java.util.List<java.lang.Integer> idList)
Удаление списка направлений, указанных в виде списка id направлений.
|
VoiceDestination |
get(java.lang.String title)
Получение одного конкретного направления по его названию с учетом полного совпадения названия.
|
protected VoiceDestination |
getFromRS(java.sql.ResultSet rs) |
java.util.Map<java.lang.Integer,VoiceDestination> |
idMap(int operatorId) |
java.util.List<VoiceDestination> |
list(int operatorId,
java.lang.String title,
Page page)
Получение списка направлений оператора.
|
java.util.Map<java.lang.String,VoiceDestination> |
titleMap(int operatorId)
Справочник направлений в виде мапа "название = бин направления"
|
protected void |
updateImpl(VoiceDestination b) |
delete, get, getAndDelete, getAndUpdatepublic static final java.lang.String VOICE_DESTINATION_TABLE
protected VoiceDestination getFromRS(java.sql.ResultSet rs) throws java.sql.SQLException, ru.bitel.bgbilling.common.BGException
getFromRS in class ru.bitel.common.dao.AbstractDao<VoiceDestination>java.sql.SQLExceptionru.bitel.bgbilling.common.BGExceptionprotected void updateImpl(VoiceDestination b) throws ru.bitel.bgbilling.common.BGException, java.sql.SQLException
updateImpl in class ru.bitel.common.dao.AbstractDao<VoiceDestination>ru.bitel.bgbilling.common.BGExceptionjava.sql.SQLExceptionpublic java.util.Map<java.lang.String,VoiceDestination> titleMap(int operatorId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic java.util.Map<java.lang.Integer,VoiceDestination> idMap(int operatorId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic java.util.List<VoiceDestination> list(int operatorId, java.lang.String title, Page page) throws ru.bitel.bgbilling.common.BGException
operatorId - page - текущая страница в клиентеru.bitel.bgbilling.common.BGExceptionpublic int delete(java.util.List<java.lang.Integer> idList)
throws ru.bitel.bgbilling.common.BGException
idList - список id направленийru.bitel.bgbilling.common.BGExceptionpublic VoiceDestination get(java.lang.String title) throws ru.bitel.bgbilling.common.BGException
title - название искомого направленияru.bitel.bgbilling.common.BGException