| Constructor and Description |
|---|
P2PGridBasisNewsDao(NewsDao dao,
DaoContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
addNews(News news) |
void |
clear() |
void |
deleteAllNews(String newsGridId) |
boolean |
isNewsExist(int newsId) |
boolean |
isNewsExistByNodeIds(String gridId,
String nodeId,
int nodeLocalId) |
List<News> |
listNews(String newsGridId) |
void |
removeEntityListener() |
void |
setEntityListener() |
boolean |
updateDataSource(Data data) |
boolean |
updateDataTarget(Data data) |
void |
updateNewsByNodeIds(News news) |
public P2PGridBasisNewsDao(NewsDao dao, DaoContext context)
public void setEntityListener()
setEntityListener in interface DataDaopublic void removeEntityListener()
removeEntityListener in interface DataDaopublic boolean updateDataSource(Data data) throws DataDaoException, UnmatchedDataTypeException
updateDataSource in interface DataDaoDataDaoExceptionUnmatchedDataTypeExceptionpublic boolean updateDataTarget(Data data) throws UnmatchedDataTypeException, DataDaoException
updateDataTarget in interface DataDaoUnmatchedDataTypeExceptionDataDaoExceptionpublic void clear()
throws DaoException
clear in interface NewsDaoDaoExceptionpublic boolean isNewsExist(int newsId)
throws DaoException
isNewsExist in interface NewsDaoDaoExceptionpublic boolean isNewsExistByNodeIds(String gridId, String nodeId, int nodeLocalId) throws DaoException
isNewsExistByNodeIds in interface NewsDaoDaoExceptionpublic void updateNewsByNodeIds(News news) throws DaoException
updateNewsByNodeIds in interface NewsDaoDaoExceptionpublic void addNews(News news) throws DaoException
addNews in interface NewsDaoDaoExceptionpublic List<News> listNews(String newsGridId) throws DaoException
listNews in interface NewsDaoDaoExceptionpublic void deleteAllNews(String newsGridId) throws DaoException
deleteAllNews in interface NewsDaoDaoException