public class ContractNotificationDao extends ru.bitel.common.dao.AbstractIdDao<ContractNotification>
cacheFilter, cacheJoin, cacheOrderBy, cachePaged, cachePS, cacheWhat, con, getByIdPS, mid, moduleId, orderByPattern, SQL_CALC_FOUND_ROWS, SQL_DELETE, SQL_EQ, SQL_EQCS, SQL_FROM, SQL_GROUP, SQL_IN, SQL_INSERT, SQL_LIMIT, SQL_ORDER, SQL_SELECT, SQL_SET, SQL_UPDATE, SQL_WHERE, tableName| Constructor and Description |
|---|
ContractNotificationDao(java.sql.Connection con) |
| Modifier and Type | Method and Description |
|---|---|
protected ContractNotification |
getFromRS(java.sql.ResultSet rs) |
int |
getUnreadNotificationsCount(int cid) |
java.util.List<ContractNotification> |
list(int cid) |
boolean |
markReadNotification(int contractId,
int id) |
protected void |
updateImpl(ContractNotification notice)
Этот метод каждый реализует сам со своей логикой.
|
delete, get, getAndDelete, getAndUpdatepublic java.util.List<ContractNotification> list(int cid) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic int getUnreadNotificationsCount(int cid)
protected ContractNotification getFromRS(java.sql.ResultSet rs) throws java.sql.SQLException, ru.bitel.bgbilling.common.BGException
getFromRS in class ru.bitel.common.dao.AbstractDao<ContractNotification>java.sql.SQLExceptionru.bitel.bgbilling.common.BGExceptionprotected void updateImpl(ContractNotification notice) throws ru.bitel.bgbilling.common.BGException, java.sql.SQLException
ru.bitel.common.dao.AbstractDaoupdateImpl in class ru.bitel.common.dao.AbstractDao<ContractNotification>notice - экземпляр моделиru.bitel.bgbilling.common.BGException - ошибкиjava.sql.SQLException - ошибкиpublic boolean markReadNotification(int contractId,
int id)
throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException