public class WebMenuDao extends ru.bitel.common.dao.AbstractIdDao<WebMenuItem>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TABLE_CONTRACT_WEB_MENU |
Constructor and Description |
---|
WebMenuDao(java.sql.Connection con) |
Modifier and Type | Method and Description |
---|---|
void |
deleteData(int webMenuItemId) |
java.util.Map<java.lang.Integer,java.lang.Integer> |
getContractCount() |
java.lang.String |
getData(int webMenuItemId) |
protected WebMenuItem |
getFromRS(java.sql.ResultSet rs) |
int |
getWebMenuIdForContract(int contractId) |
java.util.List<WebMenuItem> |
list() |
void |
setWebMenuIdForContract(int webMenuItemId,
int contractId) |
void |
updateData(int webMenuItemId,
java.lang.String data) |
protected void |
updateImpl(WebMenuItem webMenuItem) |
WebMenuItem |
updateInfo(WebMenuItem webMenuItem) |
delete, get, getAndDelete, getAndUpdate
public static final java.lang.String TABLE_CONTRACT_WEB_MENU
public int getWebMenuIdForContract(int contractId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void setWebMenuIdForContract(int webMenuItemId, int contractId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.lang.String getData(int webMenuItemId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void deleteData(int webMenuItemId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.util.List<WebMenuItem> list() throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.util.Map<java.lang.Integer,java.lang.Integer> getContractCount() throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public WebMenuItem updateInfo(WebMenuItem webMenuItem) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void updateData(int webMenuItemId, java.lang.String data) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
protected WebMenuItem getFromRS(java.sql.ResultSet rs) throws java.sql.SQLException, ru.bitel.bgbilling.common.BGException
getFromRS
in class ru.bitel.common.dao.AbstractDao<WebMenuItem>
java.sql.SQLException
ru.bitel.bgbilling.common.BGException
protected void updateImpl(WebMenuItem webMenuItem) throws ru.bitel.bgbilling.common.BGException, java.sql.SQLException
updateImpl
in class ru.bitel.common.dao.AbstractDao<WebMenuItem>
ru.bitel.bgbilling.common.BGException
java.sql.SQLException