@Repository(value="resolvedTopicToTopicDao") public class ResolvedTopicToTopicDaoImpl extends HibernateDaoImpl<ResolvedTopicToTopic> implements ResolvedTopicToTopicDao
| Constructor and Description |
|---|
ResolvedTopicToTopicDaoImpl()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
connect(Long parentTopicId,
Long childTopicId)
This method connects the both topics, means builds the needed structure.
|
int |
disconnect(Long topicId)
This method removes all connections for the given topic.
|
int |
disconnect(Long parentTopicId,
Long childTopicId)
This method removes the given child topic as child from the given parent topic.
|
boolean |
isChild(Long parentTopicId,
Long childTopicId) |
create, create, evict, load, loadAll, postConstruct, remove, remove, remove, update, updatecheckDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactorypublic int connect(Long parentTopicId, Long childTopicId)
connect in interface ResolvedTopicToTopicDaoparentTopicId - The parents topic id.public int disconnect(Long topicId)
disconnect in interface ResolvedTopicToTopicDaotopicId - Id of the topic.public int disconnect(Long parentTopicId, Long childTopicId)
disconnect in interface ResolvedTopicToTopicDaoparentTopicId - Id of the parent topic.childTopicId - Id of the child topic.public boolean isChild(Long parentTopicId, Long childTopicId)
isChild in interface ResolvedTopicToTopicDaoparentTopicId - Id of the parent.childTopicId - Id of the child.Copyright © 2019 Communote team. All rights reserved.