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 DataDao
public void removeEntityListener()
removeEntityListener
in interface DataDao
public boolean updateDataSource(Data data) throws DataDaoException, UnmatchedDataTypeException
updateDataSource
in interface DataDao
DataDaoException
UnmatchedDataTypeException
public boolean updateDataTarget(Data data) throws UnmatchedDataTypeException, DataDaoException
updateDataTarget
in interface DataDao
UnmatchedDataTypeException
DataDaoException
public void clear() throws DaoException
clear
in interface NewsDao
DaoException
public boolean isNewsExist(int newsId) throws DaoException
isNewsExist
in interface NewsDao
DaoException
public boolean isNewsExistByNodeIds(String gridId, String nodeId, int nodeLocalId) throws DaoException
isNewsExistByNodeIds
in interface NewsDao
DaoException
public void updateNewsByNodeIds(News news) throws DaoException
updateNewsByNodeIds
in interface NewsDao
DaoException
public void addNews(News news) throws DaoException
addNews
in interface NewsDao
DaoException
public List<News> listNews(String newsGridId) throws DaoException
listNews
in interface NewsDao
DaoException
public void deleteAllNews(String newsGridId) throws DaoException
deleteAllNews
in interface NewsDao
DaoException