public class ContractNotificationDao extends ru.bitel.common.dao.AbstractIdDao<ContractNotification>
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, getAndUpdate
close, delete, deleteImpl, eq, get, getById, getImpl, getListFromRS, getPeriod, getSQLOrder, getTableName, list, list, listImpl, listImpl, listImplPS, listImplPS, ormFromResultSet, ormUpdateImpl, ormUpdateImpl, processException, recycle, setStatementParam, update
public java.util.List<ContractNotification> list(int cid) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public 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.SQLException
ru.bitel.bgbilling.common.BGException
protected void updateImpl(ContractNotification notice) throws ru.bitel.bgbilling.common.BGException, java.sql.SQLException
updateImpl
in class ru.bitel.common.dao.AbstractDao<ContractNotification>
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